Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2007 09:16:35 -0600
From:      Eric Anderson <anderson@centtech.com>
To:        freebsd-emulation@freebsd.org
Subject:   qemu segfaulting all over the place
Message-ID:  <45DB10D3.8040807@centtech.com>

next in thread | raw e-mail | index | archive | help
Is anyone else experiencing a nearly useless qemu experience with the 
latest versions?

I'm running -CURRENT from yesterday, and the latest qemu port (and kqemu).

These combinations segfault:

Anything with the -vnc option, when disconnecting the vnc viewer, will 
segfault:
sudo qemu -hda /alt/images/fs.img -hdb /alt/images/swapfile -net nic 
-net tap -snapshot -vnc :1 -serial /dev/ttyv8 -kernel-kqemu

This used to work nicely, now it dies when I connect to port 1111:
sudo qemu -hda /alt/images/fs.img -hdb /alt/images/swapfile -net nic 
-net tap -snapshot -serial telnet::1111,server,nowait -std-vga -monitor 
stdio -full-screen -kernel-kqemu

Which, when it dies, ktrace shows me:
[..snip..]
   2365 qemu     CALL 
select(0xb,0xbfbfb350,0xbfbfb2d0,0xbfbfb250,0xbfbfb248)
   2365 qemu     RET   select 1
   2365 qemu     CALL  accept(0xa,0xbfbfb200,0xbfbfb17c)
   2365 qemu     RET   accept 12/0xc
   2365 qemu     CALL  sendto(0xc,0xbfbfb180,0x3,0,0,0)
   2365 qemu     GIO   fd 12 wrote 3 bytes
        0x0000 fffb 01                                            |...|

   2365 qemu     RET   sendto 3
   2365 qemu     CALL  sendto(0xc,0xbfbfb180,0x3,0,0,0)
   2365 qemu     GIO   fd 12 wrote 3 bytes
        0x0000 fffb 03                                            |...|

   2365 qemu     RET   sendto 3
   2365 qemu     CALL  sendto(0xc,0xbfbfb180,0x3,0,0,0)
   2365 qemu     GIO   fd 12 wrote 3 bytes
        0x0000 fffb 00                                            |...|

   2365 qemu     RET   sendto 3
   2365 qemu     CALL  sendto(0xc,0xbfbfb180,0x3,0,0,0)
   2365 qemu     GIO   fd 12 wrote 3 bytes
        0x0000 fffd 00                                            |...|

   2365 qemu     RET   sendto 3
   2365 qemu     CALL  fcntl(0xc,F_SETFL,O_NONBLOCK)
   2365 qemu     RET   fcntl 0
   2365 qemu     PSIG  SIGSEGV SIG_DFL
   2365 qemu     NAMI  "qemu.core"


And lsof shows:
bash      2283 anderson    0u  VCHR      0,153   0t132489     153 
/dev/kqemu0
bash      2283 anderson    1u  VCHR      0,153   0t132489     153 
/dev/kqemu0
bash      2283 anderson    2u  VCHR      0,153   0t132489     153 
/dev/kqemu0
bash      2283 anderson  255u  VCHR      0,153   0t132489     153 
/dev/kqemu0
qemu      2413     root  cwd   VDIR      0,127       6656 2237440 
/home/anderson
qemu      2413     root  rtd   VDIR      0,126       1024       2 /
qemu      2413     root  txt   VREG      0,126     924744 1185013 
/usr/local/bin/qemu
qemu      2413     root  txt   VREG      0,126     182036 1625114 
/libexec/ld-elf.so.1
qemu      2413     root  txt   VREG      0,126      98108 4145255 
/lib/libm.so.4
qemu      2413     root  txt   VREG      0,126      69020 4145277 
/lib/libz.so.3
qemu      2413     root  txt   VREG      0,126     470825 1188191 
/usr/local/lib/libSDL.so.11
qemu      2413     root  txt   VREG      0,126      48452 4145259 
/lib/libutil.so.6
qemu      2413     root  txt   VREG      0,126     148620 4145276 
/lib/libpthread.so.2
qemu      2413     root  txt   VREG      0,126    1060216 4145271 
/lib/libc.so.7
qemu      2413     root  txt   VREG      0,126    1010193 1181280 
/usr/local/lib/libiconv.so.3
qemu      2413     root  txt   VREG      0,126     929137 1745765 
/usr/X11R6/lib/libX11.so.6
qemu      2413     root  txt   VREG      0,126      67306 1745793 
/usr/X11R6/lib/libXext.so.6
qemu      2413     root  txt   VREG      0,126      13349 1745921 
/usr/X11R6/lib/libXrandr.so.2
qemu      2413     root  txt   VREG      0,126      36696 1745913 
/usr/X11R6/lib/libXrender.so.1
qemu      2413     root  txt   VREG      0,126     339696 1186468 
/usr/local/lib/libvga.so.1
qemu      2413     root  txt   VREG      0,126      28604 1134373 
/usr/lib/libvgl.so.4
qemu      2413     root  txt   VREG      0,126     103186 1185066 
/usr/local/lib/libaa.so.1
qemu      2413     root  txt   VREG      0,126      11068 1134449 
/usr/lib/libusbhid.so.2
qemu      2413     root  txt   VREG      0,126     280672 4145257 
/lib/libncurses.so.6
qemu      2413     root  txt   VREG      0,126      10297 2288799 
/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
qemu      2413     root  txt   VREG      0,126     135693 2288807 
/usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
qemu      2413     root  txt   VREG      0,126      42018 1749472 
/usr/X11R6/lib/libXcursor.so.1
qemu      2413     root  txt   VREG      0,126      19270 1745937 
/usr/X11R6/lib/libXfixes.so.3
qemu      2413     root    0u  VCHR      0,153   0t132489     153 
/dev/kqemu0
qemu      2413     root    1u  VCHR      0,153   0t132489     153 
/dev/kqemu0
qemu      2413     root    2u  VCHR      0,153   0t132489     153 
/dev/kqemu0
qemu      2413     root    3u  VCHR      0,158       0t42     158 /dev 
(devfs)
qemu      2413     root    4u  VREG      0,126      16384 2002091 / 
(/dev/ufs/root)
qemu      2413     root    5u  VREG      0,128  536870912  588871 
/alt/images/fs.img
qemu      2413     root    6u  VREG      0,126      16384 2002092 / 
(/dev/ufs/root)
qemu      2413     root    7u  VREG      0,128  268435456  588872 
/alt/images/swapfile
qemu      2413     root    8u  unix 0xc94c0bac        0t0 
->0xc6a70cf8
qemu      2413     root    9u  unix 0xc697314c        0t0 
->0xcbb1d14c
qemu      2413     root   10u  IPv4 0xc678fd04        0t0     TCP *:1111 
(LISTEN)
qemu      2413     root   11u  VCHR      0,161        0t0     161 /dev 
(devfs)


Eric



-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
An undefined problem has an infinite number of solutions.
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45DB10D3.8040807>