dbTalk Databases Forums  

Segmentation fault for BerkeleyDB 4.0.14

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Segmentation fault for BerkeleyDB 4.0.14 in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
yen
 
Posts: n/a

Default Segmentation fault for BerkeleyDB 4.0.14 - 12-06-2005 , 10:26 PM






Any ideas on why I get Segmentation fault for BerkeleyDB 4.0.14 would
be much appreciated.

An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : 11 occurred at PC=0xEFA9A9EC
Function=__rep_is_client+0x1C
Library=/usr/local/BerkeleyDB.4.0/lib/libdb_java-4.0.so

Current Java thread:
at com.sleepycat.db.DbEnv.lock_detect(Native Method)
...
...
...
Dynamic libraries:
0x10000 /usr/java1.4/bin/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
0xfe000000 /usr/java1.4/jre/lib/sparc/client/libjvm.so
0xff2e0000 /usr/lib/libCrun.so.1
0xff1e0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff310000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /usr/java1.4/jre/lib/sparc/native_threads/libhpi.so
0xff050000 /usr/java1.4/jre/lib/sparc/libverify.so
0xff020000 /usr/java1.4/jre/lib/sparc/libjava.so
0xfe7e0000 /usr/java1.4/jre/lib/sparc/libzip.so
0xfa2a0000 /usr/java1.4/jre/lib/sparc/libnet.so
0xefa00000 /usr/local/BerkeleyDB.4.0/lib/libdb_java-4.0.so

----------------------------------------------

An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : 10 occurred at PC=0xEEC82F98
Function=__log_close_files+0x88
Library=/usr/local/BerkeleyDB.4.0/lib/libdb_java-4.0.so

Current Java thread:
at com.sleepycat.db.DbEnv._close(Native Method)
at com.sleepycat.db.DbEnv.close(DbEnv.java:96)
- locked <f21e7cd8> (a com.sleepycat.db.DbEnv)
...
...
...
Dynamic libraries:
0x10000 /usr/java1.4/bin/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
0xfe000000 /usr/java1.4/jre/lib/sparc/client/libjvm.so
0xff2e0000 /usr/lib/libCrun.so.1
0xff1e0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff310000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /usr/java1.4/jre/lib/sparc/native_threads/libhpi.so
0xff050000 /usr/java1.4/jre/lib/sparc/libverify.so
0xff020000 /usr/java1.4/jre/lib/sparc/libjava.so
0xfe7e0000 /usr/java1.4/jre/lib/sparc/libzip.so
0xfa2a0000 /usr/java1.4/jre/lib/sparc/libnet.so
0xeec00000 /usr/local/BerkeleyDB.4.0/lib/libdb_java-4.0.so


Reply With Quote
  #2  
Old   
Michael Cahill
 
Posts: n/a

Default Re: Segmentation fault for BerkeleyDB 4.0.14 - 12-07-2005 , 06:17 PM






Hi,

This looks like it could be a race condition in your application: is
one thread calling DbEnv.close while another is calling
DbEnv.lock_detect, both on the same handle?

If so, that is not permitted -- the application must ensure that
DbEnv.close is called single-threaded (after all other threads have
finished using the handle).

Regards,
Michael.


Reply With Quote
  #3  
Old   
Michael Cahill
 
Posts: n/a

Default Re: Segmentation fault for BerkeleyDB 4.0.14 - 12-07-2005 , 08:31 PM



Hi,

This looks like it could be a race condition in your application: is
one thread calling DbEnv.close while another is calling
DbEnv.lock_detect, both on the same handle?

If so, that is not permitted -- the application must ensure that
DbEnv.close is called single-threaded (after all other threads have
finished using the handle).

Regards,
Michael.


Reply With Quote
  #4  
Old   
yen
 
Posts: n/a

Default Re: Segmentation fault for BerkeleyDB 4.0.14 - 12-08-2005 , 11:17 PM



Thanks for your reply.
After a good look at the codes (wasn't written by me), I think you
are right; it was a race condition.

Cheers,

Yen


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.