Operating System - HP-UX
1748289 Members
3185 Online
108761 Solutions
New Discussion юеВ

Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

 
Prahalad Appaji
Occasional Contributor

Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

Hello:

We have recently compiled our C++ 32 bit app in 64bit on HP UX 11. Orcale lib is 9.2 One of our app servers throws out following error at run time.

aCC runtime: ERROR: Recursive local static object initialization detected

debugging using gdb, this is trace snippet having a problem:

warning: reading register r3: No data
0xc0000000002f92fc in __ksleep () from /usr/lib/pa20_64/libc.2
48 system thread 8897117 warning: reading register r3: No data
warning: reading register r3: No data
0xc0000000002f92fc in __ksleep () from /usr/lib/pa20_64/libc.2
47 system thread 8897116 0xc0000000012e0280 in Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0
46 system thread 8897075 warning: reading register r3: No data
warning: reading register r3: No data
0xc0000000002f92fc in __ksleep () from /usr/lib/pa20_64/libc.2
45 system thread 8897074 warning: reading register r3: No data

Elsewhere I read that having libc before libpthread is not a good idea. That's not the case here. After doing I got the order of shared libs loaded.. see below.

Hopefully it's something about linking order that I can make changes to the "make" process. Any ideas? Thanks a lot in advance.

- Prahalad



(gdb) info share
Shared Object Libraries
tstart tend dstart dend
/usr/lib/pa20_64/dld.sl
0xc000000000000000 0xc00000000003ed5c 0x800003fffdfe9000 0x800003fffdfef090
/usr/lib/pa20_64/libdl.1
0xc000000000041000 0xc000000000042954 0x800003fffdfe6000 0x800003fffdfe61a8
/ants_pt/lib/libwork_c.sl
0xc0000000001f0000 0xc0000000001fc984 0x800003fffdfe4000 0x800003fffdfe5d28
/ants_pt/lib/libwork_s.sl
0xc000000002b80000 0xc000000002bdd588 0x800003fffdfd5000 0x800003fffdfe1d28
tstart tend dstart dend
/usr/lib/pa20_64/dld.sl
0xc000000000000000 0xc00000000003ed5c 0x800003fffdfe9000 0x800003fffdfef090
/usr/lib/pa20_64/libdl.1
0xc000000000041000 0xc000000000042954 0x800003fffdfe6000 0x800003fffdfe61a8
/ants_pt/lib/libwork_c.sl
0xc0000000001f0000 0xc0000000001fc984 0x800003fffdfe4000 0x800003fffdfe5d28
/ants_pt/lib/libwork_s.sl
0xc000000002b80000 0xc000000002bdd588 0x800003fffdfd5000 0x800003fffdfe1d28
/ants_pt/64bit/orbacus64/lib/libOBNaming.sl.4.0.5
0xc000000000340000 0xc0000000003ce5d0 0x800003fffdfc0000 0x800003fffdfd4838
/ants_pt/64bit/orbacus64/lib/libCosNaming.sl.4.0.5
0xc000000000ac0000 0xc000000000b43560 0x800003fffdfae000 0x800003fffdfbfda8
/ants_pt/64bit/orbacus64/lib/libOB.sl.4.0.5
0xc000000001c00000 0xc00000000238ec14 0x800003fffde91000 0x800003fffdfad8a8
/ants_pt/64bit/jtc64/lib/libJTC.sl.1.0.14
0xc0000000001c0000 0xc0000000001ed270 0x800003fffde8a000 0x800003fffde8e958
/ants_pt/lib/libfw.sl
0xc000000001880000 0xc000000001905714 0x800003fffde79000 0x800003fffde89f60
/ants_pt/lib/libceg_mt.sl
0xc000000001a40000 0xc000000001aeb638 0x800003fffde67000 0x800003fffde78228
/usr/lib/pa20_64/libpthread.1
0xc000000000050000 0xc000000000067e88 0x800003fffde60000 0x800003fffde64518
/usr/lib/pa20_64/libstd.2
0xc000000000960000 0xc00000000099be04 0x800003fffde5a000 0x800003fffde5fd30
/usr/lib/pa20_64/libstream.2
0xc0000000003d0000 0xc0000000003f5b50 0x800003fffde54000 0x800003fffde597c8
/usr/lib/pa20_64/libCsup.2
0xc000000000320000 0xc000000000337300 0x800003fffde50000 0x800003fffde53e40
/usr/lib/pa20_64/libm.2
0xc000000000110000 0xc000000000135d48 0x800003fffde4b000 0x800003fffde4dbd0
/usr/lib/pa20_64/libcl.2
0xc000000000080000 0xc000000000104ea8 0x800003fffddff000 0x800003fffde4a4e8
/usr/lib/pa20_64/libc.2
0xc000000000200000 0xc00000000031c610 0x800003fffdde3000 0x800003fffddfe320
/ants_pt/lib/libants_common_c.sl
0xc000000002840000 0xc0000000028bc098 0x800003fffddd4000 0x800003fffdde2a38
/ants_pt/lib/libservice_s.sl
0xc000000003540000 0xc00000000360d750 0x800003fffddba000 0x800003fffddd1b58
/ants_pt/lib/libdbi.sl
0xc000000001940000 0xc000000001a2dec4 0x800003fffdda3000 0x800003fffddb9310
/oracle01/product/9.2.0/lib/libclntsh.sl.9.0
0xc000000000c00000 0xc00000000185f0a0 0x800003fffdcd4000 0x800003fffdda2450
/ants_pt/lib/libants_common_s.sl
0xc000000001b00000 0xc000000001b81278 0x800003fffdcc0000 0x800003fffdcd1040
/ants_pt/lib/libDb_ANTS.sl
0xc000000002400000 0xc0000000026ce248 0x800003fffdc3e000 0x800003fffdcbfad8
/ants_pt/lib/libDb_Security.sl
0xc0000000009a0000 0xc0000000009b6804 0x800003fffdc39000 0x800003fffdc3d2f0
/ants_pt/lib/libnetwork_s.sl
0xc000000002700000 0xc00000000282aa6c 0x800003fffdc16000 0x800003fffdc36c68
/ants_pt/lib/libwork_network_backflow_c.sl
0xc000000000bd0000 0xc000000000bef5d8 0x800003fffdc11000 0x800003fffdc15430
/ants_pt/lib/libwork_backflow_c.sl
0xc000000002390000 0xc0000000023af5c0 0x800003fffdc0c000 0x800003fffdc10420
/ants_pt/lib/libadmn_cache.sl
0xc000000002940000 0xc000000002986950 0x800003fffdc03000 0x800003fffdc09590
/ants_pt/lib/libXml.sl
0xc000000000b50000 0xc000000000b72930 0x800003fffdbfe000 0x800003fffdc02ed8
/ants_pt/64bit/xerces-c2_4_0-hpux_11_64-acc_a03/lib/libxerces-c.sl.24
0xc000000002c00000 0xc0000000030bba70 0x800003fffda4e000 0x800003fffdbfdcc8
/oracle01/product/9.2.0/lib/libwtc9.sl
0xc00000000003f000 0xc00000000004024c 0x800003fffda4d000 0x800003fffda4d190
/lib/pa20_64/librt.2
0xc000000000044000 0xc000000000048194 0x800003fffda4a000 0x800003fffda4a448
/lib/pa20_64/libnss_dns.1
0xc000000000068000 0xc00000000006da08 0x800003fffda48000 0x800003fffda49420
/ants_pt/lib/libsw_cmd_bldr.sl
0xc0000000028c0000 0xc00000000293a4c0 0x800003fffda40000 0x800003fffda47de8
/ants_pt/lib/libaudit_s.sl
0xc000000001910000 0xc00000000192b590 0x800003fffda3c000 0x800003fffda3fa38
/ants_pt/lib/libDb_ants_network.sl
0xc000000003100000 0xc000000003477e88 0x800003fffd9ed000 0x800003fffda396e8
/ants_pt/lib/libmirror_tbl_util.sl
0xc000000002a00000 0xc000000002b6a6fc 0x800003fffd9c3000 0x800003fffd9ecaa8
/lib/pa20_64/libnsl.1
0xc000000003480000 0xc000000003500534 0x800003fffd9b1000 0x800003fffd9c21d8
/ants_pt/lib/libDb_sw_cmd_bldr.sl
0xc000000001b90000 0xc000000001ba1230 0x800003fffd9ac000 0x800003fffd9aecb0
/ants_pt/lib/libDb_EMS.sl
0xc000000001bb0000 0xc000000001bc66a4 0x800003fffd9a8000 0x800003fffd9ab990
/usr/lib/pa20_64/libxti.2
0xc000000001bd0000 0xc000000001be6e6c 0x800003fffd9a5000 0x800003fffd9a7e30
/usr/lib/pa20_64/libnss_files.1
0xc000000000070000 0xc0000000000786ac 0x800003fffd986000 0x800003fffd986de8
/ants_pt/lib/libwork_msid_backflow_s.sl
0xc000000005280000 0xc0000000052acf20 0x800003fffd681000 0x800003fffd686c30
/ants_pt/lib/libservice_lca_s.sl
0xc000000003700000 0xc000000003935238 0x800003fffd640000 0x800003fffd680ac8
/ants_pt/lib/libservice_csa_s.sl
0xc000000003640000 0xc0000000036a6aa0 0x800003fffd62e000 0x800003fffd63f4a0
/ants_pt/lib/libservice_mobile_code_s.sl
0xc000000003a00000 0xc000000003b65568 0x800003fffd5ea000 0x800003fffd62ba28
/ants_pt/lib/libservice_trunkgroup_s.sl
0xc000000003b80000 0xc000000003c71e7c 0x800003fffd5cb000 0x800003fffd5e9e30
/ants_pt/lib/libservice_adc_s.sl
0xc000000003940000 0xc0000000039f32b8 0x800003fffd5a7000 0x800003fffd5cabf8
/ants_pt/lib/libants_completion_c.sl
0xc000000000aa4000 0xc000000000ab17cc 0x800003fffd5a5000 0x800003fffd5a6e38
/ants_pt/lib/libants_completion_s.sl
0xc000000004e60000 0xc000000004e90040 0x800003fffd59a000 0x800003fffd5a20b8
/ants_pt/lib/libeaf.sl
0xc000000003e80000 0xc000000003ef4bdc 0x800003fffd58c000 0x800003fffd5991f8
/ants_pt/lib/libprvsng_lca.sl
0xc000000003f00000 0xc000000003f65cf8 0x800003fffd57b000 0x800003fffd58bb40
/ants_pt/lib/liblca_xml_s.sl
0xc000000003f80000 0xc000000003fe5b18 0x800003fffd568000 0x800003fffd578778
/ants_pt/lib/libdomain_s.sl
0xc000000004000000 0xc0000000040b1600 0x800003fffd53d000 0x800003fffd567f98
/ants_pt/lib/libDb_EAF.sl
0xc0000000026d0000 0xc0000000026e8568 0x800003fffd538000 0x800003fffd53c3e0
/ants_pt/lib/libwork_lcapayload_gen_c.sl
0xc0000000029d0000 0xc0000000029eefb8 0x800003fffd531000 0x800003fffd5353e8
/ants_pt/lib/libwork_lca_network_request_gen_c.sl
0xc000000002be0000 0xc000000002bfe744 0x800003fffd52c000 0x800003fffd530350
/ants_pt/lib/libwork_lca_network_backflow_c.sl
0xc000000003510000 0xc00000000352f5e0 0x800003fffd527000 0x800003fffd52b438
/ants_pt/lib/libwork_lca_backflow_c.sl
0xc000000003610000 0xc00000000362f5d0 0x800003fffd522000 0x800003fffd526428
/ants_pt/lib/libmc_xml_s.sl
0xc0000000040c0000 0xc000000004154ac8 0x800003fffd500000 0x800003fffd51f758
/ants_pt/lib/libmc_backflow_s.sl
0xc000000004180000 0xc00000000424f6ec 0x800003fffd4df000 0x800003fffd4ff860
/ants_pt/lib/libwork_network_request_gen_c.sl
0xc0000000036b0000 0xc0000000036ce734 0x800003fffd4da000 0x800003fffd4de350
/ants_pt/lib/libwork_csapayload_gen_c.sl
0xc0000000036d0000 0xc0000000036eefb8 0x800003fffd4d3000 0x800003fffd4d73e8
/ants_pt/lib/libservice_elem_s.sl
0xc000000004300000 0xc00000000446f888 0x800003fffd4a1000 0x800003fffd4d2a78
/ants_pt/lib/libelem_xml_s.sl
0xc000000004500000 0xc00000000466e0e8 0x800003fffd455000 0x800003fffd4a0eb8
/ants_pt/lib/libprvsng_mca.sl
0xc000000004680000 0xc00000000470cea8 0x800003fffd43f000 0x800003fffd4520f0
/ants_pt/lib/libwork_mdnPayload_gen_c.sl
0xc000000003d50000 0xc000000003d6efc0 0x800003fffd43a000 0x800003fffd43e3e8
/ants_pt/lib/libwork_msidPayload_gen_c.sl
0xc000000003de0000 0xc000000003dfefd0 0x800003fffd435000 0x800003fffd4393e8
/ants_pt/lib/libwork_msid_network_request_gen_c.sl
0xc000000003e60000 0xc000000003e7e74c 0x800003fffd430000 0x800003fffd434358
/ants_pt/lib/libwork_mdn_network_request_gen_c.sl
0xc000000004160000 0xc00000000417e764 0x800003fffd429000 0x800003fffd42d360
/ants_pt/lib/libwork_mdn_backflow_c.sl
0xc000000004250000 0xc00000000426f5d0 0x800003fffd424000 0x800003fffd428428
/ants_pt/lib/libwork_msid_backflow_c.sl
0xc000000004270000 0xc00000000428f5d0 0x800003fffd41f000 0x800003fffd423428
/ants_pt/lib/libwork_mdn_network_backflow_c.sl
0xc000000004290000 0xc0000000042af5e0 0x800003fffd418000 0x800003fffd41c438
/ants_pt/lib/libwork_msid_network_backflow_c.sl
0xc0000000042b0000 0xc0000000042cf5e8 0x800003fffd413000 0x800003fffd417438
/ants_pt/lib/libtrunkgroup_xml_s.sl
0xc000000004480000 0xc0000000044fdfb4 0x800003fffd3f9000 0x800003fffd412f60
/ants_pt/lib/libprvsng_trunkGroup.sl
0xc000000004740000 0xc0000000047b815c 0x800003fffd3e6000 0x800003fffd3f6090
/ants_pt/lib/libprvsng_util.sl
0xc000000000a90000 0xc000000000aa3c88 0x800003fffd3e4000 0x800003fffd3e56e8
/ants_pt/lib/libadc_xml_s.sl
0xc0000000047c0000 0xc000000004808784 0x800003fffd3d5000 0x800003fffd3e3c80
/ants_pt/lib/libprvsng_adc.sl
0xc000000004840000 0xc0000000048a05e8 0x800003fffd3c4000 0x800003fffd3d4b30
/ants_pt/lib/libprvsng_nortel_tblBuilder.sl
0xc000000004900000 0xc0000000049af168 0x800003fffd3a4000 0x800003fffd3c1ac0
/ants_pt/lib/libprvsng_lucent_tblBuilder.sl
0xc0000000049c0000 0xc000000004a99880 0x800003fffd381000 0x800003fffd3a31a0
/ants_pt/lib/libprvsng_strategy.sl
0xc000000004ac0000 0xc000000004b2249c 0x800003fffd372000 0x800003fffd380ef0
/ants_pt/lib/libprvsng_element.sl
0xc000000004b40000 0xc000000004becf00 0x800003fffd353000 0x800003fffd36f9c0
/ants_pt/lib/libprvsng_tblBuilder.sl
0xc000000004c00000 0xc000000004c6be60 0x800003fffd346000 0x800003fffd350e88

 

 

 

Moved from HP-UX>Workload/Resource Management to HP-UX > languages

8 REPLIES 8
SANTOSH S. MHASKAR
Trusted Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

Hi,

If u have oracle metalink access, I would suggest to put this problem there.

-Santosh
Prahalad Appaji
Occasional Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

Hi santosh,
It seems that I cannot register with Oracle Metalink site, I have no idea what the access code is.
thnx
Prahalad
Prahalad Appaji
Occasional Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

I was reading the thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=296629 and from that it seems how shared library ordering might have an adverse effect. The libc is after libpthread in this case and should be fine. I have no idea why still I am seing this error.
-Prahalad
Sandman!
Honored Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

Hi Prahalad,

You say that it's a 32-bit app, however you are linking your executable with 64-bit libraries like.../usr/lib/pa20_64/libc.2? No can't do. Could you post the command you are using for compiling the executable.

thanks!
Prahalad Appaji
Occasional Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

Hi sandman,
Following is the compile/link commands used to compile the 64bit app.

==>aCC --version
aCC: HP ANSI C++ B3910B A.03.25
/usr/sbin
==>swlist | grep aCC
PHSS_26945 1.0 HP aC++ -AA runtime libraries (aCC A.03.37)



****** Making SubDirectory msid_backflow on Mon Apr 17 06:56:29 CDT 2006

