Bug 9412 - 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
Summary: RHEL 4, Kernel 2.6.9-5.ELsmp, gcc 3.4.3, gdb 6.6: Gdb crashes while running 3...
Status: RESOLVED OBSOLETE
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 6.6
: P1 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-29 20:08 UTC by rohit_jain
Modified: 2018-10-25 19:17 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
gdb_linux_64_kernel_crash.gtar.gz (4.66 KB, application/octet-stream)
, rohit_jain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rohit_jain 2007-08-29 20:08:01 UTC
[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
Comment 1 drow@false.org 2007-08-29 20:16:59 UTC
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
Comment 2 Simon Marchi 2018-10-25 19:17:50 UTC
I'll close it, since it's most likely obsolete by now.  Feel free to re-open if it is still an issue.