* ladebug and threads
@ 1997-04-16 4:00 Dilip Dasilva
1997-04-18 4:00 ` Dave Butenhof
0 siblings, 1 reply; 2+ messages in thread
From: Dilip Dasilva @ 1997-04-16 4:00 UTC (permalink / raw)
Hi, I have a program that has multiple threads. When I use a core file
to find out where the program crashed, it gives me very little info
about the thread that actually crashed. For instance, the stack trace
of the thread that crashed lists the following info. I cannot go up
far enough in the stack to find out where in my code the thread
crashed. The other threads show exactly where they are in the code
(usually
blocked). Without being able to pinpoint the crash, the core file is
practically useless.
Thanks, Dilip
Stack trace for thread 2
>0 0x3ff8053eab0 in nxm_thread_kill(0x3ffc0081e10, 0x3ffc0080338, 0x8,
0x3ffc0\
080310, 0x2, 0x14001a030) DebugInformationStrippedFromFile19:???
#1 0x3ff8056ed4c in pthread_kill(0x3ffc0082590, 0x14001a030, 0x2130455,
0x3ff8\
055be50, 0x0, 0x140057e78) DebugInformationStrippedFromFile99:???
#2 0x3ff805756ec in UnknownProcedure10FromFile103(0x2130455,
0x3ff8055be50, 0x\
0, 0x140057e78, 0x3ff8010fb04, 0x3ffc0080c50)
DebugInformationStrippedFromFile1\
03:???
#3 0x3ff8010fb00 in /usr/shlib/libc_r.so
#4 0x3ff80159f40 in raise(0x3ff8010fb04, 0x3ffc0080c50, 0x3ff80159f44,
0x3ff80\
575618, 0x3ff80170a6c, 0x0) DebugInformationStrippedFromFile441:???
#5 0x3ff80170a68 in abort(0x140057438, 0x0, 0x0, 0x0, 0xffffffff00000000,
0x17\
7db013) DebugInformationStrippedFromFile329:???
#6 0x3ff80565b04 in errAbort(0x0, 0x0, 0xffffffff00000000, 0x177db013,
0x3ff80\
56639c, 0x3ffc00802a0) DebugInformationStrippedFromFile90:???
#7 0x3ff80566398 in UnknownProcedure2FromFile91(0x1400576f8,
0x3ff80566864, 0x\
1400579d8, 0x3ff8055be50, 0x140057a80, 0x3ff807b3488)
DebugInformationStrippedF\
romFile91:???
#8 0x3ff807b220c in UnknownProcedure4FromFile1(0x3ff807b3624, 0x0,
0x1400576f8\
, 0x3ff80574490, 0x140057a48, 0x3ff80566864)
DebugInformationStrippedFromFile1:\
???
#9 0x3ff807b3620 in UnknownProcedure16FromFile1(0x0, 0x140057e78,
0x140057e78,\
0x140056f18, 0xabadabad00beed00, 0x0)
DebugInformationStrippedFromFile1:???
#10 0x3ff807b3664 in exc_unwind(0x140057e78, 0x140056f18,
0xabadabad00beed00, 0\
x0, 0x3ff807b254c, 0x0) DebugInformationStrippedFromFile1:???
#11 0x3ff807b2548 in exc_raise_exception(0x10, 0x100000041,
0x100007f21080002, \
0x0, 0x41, 0x0) DebugInformationStrippedFromFile1:???
#12 0x3ff80566864 in pthread_exc_raise_np(0x0, 0x0, 0x3ff80573ee0,
0x120018030,\
0x14001a030, 0x0) DebugInformationStrippedFromFile91:???
#13 0x3ff80574490 in thdBase(0x0, 0x0, 0x0, 0x0, 0x45586732, 0x3)
DebugInformat\
ionStrippedFromFile101:???
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ladebug and threads
1997-04-16 4:00 ladebug and threads Dilip Dasilva
@ 1997-04-18 4:00 ` Dave Butenhof
0 siblings, 0 replies; 2+ messages in thread
From: Dave Butenhof @ 1997-04-18 4:00 UTC (permalink / raw)
Dilip Dasilva wrote:
>
> Hi, I have a program that has multiple threads. When I use a core file
> to find out where the program crashed, it gives me very little info
> about the thread that actually crashed. For instance, the stack trace
> of the thread that crashed lists the following info. I cannot go up
> far enough in the stack to find out where in my code the thread
> crashed. The other threads show exactly where they are in the code
> (usually
> blocked). Without being able to pinpoint the crash, the core file is
> practically useless.
That's all there is. The trace goes all the way to "thdBase" (#13),
which is the base frame of any thread's call stack.
What's happened here is that an exception was raised in the thread, and
not handled. The stack was unwound to thdBase, which didn't want it, and
so it was reraised. Since there were no more exception frames, the
process was aborted.
Although we'd thought we'd fixed that problem in Digital UNIX 4.0 with
the switch to the architectural exception model, it turned out that
there were a lot of subtle binary compatibility issues that confused
things, and it still happened more often that it should.
This has been fixed for quite a while in current sources, although, for
some reason, it hasn't been patched into the currently available earlier
versions as far as I can tell.
> Stack trace for thread 2
.
.
.
> #13 0x3ff80574490 in thdBase(0x0, 0x0, 0x0, 0x0, 0x45586732, 0x3)
> DebugInformat\
> ionStrippedFromFile101:???
/---[ Dave Butenhof ]-----------------------[ butenhof@zko.dec.com ]---\
| Digital Equipment Corporation 110 Spit Brook Rd ZKO2-3/Q18 |
| 603.881.2218, FAX 603.881.0120 Nashua NH 03062-2698 |
\-----------------[ Better Living Through Concurrency ]----------------/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-04-18 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-16 4:00 ladebug and threads Dilip Dasilva
1997-04-18 4:00 ` Dave Butenhof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox