Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
This is one the problem with my gcc build on Solaris box. I think this option is enabled and it produces crashes when a native library throws an exception throw JNI. However, this behaviour is only visible on 64 bit build, where as on 32-bit it works perfectly fine.
The program fails during the dynamic linking of "_Unwind_RaiseException". Should I again built the gcc compiler with disabling this option "libunwind-exceptions" ? what is your suggestion ?
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Probably not a good idea to replace the default compiler.
Suggest : Use a configure line like ...
../gcc-4.1.2/configure --prefix=/usr/local/gcc41 --program-suffix=41 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-system-zlib --disable-libunwind-exceptions
Then link the new binaries gcc41, g++41 to /usr/bin/
We built the compiler again with '--disable-libunwind-exceptions' and still it crashes. Could it be related with Solaris libraries as the libc.so , i think, is provided by Solaris box ? Please correct me if I am wrong.
Have you ever faced this situation like getting these crashes in functions "Unwind_Raise_Exceptions" in system libraries ? Why this is happening only with 64-bit built libraries ? Could it be related with JDK version ? I will soon post the source code too so that if anyone has access to Solaris box can run the example on their own.