aCC +DA2.0w +eh -Aa -z -g -O -I/RLP/RLP_source_server~asm7251/RLP_source_server64/include -I/RLP/RLP_source_server~asm7251/RLP_source_server64/include/platform/HP-UX -DUSE_CEG_TRACE -D_INCLUDE_LONGLONG -D_MEMBER_TEMPLATES_SUPPORTED -D_XOPEN_SOURCE_EXTENDED -D_POSIX_C_SOURCE=199506L -D_HAVE_POSIX_THREADS -I/oracle/product/9.2.0-64/rdbms/demo -I/oracle/product/9.2.0-64/rdbms/public -I/oracle/product/9.2.0-64/plsql/public -I/oracle/product/9.2.0-64/network/public -I. -I/home/asm7251/orbacus64/include -D__HPACC_THREAD_SAFE_RB_TREE -D_REENTRANT -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_RWSTD_MULTI_THREAD -D_THREAD_SAFE -D_XERCES=2.5 -D_LARGEFILE64_SOURCE +z -c MsidBackflowWorkUnit.cpp -o MsidBackflowWorkUnit.o
aCC: warning 905: optimization and debug are mutually exclusive options. "-O" option ignored
aCC +DA2.0w -Wl,+k -Wl,+s -Q -Wl,+vnocompatwarnings -Wl,-z -D__HPACC_THREAD_SAFE_RB_TREE -D_REENTRANT -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_RWSTD_MULTI_THREAD -D_THREAD_SAFE -L/RLP/RLP_source_server~asm7251/RLP_source_server64/lib/release -L/home/asm7251/orbacus64/lib -L/home/asm7251/jtc64/lib -L/usr/local/lib -L/RLP/RLP_source_server~asm7251/RLP_source_server64/xerces-c2_4_0-hpux_11_64-acc_a03/lib -L/home/asm7251/orbacus64/lib -L/oracle/product/9.2.0-64/lib MsidBackflowWorkUnit.o MsidBackflowCollector.o -lants_common_c -ldbi -lservice_s -lservice_lca_s -lservice_csa_s -lservice_mobile_code_s -lservice_trunkgroup_s -lservice_adc_s -lservice_csa_s -lwork_s -lants_completion_c -lants_completion_s -Wl,-a,shared -lOBNaming -Wl,-a,shared -lCosNaming -Wl,-a,shared -lOB -Wl,-a,shared -lJTC -Wl,-a,shared -lfw -Wl,-a,shared -ldbi -Wl,-a,shared -lclntsh -Wl,-a,shared -lceg_mt -lpthread -o /RLP/RLP_source_server~asm7251/RLP_source_server64/lib/release/libwork_msid_backflow_s.sl -b -Wl,-Bsymbolic



