Your message dated Tue, 12 Feb 2013 09:47:34 +0000
with message-id <[email protected]>
and subject line Bug#656398: fixed in strace 4.7-1
has caused the Debian Bug report #656398,
regarding strace overwrites useful core files with its own useless ones
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
656398: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656398
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: strace
Version: 4.5.20-2.3
Severity: normal

Suppose I run a buggy program under strace.

[vampire /tmp/mdw/strace-bug]strace -ospew sh -c 'kill -SEGV $$'
Segmentation fault (core dumped)

That's nice.  Now I can debug my program using the core dump to tell me
what state it was in, and use the strace spew to help me understand how
it got there.  Wait a minute...

[vampire /tmp/mdw/strace-bug]file core
core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style,
from 'strace -o/dev/null sh -c kill -SEGV $$'
[vampire /tmp/mdw/strace-bug]gdb /usr/bin/strace core
...
Program terminated with signal 11, Segmentation fault.
#0  0xb774b424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb774b424 in __kernel_vsyscall ()
#1  0xb7601911 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2  0x0804b883 in ?? ()
#3  0xb75ede46 in __libc_start_main () from
#/lib/i386-linux-gnu/i686/cmov/libc.so.6
#4  0x08049831 in ?? ()
Backtrace stopped: Not enough registers or memory available to unwind
further
(gdb) quit

That's not my core file.  That's a completely useless core file of
strace committing suicide.  Where's my core file gone?

The fine manual says:

DIAGNOSTICS
       When  command exits, strace exits with the same exit status.  If
       command is terminated by a signal, strace terminates itself with
       the same signal, so that strace can be used as a wrapper process
       transparent to the invoking parent process.

I don't think clobbering the core file with a useless core file is
particularly transparent.  Unfortunately, the obvious hacks (setting the
soft RLIMIT_CORE to zero; changing to a non-writable directory) don't
work because they clear the WCOREDUMP exit-status bit.  Maybe strace
should make a new temporary directory, change to it, fork a child
process, kill itself, and have the child clean up the core file and the
temporary directory.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages strace depends on:
ii  libc6  2.13-21

strace recommends no packages.

strace suggests no packages.

-- no debconf information

-- debsums errors found:
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 1581 package 
'anag':
 missing architecture
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 29997 
package 'priv':
 missing architecture



--- End Message ---
--- Begin Message ---
Source: strace
Source-Version: 4.7-1

We believe that the bug you reported is fixed in the latest version of
strace, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frederik Schüler <[email protected]> (supplier of updated strace package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 12 Feb 2013 10:35:22 +0100
Source: strace
Binary: strace strace64 strace-udeb
Architecture: source amd64
Version: 4.7-1
Distribution: experimental
Urgency: low
Maintainer: Frederik Schüler <[email protected]>
Changed-By: Frederik Schüler <[email protected]>
Description: 
 strace     - A system call tracer
 strace-udeb - A system call tracer (udeb)
 strace64   - A system call tracer for 64bit binaries
Closes: 554946 653309 656398
Changes: 
 strace (4.7-1) experimental; urgency=low
 .
   [ Dmitry V. Levin ]
   * New upstream version.
     + Fixed sockaddr_un.sun_path name in decoded output, closes: #554946
     + Avoid potential core file clobbering on exit, closes: #656398
     + Fixed a typo in documentation, closes: #653309
Checksums-Sha1: 
 e1e4f6d8789634282cc2d938315e58c76bc631d3 1365 strace_4.7-1.dsc
 af917d27abf54b43fecf10373b320a2d42dfba4e 403280 strace_4.7.orig.tar.xz
 e0ba8f729756623217a1cec39fc58662c43477bc 11536 strace_4.7-1.debian.tar.gz
 6b88a7852963030eb75273892dde19d620b71ae9 223198 strace_4.7-1_amd64.deb
 7098cc04882a820e7141f76c5cf57e7e65e6f489 90082 strace-udeb_4.7-1_amd64.udeb
Checksums-Sha256: 
 5886723cfd1972acac87d8d49e3f242a5f2513626ecf22f4fa977e92fc0fa292 1365 
strace_4.7-1.dsc
 c49cd98873c119c5f201356200a9b9687da1ceea83a05047e2ae0a7ac1e41195 403280 
strace_4.7.orig.tar.xz
 f3136c02c4f4fbbaba52d40c850d17c0adb956b744a5b18a1aeff8cd4a916a48 11536 
strace_4.7-1.debian.tar.gz
 de8ab0956b2d4d480b14b41ed6054e078ebd0311165f9d0bbcce4026b9f69852 223198 
strace_4.7-1_amd64.deb
 10a78a5c4ca34bea8c5086fbb6f3fa09bffb0a7c5cadb96788f31fd6960bd593 90082 
strace-udeb_4.7-1_amd64.udeb
Files: 
 8d1f97ee45bfc65f0d8529c208d56641 1365 utils optional strace_4.7-1.dsc
 6054c3880a00c6703f83b57f15e04642 403280 utils optional strace_4.7.orig.tar.xz
 a7a60d996feb85794dddb22d69a7ea3f 11536 utils optional 
strace_4.7-1.debian.tar.gz
 3c20336e71bec60bd227b025a35dffe0 223198 utils optional strace_4.7-1_amd64.deb
 394fdc9f0d16991da499ae12b66c3bb4 90082 debian-installer extra 
strace-udeb_4.7-1_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlEaDTkACgkQ6n7So0GVSSDjGgCgkZTkNCrc6VwMXgklCpl97XMv
FGwAn28PlcOWkoxVonJ3ocQzRioES0H5
=Xlsw
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to