Red Hat Bugzilla – Bug 227167
libdwfl dwfl_module_addrname can't find symbol name for symbols with st_size=0.
Last modified: 2007-11-30 17:11:56 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):
Steps to Reproduce:
1. Create assembly test with code for a function with no symbol size. That
2. Run the program and try to get a backtrace using dwfl_module_addrname.
Check out the patch for a possible solution.
Created attachment 147253 [details]
Patch to implement finding addrname of functions with st_size=0.
Created attachment 147254 [details]
A program with a function foo with st_size = 0, that segfaults in foo.
I've done a different fix.