Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addr2line limitations: crashes in some cases, gets file wrong in others #180

Open
derekbruening opened this issue Nov 28, 2014 · 1 comment

Comments

@derekbruening
Copy link
Contributor

From derek.br...@gmail.com on December 10, 2010 17:58:18

PR 530836

I implemented PR 526420 to work around this crash on Fedora 12:

addr2line -f -e /usr/lib/debug/lib/ld-2.11.so.debug 0x1749b
Segmentation fault (core dumped)

unfortunately that's the address of strlen, which we want in our default
suppression file (not exported so we can't replace it): for now putting *
in default file.

addr2line also gets the source file wrong here:

addr2line -f -e /lib/ld-linux.so.2 0x944031
_dl_relocate_object
strnlen.c:0

gdb has it right:
#9 0x00944031 in _dl_relocate_object (scope= , reloc_mode= ,
consider_profiling= ) at dl-reloc.c:268
direct on .debug gives different but more accurate answer:

PR 530836: addr2line crashes on strlen addr

  • changed default suppression file to use * instead of strlen
    alternative would be to extend hacky pattern-match code inside DrMem:
    I think this is better and I'm not too worried about over-suppressing
    inside that loader routine.
  • added an uninit for loader strlen as well that I see occasionally.
    not as happy about this one: but we'll live w/ the risk of false
    negatives until we either fix addr2line or get PR 486382.

Original issue: http://code.google.com/p/drmemory/issues/detail?id=180

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on February 17, 2013 08:25:31

this will be fixed by issue #828 and issue #926

Labels: Component-Heapstat
Blockedon: drmemory:828 drmemory:926

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant