Languages and Scripting

My Lib coredump by Unresolved symbol on HP-UX11.11

 
polymeta
New Member

My Lib coredump by Unresolved symbol on HP-UX11.11

look at the following info:

my program randomly coredump when it startup, sometimes coredump,somtimes normal.

specially, the position in program when the coredump happen are different.

 

 sqlite3_vsnprintf  has been staticly compiled into my lib,why ld say it can't resolved symbol ?

 

/usr/lib/dld.sl: Unresolved symbol: sqlite3_vsnprintf (code) from ./liblog_pa_hpux.sl

./startup.sh[14]: 20143 Abort(coredump)
bash-4.0#
bash-4.0# gdb -c core
HP gdb 5.9 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.9 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.

Reading symbols from server_hpux...done.
Core was generated by `server_hpux'.
Program terminated with signal 6, Aborted.

#0 0xc0028ba0 in <unknown_procedure> ()
(gdb) bt
#0 0xc0028ba0 in <unknown_procedure> ()
warning: Attempting to unwind past bad PC 0xc0028ba0
#1 0xc002822c in <unknown_procedure> ()
#2 0xc002822c in <unknown_procedure> ()
#3 0xc002822c in <unknown_procedure> ()
#4 0xc002822c in <unknown_procedure> ()
Cannot access memory at address 0x2e2f6c69
(gdb)

 

bash-4.0# what /usr/bin/cc
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.61 070723 $
LINT B.11.11.20 CXREF B.11.11.20
HP92453-01 B.11.11.20 HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $

 

bash-4.0# what /opt/aCC/bin/aCC
/opt/aCC/bin/aCC:
$Revision: 92453-07 linker linker crt0.o B.11.61 070723 $
HP aC++ B3910B A.03.85
HP aC++ B3910B A.03.80 Classic Iostream Library
HP aC++ B3910B A.03.80 Language Support Library

 

bash-4.0# what /usr/lib/libdld.sl
/usr/lib/libdld.sl:
92453-07 dld dld libdld.sl B.11.18 000922

5 REPLIES 5
polymeta
New Member

Re: My Lib coredump by Unresolved symbol on HP-UX11.11

here is another coredump stack:

 

#0 0xc01ffd40 in kill+0x10 () from /usr/lib/libc.2
#1 0xc019b3b4 in raise+0x24 () from /usr/lib/libc.2
#2 0xc01db550 in abort_C+0x160 () from /usr/lib/libc.2
#3 0xc01db5ac in abort+0x1c () from /usr/lib/libc.2
#4 0xc33e51c4 in __shlinit+0x190 () from /usr/lib/libCsup_v2.2
#5 0xc9f14b74 in openDatabase+0x7c0 () from /home/wj/Gaea/bin/debug/hpux_parisc_safe_server/./liblog_pa_hpux.sl
#6 0xc9f14ddc in sqlite3_open+0x44 () from /home/wj/Gaea/bin/debug/hpux_parisc_safe_server/./liblog_pa_hpux.sl
#7 0xc9e51184 in CppSQLite3DB::open (this=0x4012ba10, szFile=0x4012b5e0 "./log/brule_log") at cpp_sqlite3.cpp:1122
#8 0xc9e2fb90 in Clog_sqlite_db::init (this=0x7aaaec91, eType=eBRULE_LOG) at log_sqlite_db.cpp:67
#9 0xc9df1564 in Clog_operator::init_local_db (this=0x7aa9f2b0, plog=0x4012b020) at log_operator.cpp:35
#10 0xc9dd5b6c in clog_transmit_task::init_task (this=0x7aa9f130) at log_task/log_task.cpp:267
#11 0xc9dd3aa4 in clog_transmit_task::svc (this=0x7aa9f130) at log_task/log_task.cpp:43
#12 0xc94eb9e4 in ACE_Task_Base::svc_run (args=0x7aa9f130) at Task.cpp:271
#13 0xc94ec4d0 in ACE_Thread_Adapter::invoke_i (this=0x400c0dc8) at Thread_Adapter.cpp:161
#14 0xc94ec2c0 in ACE_Thread_Adapter::invoke (this=0x400c0dc8) at Thread_Adapter.cpp:96
#15 0xc941df3c in ace_thread_adapter (args=0x400c0dc8) at Base_Thread_Adapter.cpp:122
#16 0xc003acc0 in __pthread_body+0x44 () from /usr/lib/libpthread.1
#17 0xc0043d04 in __pthread_start+0x14 () from /usr/lib/libpthread.1

Dennis Handly
Acclaimed Contributor

Re: My Lib coredump by Unresolved symbol on HP-UX 11.11

>sqlite3_vsnprintf  has been statically compiled into my lib, why dld says it can't resolve symbol ?

>dld.sl: Unresolved symbol: sqlite3_vsnprintf (code) from ./liblog_pa_hpux.sl

 

Is it defined in liblog_pa_hpux.sl?  Is it exported?

 

What version of dld.sl do you have?  The latest recommended patch is: PHSS_42253

   92453-07 dld dld dld.sl B.11.72 110608

polymeta
New Member

Re: My Lib coredump by Unresolved symbol on HP-UX 11.11

>>Is it defined in liblog_pa_hpux.sl?  Is it exported?

 

yes, it defined in liblog_pa_hpux.sl but not exported, it is just used by itself

 

 

>>What version of dld.sl do you have?  The latest recommended patch is: PHSS_42253

 

you mean that the problem caused by dld.sl ?

polymeta
New Member

Re: My Lib coredump by Unresolved symbol on HP-UX 11.11

bash-4.0# what /usr/ccs/bin/ld
/usr/ccs/bin/ld:
HP aC++ B3910B A.03.25 Classic Iostream Library
HP aC++ B3910B A.03.25 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.18 REL 000922
bash-4.0#

Dennis Handly
Acclaimed Contributor

Re: My Lib coredump by Unresolved symbol on HP-UX 11.11

>it defined in liblog_pa_hpux.sl but not exported, it is just used by itself

 

Then I'm surprised you get that error.

>you mean that the problem caused by dld.sl?

 

Most likely, that produces the error and is a very old version.

> what /usr/ccs/bin/ld  B.11.18 REL 000922

 

This is NOT dld.sl.  But is over 11 years old.