Random crashes in programs compiled with sunstudio 11
Hi all,
I am porting some server stuff from Windows to Solaris and have the problem, that I have random crashes of our main server what didn't happen on Windows, Linux or HP with the same code base.
I think that there is perhaps a structural problem, what I can't find. Perhaps somebody can look over the attached info's and try to find out, if something is wrong.
Because of boost I have to use stlport4 stuff and I have also to link both thread libraries (libthread.so and libpthread.so). My concern is that there is some missmatch which causes my problems.
See somebody some dangers how I compile and link the stuff? Any help would be appreciated.
regards
a desperate
Compiler version:
SunOS sun4 5.8 Generic_108528-24 sun4u sparc SUNW,Ultra-80
Link line:
CC ApplicationServer.o ... -mt -library=stlport4 -L/km/sqstest_plato/PlatoServer/Interface/Release -lstubs -lskell -L/km/sqstest_plato/PlatoServer/Basics/Release -lbasic -L/km/sqstest_plato/PlatoServer/XMLBase/Release -lxmlbase -L/km/sqstest_plato/PlatoServer/libs/ReleaseInfo/Release -lReleaseInfo -L/km/sqstest_plato/PlatoServer/Basics/zlib/Release -lz -L/km/iona/asp/6.2/lib -lit_art -lit_poa -lit_ifc -lit_naming -lit_location -lit_iiop -lit_csi -L/km/poet/runtime/lib -lpt95Fbs -lpt95Fex -lpt95Fin -lpt95Fkn -lpt95Foq -lpt95Fsc -lpt95Ftm -L/km/sqstest_plato/PlatoServer/Basics/boost/lib -lboost_thread-sw-mt-1_33_1 -lboost_regex-sw-mt-1_33_1 -lboost_date_time-sw-mt-1_33_1 -lboost_filesystem-sw-mt-1_33_1-L/km/sqstest_plato/libs/xerces/lib/solaris -lxerces-c -L/km/sqstest_plato/libs/xalan/lib/solaris -lxalan-c -lxalanMsg -R/usr/lib/lwp -lmtmalloc -lsocket -lnsl -lpthread -o ./ApplicationServer
Example compile line:
CC -I.. -I../poet_code -I/km/iona/asp/6.2/include -I/km/poet/inc -I/km/libs/flexlm/machind -I/km/sqstest_plato/PlatoServer/Interface -I/km/sqstest_plato/PlatoServer/Basics -I/km/sqstest_plato/PlatoServer/XMLBase -I/km/sqstest_plato/PlatoServer/XMLBase/poet_code -I../../bison++ -I/km/sqstest_plato/libs/xerces/src -I/km/sqstest_plato/libs/xalan/src -xO3 -library=stlport4 -D_ASSERTE=assert -features=extensions -features=rtti -w -DNDEBUG -D_GARBAGE_COLLECTOR +d -mt -D_APP_SERVER-c SomeFile.cpp
one of different simular dbx outputs:
dbx ApplicationServer core.odc.1
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.5' in your .dbxrc
Reading ApplicationServer
dbx: warning: core object name "ApplicationServ" matches
object name "ApplicationServer" within the limit of 14. assuming they match
core file header read successfully
Reading ld.so.1
Reading libstubs.so
Reading libskell.so
Reading libbasic.so
Reading libxmlbase.so
Reading libReleaseInfo.so
Reading libit_art_sc53.so.5
Reading libit_poa_sc53.so.5
Reading libit_ifc_sc53.so.5
Reading libit_naming_sc53.so.5
Reading libit_location_sc53.so.5
Reading libit_iiop_sc53.so.5
Reading libit_csi_sc53.so.5
Reading libpt95Fbs.so
Reading libpt95Fex.so
Reading libpt95Fin.so
Reading libpt95Fkn.so
Reading libpt95Foq.so
Reading libpt95Fsc.so
Reading libpt95Ftm.so
Reading libboost_thread-sw-mt-1_33_1.so
Reading libboost_regex-sw-mt-1_33_1.so
Reading libboost_date_time-sw-mt-1_33_1.so
Reading libboost_filesystem-sw-mt-1_33_1.so
Reading libxerces-c.so.27
Reading libxalan-c.so.110
Reading libxalanMsg.so.110
Reading libmtmalloc.so.1
Reading libsocket.so.1
Reading libnsl.so.1
Reading libpthread.so.1
Reading libstlport.so.1
Reading libCrun.so.1
Reading libm.so.1
Reading libthread.so.1
Reading libc.so.1
Reading libit_atli2_ip_sc53.so.5
Reading libit_atli2_sc53.so.5
Reading libdl.so.1
Reading librt.so.1
Reading libit_atli2_iop_sc53.so.5
Reading libit_giop_sc53.so.5
Reading libit_iiop_profile_sc53.so.5
Reading libgen.so.1
Reading libmp.so.2
Reading libaio.so.1
Reading libc_psr.so.1
Reading libit_ifc_aux_sc53.so.5
Reading de.so.2
Reading libit_cfr_handler_sc53.so.5
Reading libit_cfr_sc53.so.5
Reading libit_codeset_sc53.so.5
Reading libit_icuuc.so.2
Reading libit_icui18n.so.2
Reading libit_icudata.so.2
Reading libpt95Fli.so
Reading libpt95Fix.so
t@10 (l@10) terminated by signal SEGV (no mapping at the fault address)
0xfd037810: GetBase+0x001c:ld[%o0 + 12], %o0
(dbx) where
current thread: t@10
=>[1] PtBaseHandle::GetBase(0xc077bfc8, 0x4b58c0, 0x8, 0x7, 0x1, 0xfa6fb770), at 0xfd037810
[2] PtOnDemandSet::Query(0x9f3654, 0xfa6fb790, 0xfd2bafbc, 0x0, 0x4b58c0, 0x0), at 0xfd1cf6dc
[3] CPSWorkspace::ChangePropagation(0xfffffffc, 0x9f3450, 0x1, 0xc, 0xfa6fb78c, 0x1), at 0x4359b8
[4] CPSCall::Delete(0x9f3450, 0x0, 0xffffffff, 0xffffffff, 0x21f2a8, 0xff2d5a88), at 0x31b5d4
[5] CPSBase::delete_Object(0xa1f1a0, 0x9f3450, 0x2, 0x0, 0x31b5a8, 0x82fe10), at 0xff29f294
[6] CPSTestCase::delete_Object(0xa1f1a0, 0x9f3450, 0x2, 0xfcdcb0b8, 0x8b1f08, 0x857800), at 0x3f9f5c
[7] CSBulkManipulations::DeleteObjects(0x9da880, 0xfa6fbba0, 0xfa6fba30, 0xfa6fba34, 0x8c7a28, 0x3f9ef4), at 0x4a42a0
[8] POA_IBulkManipulations::DeleteObjects_itgen_dispatch(0x1668, 0xfa6fbd30, 0xfa6fbc94, 0x1400, 0xfe7b8d60, 0x9da8c8), at 0xfe5aaca4
[9] PortableServer::ServantBase::_dispatch(0x9da8c0, 0xfa6fbd30, 0xfa6fbd74, 0x400, 0x1, 0x4a4750), at 0xfe27415c
[10] IT_POA_RequestInterceptor::invoke(0xab8c94, 0x92b74c, 0x92b750, 0xfa6fbdb0, 0xfa6fbd74, 0xfe2f8d28), at 0xfe23f12c
[11] IT_GIOP_ServerRequest::execute(0x92b100, 0x92b100, 0xfde5f368, 0xfe121678, 0x2, 0xfbbdb6d0), at 0xfbb5f5d8
[12] IT_ATLI2_IP::IPPoolImpl::execute(0xba0520, 0x4, 0xfa6fbf2c, 0x1, 0xfe0ea92c, 0x0), at 0xfc24ca30
[13] IT_Work_WorkerThread::run(0xa7fb30, 0x3, 0xac70a0, 0xac70a0, 0xac70a0, 0xfe0ea92c), at 0xfdd88c14
(dbx) quit

