It depends on a ton of libraries (literally):
$ ldd /usr/bin/qemu-system-x86_64 | wc -l
100
But using the dev packages I already had around, plus libfdt-dev which
it insisted on, I have done the following:
apt-get source qemu-system-x86
cd qemu-2.0.0+dfsg
./configure --disable-strip --target-list=x86_64-softmmu,x86_64-linux-user
make
sudo make install
For some reason the binaries in pc-bios/ are missing, and "make install"
barfs on this. I located as many as I could:
cp -pr /usr/share/seabios/* pc-bios/
cp /usr/share/misc/sgabios.bin pc-bios/
cp pc-bios/vgabios-isavga.bin pc-bios/vgabios.bin
cp /usr/lib/ipxe/qemu/*
cp -L /usr/share/qemu/* pc-bios/
Still some missing, so I took them out from INSTALL_BLOBS in Makefile
Any way I now have... *something* in /usr/local/bin. And it runs. And
hooray, it fails in the same way and I have a backtrace!
Program received signal SIGSEGV, Segmentation fault.
tcp_output (tp=tp@entry=0x5636d9186db0) at slirp/tcp_output.c:127
127 len = min(so->so_snd.sb_cc, win) - off;
(gdb) bt
#0 tcp_output (tp=tp@entry=0x5636d9186db0) at slirp/tcp_output.c:127
#1 0x00005636d5a9067a in tcp_drop (tp=tp@entry=0x5636d9186db0,
err=err@entry=0) at slirp/tcp_subr.c:232
#2 0x00005636d5a919a2 in tcp_timers (timer=2, tp=0x5636d9186db0)
at slirp/tcp_timer.c:287
#3 tcp_slowtimo (slirp=slirp@entry=0x5636d824e820) at slirp/tcp_timer.c:88
#4 0x00005636d5a8c538 in slirp_pollfds_poll (pollfds=0x5636d8246a00,
select_error=select_error@entry=0) at slirp/slirp.c:488
#5 0x00005636d5a3cc37 in main_loop_wait (nonblocking=<optimised out>)
at main-loop.c:487
#6 0x00005636d590ff1e in main_loop () at vl.c:2051
#7 main (argc=<optimised out>, argv=<optimised out>, envp=<optimised out>)
at vl.c:4510
(gdb)
(gdb) print so
$1 = (struct socket *) 0x5635d8489920
(gdb) print so->so_snd
Cannot access memory at address 0x5635d84899a0
There's the segfault. And it looks to be the same problem as this:
https://lists.nongnu.org/archive/html/qemu-
devel/2014-11/msg03636.html
Unfortunately that gave no resolution other than "use the tap netdev
instead of slirp"
--
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