Bug 21830 - catchsegv.sh does not handle backtraces with parentheses
Summary: catchsegv.sh does not handle backtraces with parentheses
Status: UNCONFIRMED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-24 18:27 UTC by Johan Magnus Jonsson
Modified: 2019-12-27 21:01 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Magnus Jonsson 2017-07-24 18:27:18 UTC
__backtrace_symbols_fd() sometimes writes output in the format

   program(main+<offset>)[<address>]

but catchsegv.sh can only parse the format

   program[<address>]

.

Source references:

https://sourceware.org/git/?p=glibc.git;a=blob;f=debug/backtracesymsfd.c;h=f34a35d6c38c7fbd67e579a996448c17cd316ffa;hb=HEAD#l61

https://sourceware.org/git/?p=glibc.git;a=blob;f=debug/catchsegv.sh;h=db4154a362a2f67d10e4ca2d23de0deebf31a3d7;hb=HEAD#l90
Comment 1 Bernhard Übelacker 2019-12-27 21:01:16 UTC
In following link I attempted to create a patch to
improve the current situation.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946606#15