Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2001 13:10:26 -0700 (PDT)
From:      Jim Pirzyk <Jim.Pirzyk@disney.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/31047: Linux programs do not dump core in linux format but FreeBSD format.
Message-ID:  <200110042010.f94KAQ144436@snoopy.fan.fa.disney.com>

next in thread | raw e-mail | index | archive | help

>Number:         31047
>Category:       kern
>Synopsis:       Linux programs do not dump core in linux format but FreeBSD format.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 04 13:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jim Pirzyk
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD snoopy 4.4-RELEASE FreeBSD 4.4-RELEASE #2: Fri Sep 21 11:16:23 PDT 2001 root@snoopy:/auto/roy/dist/pub/FreeBSD/4.4-RELEASE/sys/compile/UP_WORKSTATION i386


	
>Description:
	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 ?? ()
	
>Fix:

	
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110042010.f94KAQ144436>