[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
segfault on bfd_elf_get_dynamic_symtab_upper_bound
From: |
Eric Neblock |
Subject: |
segfault on bfd_elf_get_dynamic_symtab_upper_bound |
Date: |
Wed, 10 Feb 2016 09:41:56 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
I've been trying to reinvent the wheel by learning how to use libbfd
to write a small debugger. I know that to get symbols that I'll need to
use libbfd and that objdump -D can produce output to what I want.
However, when copying objdump's slurp_dynamic_symtab(bfd *abfd) I find
that I get a segfault on bfd_get_dynamic_symtab_upper_bound().
slurp_symtab works when copied over, so I know I have to be doing
something close to right.
I found a thread that looks similar, but the topic is dropped in
further messages:
https://lists.gnu.org/archive/html/bug-binutils/2003-12/msg00051.html
I thought this might have been an openSuSE problem and reported it here:
https://bugzilla.opensuse.org/show_bug.cgi?id=965667
However, I've found the same problem on Debian Jessie.
If you have any ideas or if I can provide more info, please let me know!
Helpful info:
uname -a:
Linux node 4.0.5-THS_on #1 SMP PREEMPT Thu Jun 18 16:37:06 CDT 2015
x86_64 x86_64 x86_64 GNU/Linux
gcc --version:
gcc-4_8-branch revision 212064
objdump --version:
2.24.0.20140403-6.1
Regards,
Eric
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBAgAGBQJWu1pDAAoJECjJUTdBhEe00QAQAIHRaAJ5/oMTF957RuOXvs54
xpIPv1VaMe1eRNq3TN/McAa6RdkIM/RPfvTJ/YExj4U5j33AlvboUPpCjK7p324Q
t1D0ok2IneA7vyCBCtKuJImBMR4eyVAZCExHn0EB7xWZKmsHcknsQQdwjpL3R9Vg
h2xAQNHaUsHpowTV09z+zO0XAjACYMF5GeceAz5ZSljMEG351s3cX0sf1u8WBd4Z
/4znOILJ/fHOydPI98rMskFbMqUy5+nKId2ONUVuBtI1t4ADujBYS/3FzZ5fx+cV
RH7h1X8gbmn4ef2PnfVigK6T+z6qTCSTqAuMiuOLq2PVd/rLwN/o22Y8GzSdQuxR
gSYd4LRrkMkl0KFb4Bxq7zuCaCcK3C9ylEKmRFg9bZrnpxZUjyq1sdu6ZMG9dJVG
+FzqCqwj8xvqnMF8XpH3Fv7NePs3N3CvvGU9MRjnYvGUVJQhxjzZ74GVvyUIWWPQ
81Lz6RKEryrIe+XGxGtrEXfr7Ve9YMulelZHiTU5PfarCkaWGHscKwXcTC+VVpiV
nfHgLXGU+rU0UmwjhhU9WPX41OQws0pWlVtHod0ae2VBeLv2FtalwOUfe1+rafbT
D1j3lOvd5k6iZL/zzwPdleyWiKyIZ+xW1BXTVHxCAwHoeNsnZjgOhZHWBnvJw2bv
y25JjThv6RMhKKdgDPyn
=jXym
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- segfault on bfd_elf_get_dynamic_symtab_upper_bound,
Eric Neblock <=