> how can we reproduce this? Can you give a precise set of steps to download/build an image and run qemu with it?
(1) The first issue - segfault in slirp/tcp_output.c - which is also this one: https://lists.nongnu.org/archive/html/qemu-devel/2014-11/msg03636.html You can reproduce using the project I am working on: ---- # See packer.io. "packer" builds images from ISOs. wget https://releases.hashicorp.com/packer/0.10.2/packer_0.10.2_linux_amd64.zip unzip https://releases.hashicorp.com/packer/0.10.2/packer_0.10.2_linux_amd64.zip sudo mv packer /usr/local/bin/ # My project git clone https://git.nsrc.org/open/vtp.git cd vtp ./run.sh ~~~ There is a phase where it clones pc-master to pc1, pc2, pc3 etc. Typically it segfaults somewhere between pc12 and pc20. I saw this with both ubuntu 14.04 and 16.04 stock qemu, but not with qemu 2.7.0 from source. It might be performance-sensitive; both machines tested are Macmini6,2 (Mac Mini Server 2012, quad core) with SSDs. Note however: you may consider this a low-priority issue, in the sense that the kvm "slirp" functionality is not normally used in production. It is used by packer because of its built-in NAT function: the VM gets 10.0.2.15 and it sees the host as "gateway" 10.0.2.2, which gives the VM a temporary network connection without having to run iptables or dhcpd on the host. It certainly seems not to have any attention from qemu upstream, and in any case they may not be interested in backporting the fix from 2.6 or 2.7 to 2.5. The quickest and easiest solution I think would be to have qemu 2.7.0 in xenial-backports. (2) The subsequent random crashes with qemu 2.7.0, i.e. SEGV in malloc(), invalid pointer in free(), on my 14.04 Mac Mini. These don't always reproduce, and I have not yet ruled out as being a hardware problem. But by all means see if you get them once you get past the slirp issue. To use a different version of qemu in the build you modify packer_files/vtp.json: ... "builders": [ { "type": "qemu", "qemu_binary": "/usr/local/bin/qemu-system-x86_64", ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1630226 Title: segfault in qemu-system-x86_64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1630226/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
