From Jim.Pirzyk@disney.com  Thu Oct  4 13:10:29 2001
Return-Path: <Jim.Pirzyk@disney.com>
Received: from mail.disney.com (mail.disney.com [204.128.192.15])
	by hub.freebsd.org (Postfix) with ESMTP id 87DDB37B408
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Oct 2001 13:10:28 -0700 (PDT)
Received: from Hermes10.corp.disney.com (root@hermes10.corp.disney.com [153.7.110.102])
	by mail.disney.com (Switch-2.2.0/Switch-2.2.0) with SMTP id f94K9Pv27658
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 4 Oct 2001 13:09:25 -0700 (PDT)
Received: from [172.30.50.1] by hermes.corp.disney.com with ESMTP for FreeBSD-gnats-submit@freebsd.org; Thu, 4 Oct 2001 13:09:31 -0700
Received: from plio.fan.fa.disney.com (plio.fan.fa.disney.com [153.7.118.2])
	by pecos.fa.disney.com (8.11.3/8.11.3) with ESMTP id f94KPAs16441
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 4 Oct 2001 13:25:10 -0700 (PDT)
Received: from snoopy.fan.fa.disney.com (snoopy.fan.fa.disney.com [153.7.117.170])
	by plio.fan.fa.disney.com (8.9.2/8.9.2) with ESMTP id NAA24020
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 4 Oct 2001 13:10:26 -0700 (PDT)
	(envelope-from Jim.Pirzyk@mailhost)
Received: (from Jim.Pirzyk@localhost)
	by snoopy.fan.fa.disney.com (8.11.6/8.11.6) id f94KAQ144436;
	Thu, 4 Oct 2001 13:10:26 -0700 (PDT)
	(envelope-from Jim.Pirzyk)
Message-Id: <200110042010.f94KAQ144436@snoopy.fan.fa.disney.com>
Date: Thu, 4 Oct 2001 13:10:26 -0700 (PDT)
From: Jim Pirzyk <Jim.Pirzyk@disney.com>
Reply-To: Jim Pirzyk <Jim.Pirzyk@disney.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Linux programs do not dump core in linux format but FreeBSD format.
X-Send-Pr-Version: 3.113

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 04 13:20:01 PDT 2001
>Closed-Date:    Wed Feb 28 07:34:04 GMT 2007
>Last-Modified:  Wed Feb 28 07:34:04 GMT 2007
>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:
State-Changed-From-To: open->suspended 
State-Changed-By: kris 
State-Changed-When: Mon Jul 14 03:19:01 PDT 2003 
State-Changed-Why:  
Suspended awaiting patch 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31047 
State-Changed-From-To: suspended->closed 
State-Changed-By: remko 
State-Changed-When: Wed Feb 28 07:34:03 UTC 2007 
State-Changed-Why:  
Patch never arrived 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31047 
>Unformatted:
