From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,330023513388f0b4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f678f,330023513388f0b4 X-Google-Attributes: gidf678f,public From: Dave Butenhof Subject: Re: ladebug and threads Date: 1997/04/18 Message-ID: <335760D3.2D85@zko.dec.com>#1/1 X-Deja-AN: 235719057 References: <5j38ue$bf6@shellx.best.com> Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.misc,comp.sys.dec 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 ]----------------/