From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc1e,1f57de61a0644742 X-Google-Attributes: gidffc1e,public X-Google-Thread: fa528,1f57de61a0644742 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-09-05 12:37:40 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sjc1.nntp.concentric.net!newsfeed.concentric.net!newsfeed.ozemail.com.au!ozemail.com.au!not-for-mail From: "Rajanish Calisa" Newsgroups: comp.unix.tru64,comp.programming.threads References: Subject: Re: Compaq TRU64 ladebug X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: NNTP-Posting-Host: 1cust100.tnt8.syd2.da.uu.net X-Trace: ozemail.com.au 999718646 63.34.226.100 (Thu, 06 Sep 2001 05:37:26 EST) NNTP-Posting-Date: Thu, 06 Sep 2001 05:37:26 EST Organization: OzEmail Ltd, Australia Distribution: world Date: Thu, 6 Sep 2001 06:00:36 +1000 Xref: archiver1.google.com comp.unix.tru64:4672 comp.programming.threads:5807 "Big H" wrote in message news:evscpt85hb3l65mmk5hkc3raj8i7mkmgq9@4ax.com... > Hi, > > I'm trying to use a core file with the ladebug debugger (4.0-48) > However, when running it with an executable and its core file I get > the following error: > > Pthread context initialization failed with status 22 > Unable to switch to decthreads. > > > The executable was built with C++6.1-029 compiler on 4.0D. > The core file was probably generated on a system, which has a slightly different version of Digital Unix, for example 4.0F or there could be differences in the patch kits installed between the machine on which the core was dumped and the machine on which the core is being debugged. Depending on DU version and patch kits installed, the version of pthread_debug on the system can vary. This is what is failing when the debugger tries to use the core file. The ladebug manual tells you how to debug such cores. It is simply a matter of getting the right shared libraries like libpthread.so, libpthread_debug.so among others from the system on which core dump occurred and use them with the ladebug on the system you are trying to debug on. There are a few env vars to set before running ladebug. If you can't get system libraries from the remote system, then your only other option is to use dbx, but with dbx you will not be able to see posix threads, only kernel threads. Most of the time, dbx is enough. The ladebug you are using is very very old. Get the latest one from Compaq (HP?) web site (version 65 I think). The compiler is also very old, so you might consider upgrading that as well. rajanish...