Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDigN-0003Wt-0a for qemu-devel@nongnu.org; Tue, 01 Jul 2008 12:26:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDigL-0003Wd-Ua for qemu-devel@nongnu.org; Tue, 01 Jul 2008 12:26:18 -0400 Received: from [199.232.76.173] (port=38373 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDigL-0003WU-MI for qemu-devel@nongnu.org; Tue, 01 Jul 2008 12:26:17 -0400 Received: from c-0500.emailmediator.com ([64.85.162.118]:59128) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KDigL-0003ow-Eb for qemu-devel@nongnu.org; Tue, 01 Jul 2008 12:26:17 -0400 Received: from pool-96-226-66-69.dllstx.fios.verizon.net ([96.226.66.69] helo=reedmedia.net) by c-0500.emailmediator.com with esmtpa (Exim 4.67) (envelope-from ) id 1KDigK-0007Zd-AW for qemu-devel@nongnu.org; Tue, 01 Jul 2008 12:26:16 -0400 Date: Tue, 1 Jul 2008 11:26:16 -0500 (CDT) From: "Jeremy C. Reed" Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [Qemu-devel] core dump on networking and old pkgsrc patches Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a problem that may already be fixed. I am using qemu 0.9.0 on NetBSD/amd64 -current. It is built using pkgsrc. I know it is out of date. But qemu 0.9.0, 0.9.1, and qemu HEAD from subversion do not build on NetBSD without patches. I emailed this list in November to ask how to submit patches. That thread starts here: http://lists.gnu.org/archive/html/qemu-devel/2007-11/msg00845.html Someone else attached patches for 0.9.1 here: http://lists.gnu.org/archive/html/qemu-devel/2008-01/threads.html (But no feedback) I tried the latest qemu from subversion yesterday and see it still doesn't build on NetBSD. What can I do to get the pkgsrc patches for NetBSD, DragonFly and pkgsrc integrated (as appropriate) into qemu? Now to my current problem... whenever I attempt to ssh or ftp to my gateway (10.0.2.2 assigned by qemu) it core dumps. This is running FreeBSD 4.9 and also DSL Linux 4.2.4. gdb shows: Core was generated by `qemu'. Program terminated with signal 11, Segmentation fault. #0 0x000000000046bfef in tcp_reass (tp=0x7f7ffb238180, ti=0xfb238180, m=0x0) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/slirp/tcp_input.c:207 207 if (ti == (struct tcpiphdr *)tp || ti->ti_seq != tp->rcv_nxt) (gdb) bt #0 0x000000000046bfef in tcp_reass (tp=0x7f7ffb238180, ti=0xfb238180, m=0x0) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/slirp/tcp_input.c:207 #1 0x000000000046cba8 in tcp_input (m=0x7f7ffb228800, iphlen=-8760, inso=0x7f7ffb228850) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/slirp/tcp_input.c:1051 #2 0x0000000000407041 in qemu_send_packet (vc1=0x7f7ffb101eb0, buf=0x7f7ff1b1f866 "RT", size=60) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/vl.c:2993 #3 0x000000000042be24 in ne2000_ioport_write (opaque=0x7f7ff1b1b220, addr=0, val=4) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/hw/ne2000.c:347 #4 0x0000000000404936 in cpu_outb (env=0x7f7ffb238180, addr=0, val=-737804918) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/vl.c:317 #5 0x0000000001b5d369 in code_gen_buffer () #6 0x000000000000002b in ?? () #7 0x0000000000475382 in cpu_x86_exec (env1=0x7f7ffb238180) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/cpu-exec.c:739 #8 0x000000000040b06a in main_loop () at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/vl.c:5965 #9 0x000000000040c28f in main (argc=3, argv=0xc0fa4824) at /usr/pkgsrc/emulators/qemu/work/qemu-0.9.0/vl.c:727