Operating System - HP-UX
1822002 Members
3922 Online
109639 Solutions
New Discussion юеВ

aCC core dump when linking libpthread

 
Pete_86
New Member

aCC core dump when linking libpthread

Hi

I am using aCC HP ANSI C++ B3910B A.03.37 on HP-UX B.11.00 U 9000/800 and am linking to libpthread library (indirectly as I am using Oracle libclntsh through ProC).
My program crashes on exit with the following stack trace:

#0 0xc035c884 in pthread_mutex_destroy+0x18 () from
/usr/lib/libpthread.1
#1 0xc0209558 in __thread_mutex_free+0x40 () from /usr/lib/libc.2
#2 0xc12393cc in _HPMutexWrapper::~_HPMutexWrapper+0x34 () from
/usr/lib/libstd_v2.2
#3 0x93a4 in
std::basic_string,std::allocator>::_C_
unlink (this=0x6fff1234) at /opt/aCC/include_std/string:1002
#4 0xc1aa031c in
std::basic_string,std::allocator>::rep
lace+0xc94 () from
/export/home/petec/ict607/lib/HP-UX_11/ORA_920/libaarAppExit.sl
#5 0xc7d2a18c in aarTable_Create::columnClause (this=0x4015c9f0,
#aggretxform#478=@0x29)
at aarTable.cc:157
#6 0xc7d29d30 in aarTable_Create::build (this=0xc7d3575b) at
aarTable.cc:119
#7 0xc7d13844 in aarRestoreTable::build (this=0x2, Arg_File=0x6) at
aarRestore.cc:513
#8 0xc7d15520 in aarRestoreOrder::build (this=0x4012f020,
Arg_File=0x40203638)
at aarRestoreOrder.cc:83
#9 0xc7d0c33c in aarPhaseRestore::build (this=0xc7d3575b) at
aarPhase.cc:328
#10 0xc7d0d6d8 in aarProcess::performPhase (this=0x6fff0eb0) at aarProcess.cc:120
#11 0xc7d0e114 in aarRequest::performPhase (this=0x6fff0eb0) at aarRequest.cc:100
#12 0xdab4 in restore::doWork (this=0x6fff0d0c) at restore.cc:159
#13 0xa610 in main (argc=0, argv=0x0) at aarRestore.cc:214

What can be causing this error?

I would appreciate any help that you could provide.

thanks
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: aCC core dump when linking libpthread

Is aCC patched up to date?

Otherwise does the code itself work on other machines?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete_86
New Member

Re: aCC core dump when linking libpthread

The following patches have not been installed as far as I can see:
PHCO_24723 (libc)
PHCO_23792 (libpthread)
PHSS_24303 (linker)
PHSS_26945 (aC++ runtime)
PHSS_25028 (libomp)

But will that causing be causing the problem?
Pete_86
New Member

Re: aCC core dump when linking libpthread

..yes and the code does work when built with the cc Compiler on HP-UX
Alexey Roytman
Frequent Advisor

Re: aCC core dump when linking libpthread

2 questions:

1. What are the compile and link options for building with aCC and with cc ?
2. How it can work with pure C compiler, it it has a C++ code?

Also, check the "-mt" option both in linkage and compiling (or, "-D_REENTRANT" on compiling and "-lpthread" as last library on linking).
Pete_86
New Member

Re: aCC core dump when linking libpthread

I linked the Oracle client libraries statically as a workaround and the core dump has disappeared. Would love to know the reason behind the core dump but am happy now that the core dumps are a thing of the past.