Bug 31047

Summary: Linux programs do not dump core in linux format but FreeBSD format.
Product: Base System Reporter: Jim.Pirzyk <Jim.Pirzyk>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   

Description Jim.Pirzyk 2001-10-04 21:20:01 UTC
	When a linux program core dumps, the resulting core file is in
	FreeBSD format.  This means I cannot use the core file with the
	linux gdb program nor can the FreeBSD gdb program handle the 
	linux binary well because it cannot find the linux libary files.

How-To-Repeat: 	
gdb gears gears.core
GNU gdb 4.18
Copyright 1998 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 conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `gears'.
Program terminated with signal 4, Illegal instruction.
/lib/libm.so.6: No such file or directory.
#0  0x88163380 in ?? ()
(gdb) 

/compat/linux/usr/bin/gdb gears gears.core
GNU gdb 4.18
Copyright 1998 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 conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
Couldn't fetch registers from core file: File in wrong format
Couldn't fetch register set 2 from core file: File in wrong format
Reading symbols from /usr/X11R6/lib/libGL.so.1...done.
Reading symbols from /usr/X11R6/lib/libGLU.so.1...done.
Reading symbols from /usr/X11R6/lib/libglut.so.3...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Couldn't fetch registers from core file: File in wrong format
Couldn't fetch register set 2 from core file: File in wrong format
#0  0x0 in ?? ()
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-14 11:19:01 UTC
State Changed
From-To: open->suspended

Suspended awaiting patch
Comment 2 Remko Lodder freebsd_committer freebsd_triage 2007-02-28 07:34:03 UTC
State Changed
From-To: suspended->closed

Patch never arrived