Re: [bdbxml] no db_java-4.3 in java.library.path
Todd Byrne <[email protected]>
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Yeah the exact error differes depending on whats going on in the java code but the second any native code is called the JVM crashs. I will post more later with a trimmed down Java example. Todd George Feinberg wrote: > > On Jul 28, 2005, at 12:25 PM, Todd Byrne wrote: > >> I have seen that "Problematic frame" using GCC 3.4.3 on a 64 bit system >> could it be the same issue with optimizations? > > > It's possible. So, you've seen a SEGV inside the DB java native > library? > > In the case discussed, it was 100% reproducible. > Is your situation reproducible? > > You can always try avoiding optimization on the native > library files and see if it goes away. > > Thanks for the heads-up. > > George > >> >> Todd >> George Feinberg wrote: >> >>> FYI, >>> >>> This issue was solved off-list, and turns out to be an >>> optimization bug in GCC 4.0 (used by Fedora 4). >>> This can happen if you configure a release version of the system. >>> Workarounds: >>> If you configure Berkeley DB as follows: >>> >>> env CFLAGS="-O0" ../dist/configure --enable-java [...] >>> >>> You should find that this error no longer occurs. >>> In fact, only db_java_wrap.c seems to trigger this bug in GCC, >>> so you can just compile that without "-O2" if you prefer. >>> >>> The same problem occurs in GCC 4.0.1. >>> >>> Regards, >>> >>> George >>> >>> On Jul 21, 2005, at 7:29 AM, Dewitte Rémi wrote: >>> >>> >>>> I solved my last problem butt i've another error : >>>> >>>> LD_LIBRARY_PATH=~/dbxml-2.1.8/install/lib/ java simpleAdd >>>> # >>>> # An unexpected error has been detected by HotSpot Virtual Machine: >>>> # >>>> # SIGSEGV (0xb) at pc=0xb1f83773, pid=27836, tid=3085883072 >>>> # >>>> # Java VM: Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode, >>>> sharing) >>>> # Problematic frame: >>>> # C [libdb_java-4.3.so+0x1c773] >>>> Java_com_sleepycat_db_internal_db_1javaJNI_initDbEnvRef0+0x1f >>>> # >>>> # An error report file with more information is saved as >>>> hs_err_pid27836.log >>>> # >>>> # If you would like to submit a bug report, please visit: >>>> # http://java.sun.com/webapps/bugreport/crash.jsp >>>> # >>>> >>>> Thanks. >>>> Rémi >>>> >>>> >>>> ------------------------------------------ >>>> To remove yourself from this list, send an >>>> email to [email protected] >>>> >>>> >>>> >>> >>> >>> >>> ------------------------------------------ >>> To remove yourself from this list, send an >>> email to [email protected] >> >> ------------------------------------------ To remove yourself from this list, send an email to [email protected]