Received: from eggs.gnu.org ([208.118.235.92]:51308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbUKr-0007FK-Cc for qemu-devel@nongnu.org; Sun, 12 May 2013 07:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbUKm-0003vS-2a for qemu-devel@nongnu.org; Sun, 12 May 2013 07:21:01 -0400 Received: from indium.canonical.com ([91.189.90.7]:59684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbUKl-0003vO-Ov for qemu-devel@nongnu.org; Sun, 12 May 2013 07:20:55 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1UbUKk-0001Xk-O3 for ; Sun, 12 May 2013 11:20:54 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id ED82F2E80EF for ; Sun, 12 May 2013 11:20:41 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 12 May 2013 11:12:52 -0000 From: Michael Tokarev <1179104@bugs.launchpad.net> Sender: bounces@canonical.com References: <20130512011454.14948.10865.malonedeb@soybean.canonical.com> Message-Id: <20130512111252.17855.7908.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1179104] Re: client crash during debian ppc installation Reply-To: Bug 1179104 <1179104@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This looks like some TRIM (mis)support in action. It crashes in different paces but repeatable/reproducible (ie, it crash with different error on my system, but the error is always the same on my system). Running it under gdb: (gdb) ru -m 256 -hda /stage/tmp/mjt/tmp/ppc.img -cdrom /stage/tmp/mjt/tmp/p= pc-mini.iso -boot d ... Program received signal SIGSEGV, Segmentation fault. pmac_ide_transfer_cb (opaque=3D0x571321d4, ret=3D0) at hw/ide/macio.c:117 117 ide_set_irq(s->bus); (gdb) bt #0 pmac_ide_transfer_cb (opaque=3D0x571321d4, ret=3D0) at hw/ide/macio.c:1= 17 #1 0x565fcd74 in dma_complete (dbs=3Ddbs@entry=3D0x571a2250, ret=3Dret@ent= ry=3D0) at dma-helpers.c:124 #2 0x565fd059 in dma_bdrv_cb (opaque=3D0x571a2250, ret=3D0) at dma-helper= s.c:152 #3 0x5664fe06 in ide_trim_bh_cb (opaque=3D0x57282c28) at hw/ide/core.c:360 #4 0x565a15b3 in aio_bh_poll (ctx=3Dctx@entry=3D0x570e8918) at async.c:70 #5 0x565a1124 in aio_poll (ctx=3Dctx@entry=3D0x570e8918, blocking=3Dblock= ing@entry=3Dfalse) at /build/kvm/git/aio-posix.c:185 #6 0x565a1488 in aio_ctx_dispatch (source=3D0x570e8918, callback=3D0, user= _data=3D0x0) at async.c:167 #7 0xf7f006d3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libg= lib-2.0.so.0 #8 0x566cd06b in glib_pollfds_poll () at main-loop.c:187 #9 os_host_main_loop_wait (timeout=3D) at main-loop.c:232 #10 main_loop_wait (nonblocking=3D1) at /build/kvm/git/main-loop.c:468 #11 0x56597f76 in main_loop () at /build/kvm/git/vl.c:2028 #12 main (argc=3D9, argv=3D0xffffd9a4, envp=3D0xffffd9cc) at /build/kvm/git= /vl.c:4418 (gdb) l 112 } 113 = 114 /* end of transfer ? */ 115 if (s->nsector =3D=3D 0) { 116 s->status =3D READY_STAT | SEEK_STAT; 117 ide_set_irq(s->bus); 118 } 119 = 120 /* end of DMA ? */ 121 if (io->len =3D=3D 0) { (gdb) p *s $1 =3D {bus =3D 0x0, unit =3D 0 '\000', drive_kind =3D IDE_HD, cylinders = =3D 0, = heads =3D 0, sectors =3D 0, chs_trans =3D 0, nb_sectors =3D 0, mult_secto= rs =3D 0, = identify_set =3D 0, identify_data =3D '\000' , = drive_serial =3D 0, drive_serial_str =3D '\000' , = drive_model_str =3D '\000' , wwn =3D 0, feature =3D 0 '= \000', = error =3D 0 '\000', nsector =3D 0, sector =3D 0 '\000', lcyl =3D 0 '\000'= , = hcyl =3D 0 '\000', hob_feature =3D 0 '\000', hob_nsector =3D 0 '\000', = hob_sector =3D 0 '\000', hob_lcyl =3D 0 '\000', hob_hcyl =3D 0 '\000', = select =3D 0 '\000', status =3D 80 'P', lba48 =3D 0 '\000', bs =3D 0x0, = version =3D "\000\000\000\000\000\000\000\000", events =3D { eject_request =3D false, new_media =3D false}, sense_key =3D 0 '\000', = asc =3D 0 '\000', tray_open =3D false, tray_locked =3D false, = cdrom_changed =3D 0 '\000', packet_transfer_size =3D 0, = elementary_transfer_size =3D 0, io_buffer_index =3D 0, lba =3D 0, = cd_sector_size =3D 0, atapi_dma =3D 0, acct =3D {bytes =3D 0, start_time_= ns =3D 0, = type =3D BDRV_ACCT_READ}, pio_aiocb =3D 0x0, iov =3D {iov_base =3D 0x0, = iov_len =3D 0}, qiov =3D {iov =3D 0x0, niov =3D 0, nalloc =3D 0, size = =3D 0}, = io_buffer_offset =3D 0, io_buffer_size =3D 0, sg =3D {sg =3D 0x0, nsg =3D= 0, = nalloc =3D 0, size =3D 0, dma =3D 0x0}, req_nb_sectors =3D 0, = end_transfer_func =3D 0, data_ptr =3D 0x0, data_end =3D 0x0, io_buffer = =3D 0x0, = io_buffer_total_len =3D 0, cur_io_buffer_offset =3D 0, cur_io_buffer_len = =3D 0, = end_transfer_fn_idx =3D 0 '\000', sector_write_timer =3D 0x0, irq_count = =3D 0, = ext_error =3D 0 '\000', mdata_size =3D 0, mdata_storage =3D 0x0, = media_changed =3D 0, dma_cmd =3D IDE_DMA_READ, smart_enabled =3D 0 '\000'= , = smart_autosave =3D 0 '\000', smart_errors =3D 0, = smart_selftest_count =3D 0 '\000', smart_selftest_data =3D 0x0, ncq_queue= s =3D 0} (gdb) = note the ide_trim_bh_cb callback in the stack trace. This happens when mkext2fs is being run in the guest. So it looks like TRIM command is busted somehow, referencing an invalid (all-zeros) structure. Wonder why it happens only - so far - on ppc :) Thanks, /mjt -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1179104 Title: client crash during debian ppc installation Status in QEMU: Confirmed Status in =E2=80=9Cqemu=E2=80=9D package in Debian: Unknown Bug description: Host system: = Debian Testing/Sid $ uname -a Linux darkside 3.8-1-amd64 #1 SMP Debian 3.8.11-1 x86_64 GNU/Linux = With git rev 38ebb396c955ceb2ef7e246248ceb7f8bfe1b774: I created a HDD image: qemu-img create -f qcow2 powerpc.img 10G I fetched this CD image (I think it's 32bit but I'm not familiar with thi= s architecture): ftp://ftp.debian.org/debian/dists/wheezy/main/installer-powerpc/curre= nt/images/powerpc/netboot/mini.iso I booted the ppc netinst iso with ppc-softmmu/qemu-system-ppc -m 256 -hda /path/to/ppc/powerpc.img -cdr= om /path/to/ppc/mini.iso -boot d I started the installation. After specifying the partitioning information the qemu process aborted with the following showing in the terminal: = *** Error in `./qemu-system-ppc': free(): invalid pointer: 0x00007fcf801a= a7f8 *** =3D=3D=3D=3D=3D=3D=3D Backtrace: =3D=3D=3D=3D=3D=3D=3D=3D=3D /lib/x86_64-linux-gnu/libc.so.6(+0x7aac6)[0x7fcf7874aac6] /lib/x86_64-linux-gnu/libc.so.6(+0x7b843)[0x7fcf7874b843] ./qemu-system-ppc(+0xfc090)[0x7fcf7fafc090] ./qemu-system-ppc(+0x15310d)[0x7fcf7fb5310d] ./qemu-system-ppc(+0xfc781)[0x7fcf7fafc781] ./qemu-system-ppc(+0xfc9fa)[0x7fcf7fafc9fa] ./qemu-system-ppc(+0x14e402)[0x7fcf7fb4e402] ./qemu-system-ppc(+0xa9f77)[0x7fcf7faa9f77] ./qemu-system-ppc(+0xa9af9)[0x7fcf7faa9af9] ./qemu-system-ppc(+0xa9e50)[0x7fcf7faa9e50] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x135)[0x7= fcf7f11a355] ./qemu-system-ppc(+0x1c8238)[0x7fcf7fbc8238] ./qemu-system-ppc(main+0x10c5)[0x7fcf7fa9fc45] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fcf786f1a55] ./qemu-system-ppc(+0xa963d)[0x7fcf7faa963d] =3D=3D=3D=3D=3D=3D=3D Memory map: =3D=3D=3D=3D=3D=3D=3D=3D 7fcf48000000-7fcf480aa000 rw-p 00000000 00:00 0 = 7fcf480aa000-7fcf4c000000 ---p 00000000 00:00 0 = 7fcf50000000-7fcf60000000 rw-p 00000000 00:00 0 = 7fcf60000000-7fcf60022000 rw-p 00000000 00:00 0 = 7fcf60022000-7fcf64000000 ---p 00000000 00:00 0 = 7fcf6438b000-7fcf64560000 rw-p 00000000 00:00 0 = 7fcf64560000-7fcf645c0000 rw-s 00000000 00:04 71172116 = /SYSV00000000 (deleted) 7fcf645c0000-7fcf645cc000 r--p 00000000 08:02 1842018 = /usr/share/fonts/truetype/mathematica/VeraMoBd.ttf 7fcf645d0000-7fcf645dd000 r--p 00000000 08:02 1842006 = /usr/share/fonts/truetype/mathematica/VeraMono.ttf 7fcf645e0000-7fcf64690000 r--p 00000000 08:02 1835254 = /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 7fcf64690000-7fcf64692000 r-xp 00000000 08:02 285548 = /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7fcf64692000-7fcf64891000 ---p 00002000 08:02 285548 = /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7fcf64891000-7fcf64892000 r--p 00001000 08:02 285548 = /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7fcf64892000-7fcf64893000 rw-p 00002000 08:02 285548 = /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7fcf64898000-7fcf6489b000 r-xp 00000000 08:02 287612 = /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp= .so 7fcf6489b000-7fcf64a9b000 ---p 00003000 08:02 287612 = /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp= .so 7fcf64a9b000-7fcf64a9c000 r--p 00003000 08:02 287612 = /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp= .so 7fcf64a9c000-7fcf64a9d000 rw-p 00004000 08:02 287612 = /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp= .so 7fcf64aa0000-7fcf64b10000 r-xp 00000000 08:02 262891 = /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libqtcurve.so 7fcf64b10000-7fcf64d0f000 ---p 00070000 08:02 262891 = /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libqtcurve.so 7fcf64d0f000-7fcf64d10000 r--p 0006f000 08:02 262891 = /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libqtcurve.so 7fcf64d10000-7fcf64d12000 rw-p 00070000 08:02 262891 = /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libqtcurve.so 7fcf64d12000-7fcf64d13000 rw-p 00000000 00:00 0 = 7fcf64d18000-7fcf64d24000 r-xp 00000000 08:02 788582 = /lib/x86_64-linux-gnu/libnss_files-2.17.so 7fcf64d24000-7fcf64f23000 ---p 0000c000 08:02 788582 = /lib/x86_64-linux-gnu/libnss_files-2.17.so 7fcf64f23000-7fcf64f24000 r--p 0000b000 08:02 788582 = /lib/x86_64-linux-gnu/libnss_files-2.17.so 7fcf64f24000-7fcf64f25000 rw-p 0000c000 08:02 788582 = /lib/x86_64-linux-gnu/libnss_files-2.17.so 7fcf64f28000-7fcf64f32000 r-xp 00000000 08:02 788590 = /lib/x86_64-linux-gnu/libnss_nis-2.17.so 7fcf64f32000-7fcf65131000 ---p 0000a000 08:02 788590 = /lib/x86_64-linux-gnu/libnss_nis-2.17.so 7fcf65131000-7fcf65132000 r--p 00009000 08:02 788590 = /lib/x86_64-linux-gnu/libnss_nis-2.17.so 7fcf65132000-7fcf65133000 rw-p 0000a000 08:02 788590 = /lib/x86_64-linux-gnu/libnss_nis-2.17.so 7fcf65138000-7fcf6513f000 r-xp 00000000 08:02 788550 = /lib/x86_64-linux-gnu/libnss_compat-2.17.so 7fcf6513f000-7fcf6533e000 ---p 00007000 08:02 788550 = /lib/x86_64-linux-gnu/libnss_compat-2.17.so 7fcf6533e000-7fcf6533f000 r--p 00006000 08:02 788550 = /lib/x86_64-linux-gnu/libnss_compat-2.17.so 7fcf6533f000-7fcf65340000 rw-p 00007000 08:02 788550 = /lib/x86_64-linux-gnu/libnss_compat-2.17.so 7fcf65340000-7fcf655fb000 r--p 00000000 08:02 392962 = /usr/lib/locale/locale-archive 7fcf65600000-7fcf65640000 rw-p 00000000 00:00 0 = 7fcf65650000-7fcf65651000 r--s 00000000 08:02 927793 = /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le64.cache-3 7fcf65658000-7fcf65669000 r--s 00000000 08:02 927791 = /var/cache/fontconfig/99323171c53ab78df6914f910138fdd6-le64.cache-3 7fcf65670000-7fcf65679000 r--s 00000000 08:02 921505 = /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3 7fcf65680000-7fcf65683000 r--s 00000000 08:02 927785 = /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le64.cache-3 7fcf65688000-7fcf6568b000 r--s 00000000 08:02 919689 = /var/cache/fontconfig/f24b2111ab8703b4e963115a8cf14259-le64.cache-3 7fcf65690000-7fcf65692000 r--s 00000000 08:02 923763 = /var/cache/fontconfig/0fafd173547752dce4dee1a69e0b3c95-le64.cache-3 7fcf65698000-7fcf656a0000 r--s 00000000 08:02 919688 = /var/cache/fontconfig/a6d8cf8e4ec09cdbc8633c31745a07dd-le64.cache-3Aborted To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1179104/+subscriptions