From: Tony Carrato <carrato@csn.net>
Subject: DEC - Debugging threaded application
Date: 1996/10/26 [thread overview]
Message-ID: <32719D18.63CD@csn.net> (raw)
I'm posting this for a friend. If you would send replies to
shane@hkjcs.oz.au that would be appreciated.
Tony
We're having some trouble debugging an application from a core file. We
placed a
call to abort() in our code at a location where we know something has
gone wrong,
and this produces the core file. Then when I try to load the core file
into the
debugger, I cannot get any information about the stack trace.
The program is multi-threaded, and I have tried using both dbx and
decladebug to
look at the core file.
At the end of this mail, I have included scripts from both attempts
(these show
the version numbers of the debuggers I am using). We are using Digital
Unix
V3.2D-2 (Rev. 41.64).
As you can see, the debuggers correctly report that the process was
terminated
by SIGIOT (mapped to SIGABRT in /usr/include/signal.h). However that is
about as
good as it gets.
Attempts to do a tlist (dbx) or "where thread all" (decladebug) produce
many
threads which show nothing useful as follows:
------------------------------------------------------------------
decladebug reports mostly like this:
Stack trace for thread 14
#0 0xfffffc0000000007 in ???
------------------------------------------------------------------
dbx reports mostly like this:
thread 0xfffffc0001044d20 stopped at
warning: PC value 0x0 not valid, trying RA
warning: RA value 0x0 not valid, trying text start
warning: text start 0x120000000 not valid, trying data start
warning: Using data start as a text address -- traceback will not work
> [., 0x140000000] call_pal cflush
------------------------------------------------------------------
Can you please tell me what is wrong here, is it a problem with the core
file or
the debugger. In fact I have tried many different core files from the
application, and none of them are able to provide me with any stack
trace
information.
Regards,
Shane.
----------------------------------------------------------
Here is the output when I try dbx:
as2/betsys> dbx ../bin/lotteryServer core.lottery03.25oct
dbx version 3.11.8
Type 'help' for help.
Core file created by program "lotteryServer"
thread 0xfffffc000f18b900 signal IOT/Abort trap at
/home/betsys/.dbxinit: 1: warning: PC value 0xfffffc000aa20f00 not
valid, trying
RA
/home/betsys/.dbxinit: 1: warning: RA value 0xfffffc000aa20d20 not
valid, trying
text start
/home/betsys/.dbxinit: 1: warning: text start 0x120000000 not valid,
trying data
start
/home/betsys/.dbxinit: 1: warning: Using data start as a text address --
traceba
ck will not work
> [., 0x140000000] call_pal cflush
INT QUIT ILL TRAP ABRT EMT FPE BUS SEGV SYS TERM URG STOP TTIN TTOU IO
XCPU XFSZ
VTALRM PROF WINCH INFO USR1 USR2
(dbx) where
0 (noname)() [0x11ffffffc]
(dbx)
----------------------------------------------------------
Here is the output when I try decladebug:
as2/betsys> decladebug ../bin/lotteryServer core.lottery03.25oct
Welcome to the Ladebug Debugger Version 4.0-14A
------------------
object file name: ../bin/lotteryServer
core file name: core.lottery03.25oct
Reading symbolic information ...done
Core file produced from executable lotteryServer
Thread 0xfffffc000f18b900 terminated at PC 0xfffffc000aa20f00 by signal
IOT
INT, QUIT, ILL, TRAP, IOT, EMT, FPE, BUS, SEGV, SYS, TERM, URG, STOP,
TTIN, TTOU
, IO, XCPU, XFSZ, PROF, USR1, USR2, VTALRM
(ladebug) where
>0 0xfffffc000aa20f00 in ???
(ladebug)
----------------------------------------------------------
--
Tony Carrato Carrato & Associates, Ltd.
7995 E. Mississippi Ave, K5 Flat 10/H, 2 Seymour Road
Denver, CO 80231 USA Mid-Levels, Hong Kong
email: carrato@csn.net voice: 852-2540-7804 www:
http://www.csn.net/~carrato
reply other threads:[~1996-10-26 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox