Hi,
we recently upgraded to AIX5 with 64bit java:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64dev-20080315 (SR7))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20080315 (JIT enabled)
i compile berkely with the following flags:
export OBJECT_MODE=64
export CC=/usr/vac/bin/xlc_r
export CCFLAGS="-qalias=noansi -qarch=pwr5 -qtune=pwr5 -q64 -O0 -g -I/opt/freeware/include -L/opt/freeware/lib"
export CXX=/usr/vac/bin/xlc_r
export LDFLAGS="-lc_r -lc -L/opt/freeware/lib"
export CXXFLAGS=$CCFLAGS
export CFLAGS=$CCFLAGS
../dist/configure
prefix=/home/u480cei/bdb_4.7.25 exec-prefix=/home/u480cei/bdb_4.7.25 --enable-java
make && make install
now i get
segmentation faults with this build (everything works perfect using 32bit and 4.5.20):
[Hauptzollamt] INFO : Starting transformation thread for workunit <Hauptzollamt> in mode <default>
Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000032
Handler1=09001000A03CA9F0 Handler2=09001000A03C2DB8
R0=09000000084ABC54 R1=000000011A2A1650 R2=09001000A1050AF8 R3=070000006534F8A8
R4=070000006543F9DD R5=3957232323322323 R6=090000000848BE60 R7=00000000102F00E5
R8=00000000002F00E5 R9=0000000000000000 R10=4E30000C30333033 R11=0000000000000000
R12=09001000A104D2D0 R13=000000011A2AB800 R14=0000000119E72710 R15=0000000119E66B00
R16=000000011241FD30 R17=0000000119E87CE8 R18=09001000A03CE2C8 R19=0000000000000082
R20=0000000114B10160 R21=0000000119E730C8 R22=0000000000000001 R23=070000000BA2B288
R24=070000001BC7E098 R25=070000000BA2B288 R26=070000000BA2B270 R27=0000000113319290
R28=0000000119E66B70 R29=0000000000000000 R30=09001000A1043428 R31=0900000008661218
IAR=0900000008489628 LR=09000000084ABC54 MSR=A00000000000D032 CTR=0900000008489300
CR=4200002B2000000C FPSCR=8200200000000000 XER=2000000C82002000
FPR0 fff8000000000018 (f: 24.000000, d: -NaNQ)
FPR1 4038000000000000 (f: 0.000000, d: 2.400000e+01)
FPR2 c3e0000000000000 (f: 0.000000, d: -9.223372e+18)
FPR3 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR4 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR5 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR6 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR7 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR8 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR9 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR10 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR11 41d27db98ccab021 (f: 2362093568.000000, d: 1.240918e+09)
FPR12 408f400000000000 (f: 0.000000, d: 1.000000e+03)
FPR13 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR14 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR15 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR16 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR17 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR18 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR19 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR20 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR21 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR22 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR23 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR24 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR25 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR26 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR27 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR28 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR29 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR30 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR31 0000000000000000 (f: 0.000000, d: 0.000000e+00)
Module=/data/di21/di21gomdb/bdb_4.7.25/lib/libdb_java-4.7.so
Module_base_address=0900000008451000
Target=2_30_20080314_17962_BHdSMr (AIX 5.3)
CPU=ppc64 (20 logical CPUs) (0x280000000 RAM)
JVMDUMP006I Processing Dump Event "gpf", detail "" - Please Wait.
JVMDUMP007I JVM Requesting System Dump using '/data/di21/di21gomdb/DMIG/bin/core.20090428.131930.1085496.0001.dmp'
here is the output from dbx:
di21gom@ux48demue302:~/DMIG/bin> dbx /usr/java5_64/jre/bin/java core.20090428.131930.1085496.0001.dmp
Type 'help' for help.
[using memory image in core.20090428.131930.1085496.0001.dmp]
reading symbolic information ...warning: unsupported binder stabstring compaction level 109, resetting to 1
DBX Plugin: could not find shim for 64-bit debugging (did you forget to copy "dbx_plug64" to the current directory?)
J9 DBX plugin loaded
plug-in "/usr/java5_64/jre/bin/libdbx_j9.so" loaded
IOT/Abort trap in pthread_kill at 0x90000000017c7e8 ($t1)
0x90000000017c7e8 (pthread_kill+0x88) e8410028 ld r2,0x28(r1)
(dbx) where
pthread_kill(??, ??) at 0x90000000017c7e8
praise(??) at 0x90000000017c224
raise.raise(??) at 0x90000000032eaf8
abort() at 0x90000000035a084
j9dump_create() at 0x900000000919f7c
doSystemDump() at 0x90000000097ad90
protectedDumpFunction() at 0x90000000097b420
j9sig_protect() at 0x9000000009183f4
runDumpFunction() at 0x90000000097cb04
triggerDumpAgents_25_24() at 0x90000000098932c
dumpCrashData() at 0x9000000008bc968
j9sig_protect() at 0x9000000009183f4
structuredSignalHandler() at 0x9000000008bcc60
masterSynchSignalHandler() at 0x90000000091865c
__env_alloc(infop = 0x0000000113ddaa70, len = 4168, retp = 0x000000011a2a1878), line 309 in "env_alloc.c"
__memp_alloc(dbmp = 0x0000000113dda9b0, infop = 0x0000000113ddaa70, mfp = 0x07000000630f89b0, len = 4168, offsetp = (nil), retp = 0x000000011a2a1ab8), line 89 in "mp_alloc.c"
__memp_fget(dbmfp = 0x00000001192ca070, pgnoaddr = 0x000000011a2a2088, ip = (nil), txn = (nil), flags = 32, addrp = 0x000000011a2a2070), line 574 in "mp_fget.c"
__db_new(dbc = 0x0000000119b193b0, type = 5, pagepp = 0x000000011a2a2200), line 176 in "db_meta.c"
__bam_page(dbc = 0x0000000119b193b0, pp = 0x0000000119b19628, cp = 0x0000000119b19658), line 361 in "bt_split.c"
__bam_split(dbc = 0x0000000119b193b0, arg = 0x000000011a2a2ba0, root_pgnop = 0x000000011a2a2468), line 129 in "bt_split.c"
__bamc_put(dbc = 0x0000000119b193b0, key = 0x000000011a2a2ba0, data = 0x000000011a2a2bf8, flags = 14, pgnop = 0x000000011a2a2828), line 2007 in "bt_cursor.c"
__dbc_put(dbc_arg = 0x0000000119b193b0, key = 0x000000011a2a2ba0, data = 0x000000011a2a2bf8, flags = 14), line 1520 in "db_cam.c"
__db_put(dbp = 0x00000001192d8b10, ip = (nil), txn = (nil), key = 0x000000011a2a2ba0, data = 0x000000011a2a2bf8, flags = 0), line 412 in "db_am.c"
__db_put_pp(dbp = 0x00000001192d8b10, txn = (nil), key = 0x000000011a2a2ba0, data = 0x000000011a2a2bf8, flags = 0), line 1556 in "db_iface.c"
Db_put(self = 0x00000001192d8b10, txnid = (nil), key = 0x000000011a2a2ba0, data = 0x000000011a2a2bf8, flags = 0), line 2643 in "db_java_wrap.c"
Java_com_sleepycat_db_internal_db_1javaJNI_Db_1put(jenv = 0x0000000119e66b00, jcls = 0x000000011656cb90, jarg1 = 4717382416, jarg1_ = 0x0000000119e72880, jarg2 = 0, jarg2_ = (nil), jarg3 = 0x0000000119e72870, jarg4 = 0x0000000119e72868, jarg5 = 0), line 4684 in "db_java_wrap.c"
(dbx)
Can you help us resolve this issue? We are currently stuck with 4.5.20 on 32bit plattforms as every other version of bdb fails on AIX with 64bit.
I tried to resolve this issue 1.5 years ago but didnt succeed (see this thread:
611196 )
Thanks for any help,
Chris