Operating System - HP-UX
1755398 Members
3057 Online
108832 Solutions
New Discussion

Assertion failed: !(0 != _C_mutex.lock(_C_mutex.pmutex))

 
Pabitra Jyoti Lahon
Occasional Contributor

Assertion failed: !(0 != _C_mutex.lock(_C_mutex.pmutex))

We have compiled the source code in HP-UX 11.23 Itanium 64bit. When we execute the executable, it creates a core file due to SIGABRT. The log file contains the following eror message
"Assertion failed: !(0 != _C_mutex.lock(_C_mutex.pmutex)), file /opt/aCC/include_
std/rw/stdmutex.h, line 266".
The same code is working fine in HP-UX11.0 PA-RISC 32 bit.
Please help us by providing any solution for this problem.
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Assertion failed: !(0 != _C_mutex.lock(_C_mutex.pmutex))

Are you compiling with +noeh?
If you are using threads, you must compile everything with -mt.