[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: Re: CXX-DEV: problem with invoking the application
From: "Rich Rauenzahn" <rrauenza () cup ! hp ! com>
Date: 2004-03-25 0:15:58
Message-ID: 020d01c411ff$1659e7e0$821ff40f () RAUENZAHNRICH
[Download RAW message or body]
> Attatchments are automatically removed by the mail list software as a
security
> measure. You'll have to expand the attachment into the body of your
message.
>
> BTW, did you attach to the hanging process with a debugger and get a
stack
> traceback? That's more general than the tusc technique, which is valuable
if the
> hang is in a system call.
I wrote this pstack wrapper for gdb... you (and others) may find it useful:
#!/opt/perl/bin/perl -w
use strict;
die usage() unless(@ARGV);
die usage() unless($ARGV[0] =~ /^\d+$/);
my $gdb = "/opt/langtools/bin/gdb";
my $tmp = "/tmp/pstack.$$";
open(OUT, ">$tmp") || die "$!: $tmp";
print OUT<<EOF;
set pagination off
set width 65536
thread apply all bt
detach
EOF
close OUT;
system($gdb, "-pid=$ARGV[0]", "-batch", "-n", "-x", $tmp);
unlink $tmp || die "$!: $tmp";
sub usage {
return "Usage: $0 <pid>\n";
}
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic