Skip to content

Ltrace crashes with segmentation fault #7

@greno4ka

Description

@greno4ka

ltrace crashes when used like this. (The presence of *-debuginfo packages is
not essential to reproduce the crash.)

$ ltrace  -x \* /bin/ls /var/empty/
....
<... check_match resumed> ) = { 18799, '\022', '\0', 13, 221008, 220 }
<... do_lookup_x resumed> ) = 1
<... _dl_lookup_symbol_x resumed> ) = <void>
<... _dl_fixup resumed> ) = 140287210082128
getenv@libc.so.6("COLUMNS" <unfinished ...>
strlen@libc.so.6("COLUMNS") = 7
<... getenv resumed> ) = nil
ioctl( <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

$ ltrace  -x \* /bin/echo a
....
<... check_match resumed> ) = { 20645, '"', '\0', 13, 471424, 151 }
<... do_lookup_x resumed> ) = 1
<... _dl_lookup_symbol_x resumed> ) = <void>
<... _dl_fixup resumed> ) = 140342807331200
fputs_unlocked@libc.so.6(0x7fffa221149b, 0x7fa400007fa4, 45, 32 <unfinished
...>
strlen@libc.so.6("a") = 1
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

This didn't happen with the previous release: 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions