Bug 227167 - libdwfl dwfl_module_addrname can't find symbol name for symbols with st_size=0.
libdwfl dwfl_module_addrname can't find symbol name for symbols with st_size=0.
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: elfutils (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
:
Depends On:
Blocks: 227231
  Show dependency treegraph
 
Reported: 2007-02-02 16:30 EST by Nurdin Premji
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 0.126-1.fc6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-02-18 20:26:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to implement finding addrname of functions with st_size=0. (1.32 KB, patch)
2007-02-02 16:30 EST, Nurdin Premji
no flags Details | Diff
A program with a function foo with st_size = 0, that segfaults in foo. (2.28 KB, application/octet-stream)
2007-02-02 16:32 EST, Nurdin Premji
no flags Details

  None (edit)
Description Nurdin Premji 2007-02-02 16:30:12 EST
Description of problem:
calling dwfl_module_addrname on a symbol with a st_size of 0 returns null when
it should return the symbol size.

Version-Release number of selected component (if applicable):
0.125

How reproducible:
always.

Steps to Reproduce:
1. Create assembly test with code for a function with no symbol size. That
segfaults.
2. Run the program and try to get a backtrace using dwfl_module_addrname.
  
Actual results:
Get null.

Expected results:
Get foo().

Additional info:
Check out the patch for a possible solution.
Comment 1 Nurdin Premji 2007-02-02 16:30:12 EST
Created attachment 147253 [details]
Patch to implement finding addrname of functions with st_size=0.
Comment 2 Nurdin Premji 2007-02-02 16:32:07 EST
Created attachment 147254 [details]
A program with a function foo with st_size = 0, that segfaults in foo.
Comment 3 Roland McGrath 2007-02-03 14:39:20 EST
I've done a different fix.

Note You need to log in before you can comment on or make changes to this bug.