Operating System - HP-UX
1830245 Members
1888 Online
110000 Solutions
New Discussion

Crash when linking with Alib

 
Support Engineer Group
Occasional Contributor

Crash when linking with Alib

Machine : HP-UX sodium B.11.00 A 9000/785 2007779155 two-user license

Compiler : aCC: HP ANSI C++ B3910B A.03.25

Problem: I wrote a simple program as follows.

----
#include

int main( int arg, char *argv[]) {
cout << "Hello!! This is testing program" << "\n";
// I want to use Alib functionality here, but lets keep it simple by not using for now.

}
----

I link it as follows.

/opt/aCC/bin/aCC +DAportable -o ptest test.C -L/opt/audio/lib -lAlib
-lpthread

Upon running ptest, I get the following crash

-----
> > > > Assertion failed: 0 == __thread_mutex_lock(AC_arena_rmutex), file ../../../../../core/libs/libc/shared_pa1/../core/gen/malloc.c, line 1828

IOT trap (core dumped)
-----

Any ideas why Alib is causing this crash ?

Any help appreciated.

Thanks, Regards,