Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Program crashing while exiting. Need help!!
@ 2003-06-06 14:23 Ranga
  2003-06-09 21:47 ` Ranga
  0 siblings, 1 reply; 2+ messages in thread
From: Ranga @ 2003-06-06 14:23 UTC (permalink / raw)


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 [<opaque> __start(...) 0x1200375dc]

Information:  An <opaque> 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 [<opaque> exit(...) 0x3ff800de078]
(ladebug) s
stopped at [<opaque> __pthread_mutex_lock(...) 0x3ff8056873c]
(ladebug) s
stopped at [<opaque> __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 [<opaque> UnknownProcedure12FromFile22(...) 0x3ff801f9904]
(ladebug)
n

Interrupt (for process)

Stopping process localhost:60519 (testharness).
Thread received signal INT
The "next " command was not completed.
stopped at [<opaque> 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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Program crashing while exiting. Need help!!
  2003-06-06 14:23 Program crashing while exiting. Need help!! Ranga
@ 2003-06-09 21:47 ` Ranga
  0 siblings, 0 replies; 2+ messages in thread
From: Ranga @ 2003-06-09 21:47 UTC (permalink / raw)


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 [<opaque> __start(...) 0x1200375dc]
> 
> Information:  An <opaque> 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 [<opaque> exit(...) 0x3ff800de078]
> (ladebug) s
> stopped at [<opaque> __pthread_mutex_lock(...) 0x3ff8056873c]
> (ladebug) s
> stopped at [<opaque> __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 [<opaque> UnknownProcedure12FromFile22(...) 0x3ff801f9904]
> (ladebug)
> n
> 
> Interrupt (for process)
> 
> Stopping process localhost:60519 (testharness).
> Thread received signal INT
> The "next " command was not completed.
> stopped at [<opaque> 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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-09 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-06 14:23 Program crashing while exiting. Need help!! Ranga
2003-06-09 21:47 ` Ranga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox