Skip to contentSkip to conversation

qemu-img seg, test 082 not showing the error

Qemu-devel Dr. David Alan Gilbert 1 participant 1 message Aug 14, 2015

lore
Share & tools
lore
#0 lore raw

Hi,
I noticed that although 'make check-block' was passing happily I was
seeing a kernel log showing a qemu-img seg:

[Fri Aug 14 12:26:07 2015] qemu-img[7725]: segfault at 0 ip           (null) sp 00007ffff73e9a98 error 14 in qemu-img[55f707577000+f8000]

The case that fails is:
run_qemu_img amend -f qcow2 -o backing_file=/home/dgilbert/try-world3/tests/qemu-iotests/scratch/t.qcow2, -o help /home/dgilbert/try-world3/tests/qemu-iotests/scratch/t.qcow2

and I think the problem is due to a disagreement between

626f84f3 - qemu-img amend: Support multiple -o options

and

76a3a34d - qemu-img: Add progress output for amend

In the 'Invalid option list' case it goto's out skipping the qemu_progress_init, but the out: clause does a qemu_progress_end that then segs.

However, I've not dug into why the testcase code didn't spot it, which seems a more important problem.

Dave
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK