From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYodA-0002d5-HT for qemu-devel@nongnu.org; Wed, 26 Apr 2006 14:20:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYod9-0002cj-Ik for qemu-devel@nongnu.org; Wed, 26 Apr 2006 14:20:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYod9-0002cg-Fa for qemu-devel@nongnu.org; Wed, 26 Apr 2006 14:20:51 -0400 Received: from [193.190.2.1] (helo=student.uhasselt.be) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYoft-0005bt-1d for qemu-devel@nongnu.org; Wed, 26 Apr 2006 14:23:41 -0400 Message-ID: <20060426182046.GA346@lumumba.uhasselt.be> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline From: takis@lumumba.uhasselt.be (Panagiotis Issaris) Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [BUG] Segfault on switching fda Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 26 Apr 2006 18:20:52 -0000 To: qemu-devel@nongnu.org Cc: panagiotis@gmail.com Hi, Current CVS Qemu (of about 15 minutes ago) crashes when I run qemu -snapshot -no-kqemu -fda a01 switch to the console and enter: change fda a02 Leaving the "-snapshot" parameter out, makes the segfault go away. The a01 and a02 files, are the bootdisks of the Atheos operating system available here: wget http://atheos.syllable-norden.info/download/0.3.7/base/atheos-0.3.7.= boot.01 wget http://atheos.syllable-norden.info/download/0.3.7/base/atheos-0.3.7.= boot.02 I've tried to get some more info using GDB. With friendly regards, Takis takis@poseidon:/usr/local/src/qemu$ gdb ./i386-softmmu/qemu GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you = are welcome to change it and/or distribute copies of it under certain conditi= ons. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for detail= s. This GDB was configured as "i486-linux-gnu"...Using host libthread_db lib= rary "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) r -snapshot -no-kqemu -fda a01 Starting program: /usr/local/src/qemu/i386-softmmu/qemu -snapshot -no-kqe= mu -fda a01 [Thread debugging using libthread_db enabled] [New Thread -1212549440 (LWP 24863)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212549440 (LWP 24863)] 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () #1 0x08052f0c in bdrv_read (bs=3D0x9b437e0, sector_num=3D-46319213617055= 00672, buf=3D0x9b61724 "=C3=A6 nb_sectors=3D1) at /usr/local/src/qemu/blo= ck.c:429 #2 0x0808164a in fdctrl_transfer_handler (opaque=3D0x9b61708, nchan=3D2,= dma_pos=3D0, dma_len=3D9216) at /usr/local/src/qemu/hw/fdc.c:990 #3 0x0807a024 in DMA_run () at /usr/local/src/qemu/hw/dma.c:343 #4 0x0805044f in main_loop_wait (timeout=3D0) at /usr/local/src/qemu/vl.= c:4458 #5 0x080504e6 in main_loop () at /usr/local/src/qemu/vl.c:4532 #6 0x080517c3 in main (argc=3D5, argv=3D0xbfb84db4) at /usr/local/src/qe= mu/vl.c:5667 (gdb) up #1 0x08052f0c in bdrv_read (bs=3D0x9b437e0, sector_num=3D-46319213617055= 00672, buf=3D0x9b61724 "=C3=A6 nb_sectors=3D1) at /usr/local/src/qemu/blo= ck.c:429 429 if (drv->bdrv_is_allocated(bs, sector_num, nb_sectors= , &n)) { (gdb) print *drv $1 =3D {format_name =3D 0x8103c6b "raw", instance_size =3D 4, bdrv_probe = =3D 0x8053542 , bdrv_open =3D 0x8053548 , bdrv_read =3D 0x8053616 = , bdrv_write =3D 0x8053679 , bdrv_close =3D 0x80536dc , bdrv_create =3D 0x80536ee , bdrv_is_allocated =3D 0, bdrv_set= _key =3D 0, bdrv_make_empty =3D 0, next =3D 0x0} (gdb) print *bs $2 =3D {total_sectors =3D 2880, read_only =3D 0, inserted =3D 1, removabl= e =3D 1, locked =3D 0, encrypted =3D 0, change_cb =3D 0x8080adc , change_opaque= =3D 0x9b61938, drv =3D 0x810d860, opaque =3D 0x9b42100, boot_sector_enabled =3D 0, boot_sector_data =3D '= \0' , filename =3D "a02\000/vl.F6Vgyj", '\0' , backing_file =3D "/usr/local/src/qemu/a01", '\0' , is_temporary =3D 0, backing_hd =3D 0x9b44960, cyls =3D 0, heads =3D 0, se= cs =3D 0, translation =3D 0, type =3D 2, device_name =3D "fda", '\0' , next =3D 0x0} (gdb) = =20 --=20 OpenPGP key: http://lumumba.uhasselt.be/takis/takis_public_key.txt fingerprint: 6571 13A3 33D9 3726 F728 AA98 F643 B12E ECF3 E029