Bug 34234 - segfault with -x *
: segfault with -x *
Status: ASSIGNED
: Sisyphus
(All bugs in Sisyphus/ltrace)
: unstable
: all Linux
: P3 normal
Assigned To:
:
: https://lists.altlinux.org/pipermail/...
:
:
:
  Show dependency tree
 
Reported: 2017-11-25 00:36 by
Modified: 2017-12-13 16:58 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2017-11-25 00:36:20
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 +++

$ rpm -q ltrace coreutils-debuginfo glibc-core-debuginfo
ltrace-0.7.91.0.198.git82c6640-alt1.x86_64
coreutils-debuginfo-8.27.0.23.f4570-alt1.x86_64
glibc-core-debuginfo-2.25-alt3.x86_64
$

This didn't happen with the previous release:  0.6.0-alt1 

So, this might be the case for git bisect (if someone is interested to catch
the bug).