[backtrace] Avoid segfault

Tom de Vries tdevries@suse.de
Sun Jan 27 21:53:00 GMT 2019


On 25-01-19 18:15, Nathan Sidwell wrote:
> On 1/25/19 5:28 AM, Tom de Vries wrote:
>>
>> This patch fixes it by passing "" instead of NULL, in the call to
>> elf_add at line 3083 (for .gnu_debugaltlink), not the call to elf_add at
>> line 3044 (for .gnu_debuglink) mentioned above.
>>
>> Nathan, does this fix the problem for you? If not, can you provide a
>> reproducer, or give a hint on how one could be constructed?
> 
> I still hit the problem, and am installing this as sufficiently obvious.
>  I'm on a fedora system debugging pr88995.  The debuglink_name is
> "../../.dwz/isl-0.16.1-7.fc29.x86_64"
> 

I've managed to reproduce this segfault instance by adding a test-case
that uses both build-id and dwz.

OK for trunk?

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libbacktrace-Add-test-cases-exercising-build-id-and-dwz.patch
Type: text/x-patch
Size: 29700 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190127/d8b3f07f/attachment.bin>


More information about the Gcc-patches mailing list