<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34234</bug_id>
          
          <creation_ts>2017-11-25 00:36:20 +0300</creation_ts>
          <short_desc>segfault with -x *</short_desc>
          <delta_ts>2020-10-20 20:34:55 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ltrace</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://lists.altlinux.org/pipermail/devel-newbies/2017-November/001117.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>grenka</cc>
    
    <cc>grenka</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>167441</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-11-25 00:36:20 +0300</bug_when>
    <thetext>ltrace crashes when used like this. (The presence of *-debuginfo packages is not essential to reproduce the crash.)

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

$ ltrace  -x \* /bin/echo a
....
&lt;... check_match resumed&gt; ) = { 20645, &apos;&quot;&apos;, &apos;\0&apos;, 13, 471424, 151 }
&lt;... do_lookup_x resumed&gt; ) = 1
&lt;... _dl_lookup_symbol_x resumed&gt; ) = &lt;void&gt;
&lt;... _dl_fixup resumed&gt; ) = 140342807331200
fputs_unlocked@libc.so.6(0x7fffa221149b, 0x7fa400007fa4, 45, 32 &lt;unfinished ...&gt;
strlen@libc.so.6(&quot;a&quot;) = 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&apos;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175986</commentid>
    <comment_count>1</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2018-11-22 17:46:28 +0300</bug_when>
    <thetext>Also crashes on ltrace -x \@ /bin/echo a
and ltrace -x \- /bin/echo a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>