****** Making SubDirectory ANTSWorkServer on Mon Apr 17 06:56:57 CDT 2006

aCC +DA2.0w +eh -Aa -z -g -O -I/RLP/RLP_source_server~asm7251/RLP_source_server64/include -I/RLP/RLP_source_server~asm7251/RLP_source_server64/include/platform/HP-UX -DUSE_CEG_TRACE -D_INCLUDE_LONGLONG -D_MEMBER_TEMPLATES_SUPPORTED -D_XOPEN_SOURCE_EXTENDED -D_POSIX_C_SOURCE=199506L -D_HAVE_POSIX_THREADS -I. -I/home/asm7251/orbacus64/include -D__HPACC_THREAD_SAFE_RB_TREE -D_REENTRANT -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_RWSTD_MULTI_THREAD -D_THREAD_SAFE -D_XERCES=2.5 -D_LARGEFILE64_SOURCE -c WorkServer.cpp -o WorkServer.o
aCC: warning 905: optimization and debug are mutually exclusive options. "-O" option ignored
aCC +DA2.0w -Wl,+k -Wl,+s -Q -Wl,+vnocompatwarnings -Wl,-z -D__HPACC_THREAD_SAFE_RB_TREE -D_REENTRANT -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_RWSTD_MULTI_THREAD -D_THREAD_SAFE -L/RLP/RLP_source_server~asm7251/RLP_source_server64/lib/release -L/home/asm7251/orbacus64/lib -L/home/asm7251/jtc64/lib -L/usr/local/lib -L/RLP/RLP_source_server~asm7251/RLP_source_server64/xerces-c2_4_0-hpux_11_64-acc_a03/lib -L/home/asm7251/orbacus64/lib NotifyCmd.o WorkServer.o -ldld -lwork_c -lwork_s -Wl,-a,shared -lOBNaming -Wl,-a,shared -lCosNaming -Wl,-a,shared -lOB -Wl,-a,shared -lJTC -Wl,-a,shared -lfw -Wl,-a,shared -lceg_mt -lpthread -o /RLP/RLP_source_server~asm7251/RLP_source_server64/bin/release/ANTSWorkServer


Sandman!
Honored Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

Hi Prahlad,

The 64-bit compile option to aCC is incorrect. The "w" should be in uppercase or you can use the +DD64 switch instead of +DA2.0W.

Change...
>>aCC +DA2.0w
to...
aCC +DA2.0W
OR
aCC +DD64

cheers!
Prahalad Appaji
Occasional Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

Hi Sandman,

The aCC compiler recognizes both DA2.0W and DA2.0w. But, just to make sure, I rebuild a couple of files with DA2.0W and the object and executable file sizes were exactly the same and the ├в file├в output is the same.

thanks
Dennis Handly
Acclaimed Contributor

Re: Runtime error due to - Ldipme10 () from /oracle01/product/9.2.0/lib/libclntsh.sl.9.0

>it's something about linking order

 

I doubt it.  It's a programming error where a function scope static with run initialization is being started and it recursively (directly or indirectly) calls itself.

 

You'll need a stack trace to identify the cycle.

 

>Elsewhere I read that having libc before libpthread is not a good idea.

 

That correct, it is fatal.