We recently ported our C++ app from classic iostreams to standard. At the same
time we jumped from Forte 6 up 2 to Sun Studio 11 (with latest patch bundle).
Here is the problem.
A simple java app calls System.loadLibrary with our shared library (libclark)
dumps core. I've tried with java 1.4.2 and java 5 also Sun Studio 10 and 11.
Here is the stack when run under libumem:
ff11fb84 _lwp_kill (6, 80, 0, ffbfd2c8, 0, ff1ceaf4) + 8
ff1c3dcc umem_do_abort (1, a, a000000, 7efefeff, 81010100, ff00) + 18
ff1c4074 umem_err_recoverable (ff1d064c, f1fd2860, ff1d0630, ffbfd2e0, 5, 9) +
74
ff1c3938 free (f1fd2860, fffb, ef7de5f0, fa921398, 5, 0) + 54
ff016000 void operator delete(void*) (f1fd2860, 0, 0, ffffffff, ef8e673c,
1e0c0) + 4
fa92d88c std::string &std::string::operator=(const std::string &) (f1fd2888,
ffbfd470, f1fd28
88, 1, fa92cc3c, b719c) + a8
ef8802c8 std::string
*__rwstd::locale_vector<std::string>::resize(unsigned,std::string ) (af4
10, 6, ffbfd470, b7198, 0, 0) + bc
ef87d16c __rwstd::locale_imp::locale_imp #Nvariant 1(unsigned,unsigned)
(af3f0, a, 1, af418,
af410, f1fd2860) + b0
ef87d870 void std::locale::init() (ef8ee018, 68f08, 0, 800, ef8e673c, 8a4) + 40
ef874bd8 std::istream::basic_istream(std::ios_base::EmptyCtor) (ef8ec918, 0,
71bd0, f203cc00,
f203cc0c, ef8ec938) + 70
ef875020 __SLIP.INIT_A (0, 7175c, 0, 800, ef8e673c, aa0) + 44
ef876108 void __STATIC_CONSTRUCTOR() (ef86a324, 7c484, aa4, 800, ef8e673c,
8b4) + 4
ef88b09c _init (0, 1, 1c, fab91048, 20000000, 40000000) + 1e0
ff3c0254 call_init (400000, 80000, ff3ee7c4, fab91118, ffffffff, 0) + 1a8
ff3c56d4 dlmopen_intn (ff3ee0c4, af450, c01, feef0e78, 0, 0) + 80
ff3c5818 dlmopen_check (ff3ee0c4, af450, 1, feef0e78, ffbfd8dc, ffbfe098) + 134
ff3c58d4 dlopen (af450, 1, 0, f681e108, 32793c, 0) + ac
Compile flags (CC):-Dsolaris -features=no%localfor -pta -KPIC -mt
Link (done with CC) flags:-G -z text -dy -B symbolic -Dsolaris
-features=no%localfor -pta -KPIC -mt -lCstd -lm
ldd libclark
libCstd.so.1 => /usr/lib/libCstd.so.1
libCrun.so.1 => /usr/lib/libCrun.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
librpcsvc.so.1 => /usr/lib/librpcsvc.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libintl.so.1 => /usr/lib/libintl.so.1
libw.so.1 => /usr/lib/libw.so.1
libXext.so.0 => /usr/lib/libXext.so.0
libX11.so.4 => /usr/lib/libX11.so.4
libmp.so.2 => /usr/lib/libmp.so.2
/usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
Any ideas on how to investigate are welcome.
This message posted from opensolaris.org