From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MUPmR-0002EL-08 for mharc-grub-devel@gnu.org; Fri, 24 Jul 2009 14:46:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MUPmP-0002Dk-54 for grub-devel@gnu.org; Fri, 24 Jul 2009 14:46:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MUPmK-0002B1-ES for grub-devel@gnu.org; Fri, 24 Jul 2009 14:46:04 -0400 Received: from [199.232.76.173] (port=57608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUPmK-0002Aq-3K for grub-devel@gnu.org; Fri, 24 Jul 2009 14:46:00 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:60862) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MUPmJ-0003Un-Dr for grub-devel@gnu.org; Fri, 24 Jul 2009 14:45:59 -0400 Received: from [85.180.4.132] (e180004132.adsl.alicedsl.de [85.180.4.132]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MKuxg-1MUPmI1lvN-0008Kl; Fri, 24 Jul 2009 20:45:58 +0200 From: Felix Zielcke To: The development of GRUB 2 Content-Type: text/plain Date: Fri, 24 Jul 2009 20:46:46 +0200 Message-Id: <1248461206.3510.76.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.27.4 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX184FLD95Y3DRdF3PaRgKGwTMKvd52GPWzVbOIC B1M1A+7ivAj3XQfa1WsrXgPFUE6TnExaXXCCW4kWk/SyWgjJ8r gaJZxJV7jF9ukZhNk6Qgw== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Fwd: Re: Bug#495949: grub-common: grub-probe segfaults] X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2009 18:46:05 -0000 And another bug forward Anyone has an idea why a dm-crypt/lvm leads to a segfault in the strcmp here: grub_partition_iterate (dest_dev->disk, (strcmp (dest_partmap, "pc_partition_map") ? find_usable_region_gpt : find_usable_region_msdos)); -------- Weitergeleitete Nachricht -------- > Von: Jean-Luc Coulon (f5ibh) > An: Felix Zielcke > Kopie: 495949@bugs.debian.org > Betreff: Re: Bug#495949: grub-common: grub-probe segfaults > Datum: Fri, 24 Jul 2009 20:40:03 +0200 > > Hi Felix, > > >> Jean-Luc > > > >Oh not good. > >Then please do again a debug compile with `DEB_BUILD_OPTIONS="nostrip > >noopt debug" dpkg-buildpackage -b' > >and get a backtrace with gdb. > >See [0] for my previous mail but note the spaces now in > >DEB_BUILD_OPTIONS instead of the commas. I was wrong. > > > >[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495949#30 > > > > So, I rebuilt grub. > Then as I don't know how to debug directly the shell script (grub- > install), I laaunched it with set -x and got the failing line: > > --->8---------->8------------->8----------->8------------>8---------- > ... > + /usr/bin/grub-mkimage --output=/boot/grub/core.img '--prefix=(md0)/ > grub' biosdisk ext2 pc raid mdraid > + /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/ > boot/grub/device.map /dev/md0 > ./grub-install: line 323: 4663 Erreur de segmentation $grub_setup > ${setup_verbose} ${setup_force} --directory=${grubdir} --device-map= > ${device_map} ${install_device} > + exit 1 > --->8---------->8------------->8----------->8------------>8---------- > > So I launched gdb as follos, I don't know if it is the right process... > but I got a (small) backtrace): > > --->8---------->8------------->8----------->8------------>8---------- > [jean-luc@tangerine] % sudio gdb --args /usr/sbin/grub-setup --force -- > directory=/boot/grub --device-map=/boot/grub/device.map /dev/md0 > GNU gdb (GDB) 6.8.50.20090628-cvs-debian > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > For bug reporting instructions, please see: > ... > (gdb) run > Starting program: /usr/sbin/grub-setup --force --directory=/boot/grub > --device-map=/boot/grub/device.map /dev/md0 > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff7b08c60 in strcmp () from /lib/libc.so.6 > (gdb) bt > #0 0x00007ffff7b08c60 in strcmp () from /lib/libc.so.6 > #1 0x0000000000401cb1 in setup (dir=0x63e010 "/boot/grub", > boot_file=0x4279f4 "boot.img", core_file=0x4279eb "core.img", > root=0x64b9c0 "md0", dest=0x0, must_embed=1, force=1) > at /usr/local/src/tmp/grub/grub2-1.96+20090721/util/i386/pc/grub- > setup.c:335 > #2 0x0000000000402cea in main (argc=5, argv=0x7fffffffe8a8) > at /usr/local/src/tmp/grub/grub2-1.96+20090721/util/i386/pc/grub- > setup.c:774 > (gdb) > --->8---------->8------------->8----------->8------------>8---------- > > Best regards > > Jean-Luc -- Felix Zielcke