From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ea61f2eefbdafbcd X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 2003-06-09 14:47:57 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: pvangara@hotmail.com (Ranga) Newsgroups: comp.unix.osf.osf1 Subject: Re: Program crashing while exiting. Need help!! Date: 9 Jun 2003 14:47:55 -0700 Organization: http://groups.google.com/ Message-ID: <8d55bd93.0306091347.1a2803ba@posting.google.com> References: <8d55bd93.0306060623.168c729@posting.google.com> NNTP-Posting-Host: 143.127.131.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1055195277 2552 127.0.0.1 (9 Jun 2003 21:47:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 9 Jun 2003 21:47:57 GMT Xref: archiver1.google.com comp.unix.osf.osf1:172 On the compile line I put -pthread immediately after "/cxx -gall -pt -O0 -w0 -use_ld_input=.so_files" instead of putting it in the middle of the compile line. (Initially, it was after -Is, -Ls and couple of -Ds.) Also, I removed -lpthread -xti and -rt libraries that I was linking with. Of course, why this solved my problem, I have no clues. [I found the above one by shear brute force rather than by any logic.] Any possible explanations from anyone? Thanks, Ranga. pvangara@hotmail.com (Ranga) wrote in message news:<8d55bd93.0306060623.168c729@posting.google.com>... > Hi, > > I am having a crash while exiting the program on Tru64. I don't see > this problem on any other platform (Linux, Solaris, AIX, HP). Here is > the OS & CXX Version information. Also, I have included a session of > ladebug interaction. > OS: OSF1 V5.1 1885 alpha > Compiler: Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1A. > > I am wondering if I am missing any required patches or may be it's > something else. > > LADEBUG Interaction. > Here is a clip from the ladebug. The process starts exiting and calls > some mutex lock and mutex unlock... Hangs there for some reason, and I > interrupted and got the call stack (If not in debugger it core dumps). > Would appreciate any help in figuring out this strange problem. > > 115 int main(int argc, char** argv) > (ladebug) s > stopped at [ __start(...) 0x1200375dc] > > Information: An type was presented during execution of the > previous command. For complete type information on this symbol, > recompilation of the program will be necessary. Consult the compiler > man pages for details on producing full symbol table information using > the -g (and -gall for cxx) flags. > > (ladebug) print > NULL > (ladebug) s > stopped at [ exit(...) 0x3ff800de078] > (ladebug) s > stopped at [ __pthread_mutex_lock(...) 0x3ff8056873c] > (ladebug) s > stopped at [ __pthread_mutex_unlock(...) 0x3ff80568c88] > (ladebug) n > > Interrupt (for process) > > Stopping process localhost:60519 (testharness). > Thread received signal INT > The "next " command was not completed. > stopped at [ UnknownProcedure12FromFile22(...) 0x3ff801f9904] > (ladebug) > n > > Interrupt (for process) > > Stopping process localhost:60519 (testharness). > Thread received signal INT > The "next " command was not completed. > stopped at [ UnknownProcedure12FromFile22(...) 0x3ff801f9910] > (ladebug) where > >0 0x3ff801f9910 in UnknownProcedure12FromFile22(0x3ffc0086f90, > 0x100000, 0x0, 0x40000000, 0xffffffffffefffff, 0x3ff801f98e4) in > /usr/shlib/libc.so > #1 0x3ff800d3690 in free(0x3ffc0086f90, 0x100000, 0x0, 0x40000000, > 0xffffffffffefffff, 0x3ff801f98e4) in /usr/shlib/libc.so > #2 0x3ff800de0d0 in exit(0x3ffc0086f90, 0x100000, 0x0, 0x40000000, > 0xffffffffffefffff, 0x3ff801f98e4) in /usr/shlib/libc.so > #3 0x1200375f8 in __start(0x3ffc0086f90, 0x100000, 0x0, 0x40000000, > 0xffffffffffefffff, 0x3ff801f98e4) in testharness > (ladebug) > > Regards, > Ranga.