dbTalk Databases Forums  

crash with bdb 4.3.29 and java 1.5

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


Discuss crash with bdb 4.3.29 and java 1.5 in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
niall.dalton@gmail.com
 
Posts: n/a

Default crash with bdb 4.3.29 and java 1.5 - 10-19-2005 , 12:25 PM






Hi,

I'm trying to use the Java API to Berkeley DB 4.3.29. JVM is Sun's
1.5.0_04-b05 running on Linux Fedora Core 4. On an amd64 machine, we
see errors like the one below when trying to set cache settings on
environment or database config. When we don't fiddle with those
settings, the could fails due to "environment did not include a memory
pool".

On a 32 bit machine (same version of the jvm and fedora) even the
HelloDatabaseWorld crashes like this.

Any suggestions as to what is going on here?

Regards,
Niall

Trying to open dir test
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x00002aaaef985000, pid=11541,
tid=46912496238528
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# C 0x00002aaaef985000
#
# An error report file with more information is saved as
hs_err_pid11541.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

The system details are:

--------------- S Y S T E M ---------------

OS:Fedora Core release 4 (Stentz)

uname:Linux 2.6.13-1.1526_FC4 #1 Wed Sep 28 19:15:04 EDT 2005 x86_64
libc:glibc 2.3.5 NPTL 2.3.5
rlimit: STACK 10240k, CORE 0k, NPROC 8185, NOFILE 1024, AS infinity
load average:2.23 2.15 2.12

CPU:total 1 amd64 3dnow

Memory: 4k page, physical 1024916k(9716k free), swap 2008084k(1798096k
free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0_04-b05) for
linux-amd64, built on Jun 3 2005
01:50:28 by java_re with gcc 3.2.2 (SuSE Linux)

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sleepycat.db.internal.db_javaJNI.Db_set_caches ize(JJI)V+0
j com.sleepycat.db.internal.Db.set_cachesize(JI)V+6
j
com.sleepycat.db.DatabaseConfig.configureDatabase( Lcom/sleepycat/db/internal/Db;Lcom/sleepyca
t/db/DatabaseConfigV+241
j
com.sleepycat.db.DatabaseConfig.openDatabase(Lcom/sleepycat/db/internal/DbEnv;Lcom/sleepycat/
db/internal/DbTxn;Ljava/lang/String;Ljava/lang/StringLcom/sleepycat/db/internal/Db;+183
j
com.sleepycat.db.Environment.openDatabase(Lcom/sleepycat/db/Transaction;Ljava/lang/String;Lja
va/lang/String;Lcom/sleepycat/db/DatabaseConfigLcom/sleepycat/db/Database;+27
j


Reply With Quote
  #2  
Old   
studdugie@gmail.com
 
Posts: n/a

Default Re: crash with bdb 4.3.29 and java 1.5 - 10-22-2005 , 12:13 PM






Sounds like you are not initializing the cache in your code. Post your
environment config code and I'll let you know if that's it.


Reply With Quote
  #3  
Old   
niall.dalton@gmail.com
 
Posts: n/a

Default Re: crash with bdb 4.3.29 and java 1.5 - 10-24-2005 , 12:49 AM



studdugie (AT) gmail (DOT) com wrote:
Quote:
Sounds like you are not initializing the cache in your code. Post your
environment config code and I'll let you know if that's it.
Thanks for the offer, however I solved that problem in the end by
setting things via the properties file rather than programmatically. I
might well have had the problem you suggest, but a JVM crash is a
rather unfortunate side effect!

Regards,
Niall



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.