From mikko@mt.dynas.se  Sat Dec 11 06:32:41 1999
Return-Path: <mikko@mt.dynas.se>
Received: from karon.dynas.se (karon.dynas.se [192.71.43.4])
	by hub.freebsd.org (Postfix) with SMTP id ECC5514C06
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Dec 1999 06:32:29 -0800 (PST)
	(envelope-from mikko@mt.dynas.se)
Received: (qmail 79183 invoked from network); 11 Dec 1999 14:32:20 -0000
Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10)
  by karon.sto.dynas.se with SMTP; 11 Dec 1999 14:32:20 -0000
Received: (qmail 20731 invoked from network); 11 Dec 1999 14:32:20 -0000
Received: from mt.dynas.se (172.16.1.144)
  by spirit.dynas.se with SMTP; 11 Dec 1999 14:32:20 -0000
Received: (from mikko@localhost)
	by mt.dynas.se (8.9.3/8.9.3) id OAA26883;
	Sat, 11 Dec 1999 14:37:03 +0100 (CET)
	(envelope-from mikko)
Message-Id: <199912111337.OAA26883@mt.dynas.se>
Date: Sat, 11 Dec 1999 14:37:03 +0100 (CET)
From: mikko@dynas.se
Sender: mikko@mt.dynas.se
Reply-To: mikko@dynas.se
To: FreeBSD-gnats-submit@freebsd.org
Subject: addr2line is unable to find line numbers
X-Send-Pr-Version: 3.2

>Number:         15416
>Category:       bin
>Synopsis:       addr2line is unable to find line numbers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 11 06:40:01 PST 1999
>Closed-Date:    Sat Nov 23 13:30:38 PST 2002
>Last-Modified:  Sat Nov 23 13:30:38 PST 2002
>Originator:     Mikko Tyljrvi
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

 FreeBSD 4.0-CURRENT FreeBSD 4.0-CURRENT #3: Thu Dec  9 17:09:51 CET 1999
 GNU addr2line 2.9.1

>Description:

 The addr2line program never manages to figure out line numbers.
 Could be an indication of more fundamental problems in the port
 of GNU binutils.

>How-To-Repeat:

 % cat > xxx.c
 /* Some initial blank lines... */

 int main()
 {
	return 0;
 }
 ^D 
 % cc -g xxx.c
 % nm a.out | grep main
 080483c0 T main
 % addr2line 080483c0
 /tmp/xxx.c:0

Note: On Linux (RH 6.1, also version 2.9.1 of binutils) this results
in "/tmp/xxx.c:5".

>Fix:




>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Sat Nov 23 13:29:10 PST 2002 
State-Changed-Why:  
Closed at submitter's request (msg below) 
Submitter's new email address is: mbsd@pacbell.net 

-------- 
As the originator of that PR (the e-mail address in the PR is now 
defunct), I'd say close it.  Nowadays the problem only seems to affect 
the "main" symbol, other functions are resolved as expected. 

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