Package: strace
Version: 4.5.17+cvs080723-2
Followup-For: Bug #511083

Hello,

a very similar segfault also happens when stracing lxlauncher:

$ gdb --args strace lxlauncher
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(no debugging symbols found)
(gdb) run
[...]
getdents(7, 
Program received signal SIGSEGV, Segmentation fault.
0x00007fdb049cea47 in ?? () from /lib/libc.so.6
(gdb) where
#0  0x00007fdb049cea47 in ?? () from /lib/libc.so.6
#1  0x00007fdb049d12c6 in ?? () from /lib/libc.so.6
#2  0x00007fdb049d2a78 in malloc () from /lib/libc.so.6
#3  0x000000000040a3d2 in ?? ()
#4  0x00000000004051ee in ?? ()
#5  0x0000000000404616 in ?? ()
#6  0x00007fdb049791a6 in __libc_start_main () from /lib/libc.so.6
#7  0x0000000000401f69 in ?? ()
#8  0x00007fff0cec8438 in ?? ()
#9  0x000000000000001c in ?? ()
#10 0x0000000000000002 in ?? ()
#11 0x00007fff0cec97ef in ?? ()
#12 0x00007fff0cec97ff in ?? ()
#13 0x0000000000000000 in ?? ()

Valgrind shows some issues:

$ valgrind -v strace lxlauncher
[...]
==30819== 
==30819== ERROR SUMMARY: 698 errors from 14 contexts (suppressed: 8 from 1)
==30819== 
==30819== 9 errors in context 1 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4C22D94: strlen (mc_replace_strmem.c:242)
==30819==    by 0x407D3E: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 9 errors in context 2 of 14:
==30819== Invalid write of size 1
==30819==    at 0x407976: (within /usr/bin/strace)
==30819==    by 0x407CD1: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 10 errors in context 3 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4E957D0: _IO_file_xsputn (in /lib/libc-2.7.so)
==30819==    by 0x4E6D817: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794e0 is 2 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 18 errors in context 4 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4E957ED: _IO_file_xsputn (in /lib/libc-2.7.so)
==30819==    by 0x4E6D817: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794df is 1 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 25 errors in context 5 of 14:
==30819== Invalid write of size 4
==30819==    at 0x407D3F: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 42 errors in context 6 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4E957D0: _IO_file_xsputn (in /lib/libc-2.7.so)
==30819==    by 0x4E6D817: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C9D6: (within /usr/bin/strace)
==30819==    by 0x40CAC8: (within /usr/bin/strace)
==30819==    by 0x4058DD: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794e0 is 2 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 42 errors in context 7 of 14:
==30819== Invalid write of size 4
==30819==    at 0x407D3F: (within /usr/bin/strace)
==30819==    by 0x40C9D6: (within /usr/bin/strace)
==30819==    by 0x40CAC8: (within /usr/bin/strace)
==30819==    by 0x4058DD: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 42 errors in context 8 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4C22D94: strlen (mc_replace_strmem.c:242)
==30819==    by 0x407D3E: (within /usr/bin/strace)
==30819==    by 0x40C9D6: (within /usr/bin/strace)
==30819==    by 0x40CAC8: (within /usr/bin/strace)
==30819==    by 0x4058DD: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 42 errors in context 9 of 14:
==30819== Invalid write of size 1
==30819==    at 0x407976: (within /usr/bin/strace)
==30819==    by 0x407CD1: (within /usr/bin/strace)
==30819==    by 0x40C9D6: (within /usr/bin/strace)
==30819==    by 0x40CAC8: (within /usr/bin/strace)
==30819==    by 0x4058DD: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 51 errors in context 10 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4C23DF8: mempcpy (mc_replace_strmem.c:677)
==30819==    by 0x4E95817: _IO_file_xsputn (in /lib/libc-2.7.so)
==30819==    by 0x4E6D817: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794df is 1 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 53 errors in context 11 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4C22D94: strlen (mc_replace_strmem.c:242)
==30819==    by 0x4E6DCB0: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 84 errors in context 12 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4E957ED: _IO_file_xsputn (in /lib/libc-2.7.so)
==30819==    by 0x4E6D817: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C9D6: (within /usr/bin/strace)
==30819==    by 0x40CAC8: (within /usr/bin/strace)
==30819==    by 0x4058DD: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794df is 1 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 103 errors in context 13 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4C23E06: mempcpy (mc_replace_strmem.c:677)
==30819==    by 0x4E95817: _IO_file_xsputn (in /lib/libc-2.7.so)
==30819==    by 0x4E6D817: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819== 
==30819== 168 errors in context 14 of 14:
==30819== Invalid read of size 1
==30819==    at 0x4C22D94: strlen (mc_replace_strmem.c:242)
==30819==    by 0x4E6DCB0: vfprintf (in /lib/libc-2.7.so)
==30819==    by 0x40212C: (within /usr/bin/strace)
==30819==    by 0x40C9D6: (within /usr/bin/strace)
==30819==    by 0x40CAC8: (within /usr/bin/strace)
==30819==    by 0x4058DD: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
==30819==  Address 0x51794de is 0 bytes after a block of size 134 alloc'd
==30819==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==30819==    by 0x407DB9: (within /usr/bin/strace)
==30819==    by 0x40C6D2: (within /usr/bin/strace)
==30819==    by 0x4051ED: (within /usr/bin/strace)
==30819==    by 0x404615: (within /usr/bin/strace)
==30819==    by 0x4E441A5: (below main) (in /lib/libc-2.7.so)
--30819-- 
--30819-- supp:      8 dl-hack3-cond-1
==30819== 
==30819== IN SUMMARY: 698 errors from 14 contexts (suppressed: 8 from 1)
==30819== 
==30819== malloc/free: in use at exit: 1,047 bytes in 4 blocks.
==30819== malloc/free: 2,113 allocs, 2,109 frees, 643,487 bytes allocated.
==30819== 
==30819== searching for pointers to 4 not-freed blocks.
==30819== checked 135,400 bytes.
==30819== 
==30819== LEAK SUMMARY:
==30819==    definitely lost: 0 bytes in 0 blocks.
==30819==      possibly lost: 0 bytes in 0 blocks.
==30819==    still reachable: 1,047 bytes in 4 blocks.
==30819==         suppressed: 0 bytes in 0 blocks.
==30819== Rerun with --leak-check=full to see details of leaked memory.
--30819--  memcheck: sanity checks: 249 cheap, 10 expensive
--30819--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--30819--  memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
--30819--  memcheck: auxmaps_L2: 0 searches, 0 nodes
--30819--  memcheck: SMs: n_issued      = 25 (400k, 0M)
--30819--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--30819--  memcheck: SMs: max_noaccess  = 524287 (8388592k, 8191M)
--30819--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--30819--  memcheck: SMs: max_defined   = 121 (1936k, 1M)
--30819--  memcheck: SMs: max_non_DSM   = 25 (400k, 0M)
--30819--  memcheck: max sec V bit nodes:    0 (0k, 0M)
--30819--  memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--30819--  memcheck: max shadow mem size:   4544k, 4M
--30819-- translate:            fast SP updates identified: 2,478 ( 82.5%)
--30819-- translate:   generic_known SP updates identified: 446 ( 14.8%)
--30819-- translate: generic_unknown SP updates identified: 79 (  2.6%)
--30819--     tt/tc: 64,993 tt lookups requiring 66,131 probes
--30819--     tt/tc: 64,993 fast-cache updates, 2 flushes
--30819--  transtab: new        3,207 (82,103 -> 1,210,587; ratio 147:10) [0 
scs]
--30819--  transtab: dumped     0 (0 -> ??)
--30819--  transtab: discarded  0 (0 -> ??)
--30819-- scheduler: 24,948,360 jumps (bb entries).
--30819-- scheduler: 249/461,548 major/minor sched events.
--30819--    sanity: 250 cheap, 10 expensive checks.
--30819--    exectx: 769 lists, 34 contexts (avg 0 per list)
--30819--    exectx: 4,928 searches, 5,345 full compares (1,084 per 1000)
--30819--    exectx: 0 cmp2, 3,604 cmp4, 0 cmpAll
--30819--  errormgr: 22 supplist searches, 1,297 comparisons during search
--30819--  errormgr: 706 errlist searches, 3,716 comparisons during search


Ciao,

Enrico


-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages strace depends on:
ii  libc6                         2.7-16     GNU C Library: Shared libraries

strace recommends no packages.

strace suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to