[Converted from Gnats 2307] GDB (both 32 bit and 64 bit builds) crashes on this platform while trying to run 32 bit executable. This crash is specific to this kernel version. (gdb) r Starting program: ./test Segmentation fault Message from syslogd@xyz at Tue Aug 28 18:12:41 2007 ... xyz kernel: invalid operand: 0000 [57] SMP I have attached a reproducible test for this crash. Release: GNU gdb 6.6 Environment: Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77 --enable-java-awt=gtk --host=x86_64-redhat-linux Thread model: posix gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4) GNU gdb 6.6 This GDB was configured as "x86_64-unknown-linux-gnu". Linux xyz 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux WS release 4 (Nahant) Kernel \r on an \m How-To-Repeat: Steps to reproduce crash: - 'make' - 'gdb ./test' - 'run' Gdb will crash with following error: (gdb) r Starting program: ./test Segmentation fault Message from syslogd@xyz at Tue Aug 28 18:12:41 2007 ... xyz kernel: invalid operand: 0000 [57] SMP
From: Daniel Jacobowitz <drow@false.org> To: rohit_jain@mentor.com Cc: gdb-gnats@sources.redhat.com Subject: Re: gdb/2307: RHEL 4, Kernel 2.6.9-5.ELsmp, gcc 3.4.3, gdb 6.6: Gdb crashes while running 32 bit executable on this platform Date: Wed, 29 Aug 2007 16:16:59 -0400 On Wed, Aug 29, 2007 at 08:04:41PM -0000, rohit_jain@mentor.com wrote: > Message from syslogd@xyz at Tue Aug 28 18:12:41 2007 ... > xyz kernel: invalid operand: 0000 [57] SMP Anything which provokes a kernel error like this is almost assuredly a kernel bug, not a GDB bug. -- Daniel Jacobowitz CodeSourcery
I'll close it, since it's most likely obsolete by now. Feel free to re-open if it is still an issue.