Your message dated Tue, 10 Aug 2010 18:32:07 +0000
with message-id <[email protected]>
and subject line Bug#360922: fixed in pstack 1.2-2
has caused the Debian Bug report #360922,
regarding pstack: doesn't work for me; fails to open object file?!
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.)


-- 
360922: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=360922
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pstack
Version: 1.2-1
Severity: normal

On Tue, Mar 07, 2006 at 11:32:51AM +0000, Baruch Even wrote:
> Justin Pryzby wrote:
> > BTW, does pstack still work correctly?
> 
> When I needed it (rarely) it worked fine.
> 
> > $ pstack 8987
> > 
> > 8987: gaim -d
> > (No symbols found)
> > 0xb77b5d16: ???? (8341a08, 8, 63, 8341a08, 8, 15530) + 40
> > 0xb786ddbc: ???? (8146a48, 1, 81f8a00, 0, bf9b8d88, 8146a48) + 10
> > 0xb786e2c7: ???? (82991e8, 82991e8, 1, 1, 0, 82991e8) + 30
> > 0xb7cc1231: ???? (829ab50, 0, 80f95e0, 80fdabb, 810eab4, 0) + 2170
> > 0x080fa017: ???? (2, bf9baf94, bf9bafa0, 1, b7821ff4, 0) + 30
> > 0xb7703ed0: ???? (80f95f0, 2, bf9baf94, 80fb870, 80fb8e0, b7fb25d0) + 
> > 40645077
> > 
> > But gdb shows useful function names:
> > #0  0xb77b5d16 in poll () from /lib/tls/libc.so.6
> > #1  0xb786ddbc in g_main_context_check () from /usr/lib/libglib-2.0.so.0
> > #2  0xb786e2c7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
> > #3  0xb7cc1231 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
> > #4  0x080fa017 in main (argc=2, argv=0xbf9baf94) at main.c:961
> > 
> > I'd love to be able to not load gdb every time I need a bt, but right
> > now this isn't useful..  It says that it needs unstripped binaries;
> > why? 
> 
> It's actually strange to me that gdb gives symbols without them present
> in the files? Or maybe it knows to go to debug libraries to get the data?
Oops, gaim was a bad example; I had installed the debugging libraries
just that night :)

But still, it doesn't work forme.  I don't know about ELF internals,
but GDB and catchsegv can both give a stacktrace even when compiling
without -g, and even when the source file is unavailable.

Yet pstack doesn't even DWIW when I compile with -g, and gives a bogus
error about opening the object file (why does it want the object
file!?  This happens even if the .o is available (make sleep.o && make
sleep).

$ cat sleep.c
#include <unistd.h>

int main()
{
        sleep(999);
        return 0;
}

$ make CFLAGS='-W -Wall -g' sleep
cc -W -Wall -g    sleep.c   -o sleep

$ ./sleep &
[1] 19029

$ pstack 19029

19029: ./sleep
'': opening object file: No such file or directory
Could not open object file.

It tries this:
open("", O_RDONLY)                      = -1 ENOENT (No such file or directory)

which is apparently the result of reading the /proc/$pid/exe file and
then ptrace peeking at the processes address space.

I consider this a bug .. I'm very interested in figuring it out
though.  So I'm finally sending this off instead of letting it bitrot
and clutter my mailbox; I hope to look at it sometime soon..

Justin


--- End Message ---
--- Begin Message ---
Source: pstack
Source-Version: 1.2-2

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

pstack_1.2-2.diff.gz
  to main/p/pstack/pstack_1.2-2.diff.gz
pstack_1.2-2.dsc
  to main/p/pstack/pstack_1.2-2.dsc
pstack_1.2-2_i386.deb
  to main/p/pstack/pstack_1.2-2_i386.deb



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.
Thomas Preud'homme <[email protected]> (supplier of updated pstack 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: SHA256

Format: 1.8
Date: Tue, 10 Aug 2010 01:05:59 +0200
Source: pstack
Binary: pstack
Architecture: source i386
Version: 1.2-2
Distribution: unstable
Urgency: low
Maintainer: Thomas Preud'homme <[email protected]>
Changed-By: Thomas Preud'homme <[email protected]>
Description: 
 pstack     - Display stack trace of a running process
Closes: 360922 568574
Changes: 
 pstack (1.2-2) unstable; urgency=low
 .
   * New maintainer. (Closes: #568574)
   * Fix "fails to open object file" error. (Closes: #360922)
   * debian/control
     - Remove reference to upstream repository from package description
     - Bump Standard-Version from 3.6.1 to 3.8.4 (no changes needed).
     - Set Vcs-Browser and Vcs-Git fields.
   * debian/compat
     - Bump debhelper compatibility from 4 to 7 (no changes needed).
Checksums-Sha1: 
 ed2820527bc4c2869aacc5d9109600d16a1f9a80 1353 pstack_1.2-2.dsc
 b96ccacf852e0d24f75de073fbe1bb59d3abba63 1981 pstack_1.2-2.diff.gz
 8c2adcc3f58413e36336359f37a43180f24bcbfb 10010 pstack_1.2-2_i386.deb
Checksums-Sha256: 
 b959c91451d4ed4422d210dc1c05f43275a02aa351f43ab8dd08a2aae6b9d81f 1353 
pstack_1.2-2.dsc
 57b4bb9357134a8372b16c81d52c78ca07c731e97c895202a7dfa6e204dc52f9 1981 
pstack_1.2-2.diff.gz
 f7abe0ff7dbdebc616386da39e9faa2e7d4be8646e6c1e54c0ad78d820ac24ec 10010 
pstack_1.2-2_i386.deb
Files: 
 e48e42305ca12e600b3104b862269620 1353 devel optional pstack_1.2-2.dsc
 4761f93600eb206bd91f60b67f59fc12 1981 devel optional pstack_1.2-2.diff.gz
 c9c4952e45c34a733d959ba795fd70cf 10010 devel optional pstack_1.2-2_i386.deb

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

iQEcBAEBCAAGBQJMYZb5AAoJEEHOfwufG4syYy8H/3xiiIychNzjOet8Qs36D+CD
2+0i4S3aS9eoo0/72QemIx5gEsVt+J17UCmLMF7W9L1LYLHm5/jxhnXT5dOkXl+w
jcPJyWwGHj5BknpIhhph5kmKBhh44woVnssDS9PINUpE2cC80FyCPTMK2IpHg+ZA
2Mz2rDRl3SikHduGCNfjipmRGdpehV33fBUeND0RatiFhKimQZQF0hl2yFfPcubw
8RyVlU5nyw9vnDu9ByeB/YzjQDTM/Qnp4XSstrq0sxxwzPg5Vqjt5Sj2V412ZmpU
W+gw0fz/KAhhIS305FRHluHZY6W7OlKqYr0+3ovZzMA3/TYSrdb8zEpidAJ4G1g=
=z67y
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to