Consistent "Access violation. Attempted to read address" errors with HSQL
Since I just obtained it, I would add one more typical crash scenario.
What catches my attention is, that it crashes in a method ( java/lang/Integer.toString ) which is used by almost every application, yet most of time, works fine.
- JVM Version: 0.4.8.0
- OS version: 5.0 (Build 0): PlatformId 3 :
- Memory: 65% used, physical 31494144/87617536, page file 0/0, virtual 23527424/33554432
- Store: 984612/4046848
- CodePage: 437
- JVM arguments: -Xmx76800K -Xoss20480 -Xss1048576 -Xlogfile:"\IPSM\log.txt" -cp "\IPSM\tttk-mobile.jar;\IPSM\lib\jtds\jtds.jar;\IPSM\lib\hsqldb\hsqldbmain.jar;\IPSM\lib\swt\swt-ppc-arm.jar" mobile.Main
- ExceptionAddress:0x800865cc
- ExceptionCode: c0000005
- Exception detail:Access violation. Attempted to read address 2200000c
- Context:
- ContextFlags=0x47
- R0=0x0000007f R1=0x0000205f R2=0x0000205f R3=0x00000205 R4=0x0000000f R5=0x4bfe0000 R6=0x00000ffe
- R7=0x00000080 R8=0x878a6814 R9=0x00000000 R10=0xfffff000 R11=0x00080000 R12=0x47cd03c7
- Sp=0x2273fd40 Lr=0x80086568 Pc=0x800865cc Psr=0x2000001f
- Fpscr=0x4a7e4dd4 FpExc=0x2273fcd0
- S[0]=0x4bfccdb8 S[1]=0x4a7e4da0 S[2]=0x4a142ecc S[3]=0x4a7e4da0 S[4]=0x2273fcd0 S[5]=0x4bfccdb8 S[6]=0x0002aac0 S[7]=0x0002447c S[8]=0x0002aad4 S[9]=0x2273fcfc S[10]=0x4a03a134 S[11]=0x4bfccdb8 S[12]=0x01108188 S[13]=0x00000000 S[14]=0x4a7d77c5 S[15]=0x00000001 S[16]=0x00000001 S[17]=0x0002e6d8 S[18]=0x00000008 S[19]=0x4a142398 S[20]=0x4a0010c4 S[21]=0x4a142398 S[22]=0x4a03a134 S[23]=0x00000008 S[24]=0x00000000 S[25]=0x01108184 S[26]=0x00000024 S[27]=0x00000003 S[28]=0x011028bc S[29]=0x00000000 S[30]=0x00000024 S[31]=0x8262827c S[32]=0x000001ff
- FpExtra[0]=0x00000000 FpExtra[1]=0x800718ec FpExtra[2]=0x00000010 FpExtra[3]=0xffffcb80 FpExtra[4]=0x4bfe0000 FpExtra[5]=0x8009686c FpExtra[6]=0x00000020 FpExtra[7]=0x8009714c
- Modules:
- ModuleID ProcessID GlblcntUsg ProccntUsg modBaseAdr-modEndAdr hModule szModule szExePath dwFlags
- 0x84ea77b8 0xa752ce5e 0x00000001 0x00000001 0x03de0000-0x03df4000 0x84ea77b8 commdlg.dll 0x00000000
- 0x85d3f384 0xa752ce5e 0x00000002 0x00000002 0x00fa0000-0x00fd7000 0x85d3f384 swt-win32-3611.dll 0x00000000
- 0x86d42bd0 0xa752ce5e 0x00000001 0x00000001 0x00fe0000-0x00fe6000 0x86d42bd0 javalangreflect.dll 0x00000000
- 0x86fcb150 0xa752ce5e 0x00000002 0x00000002 0x00ff0000-0x00ff8000 0x86fcb150 javanet.dll 0x00000000
- 0x86fe77f0 0xa752ce5e 0x00000002 0x00000002 0x01000000-0x01007000 0x86fe77f0 javautil.dll 0x00000000
- 0x87008000 0xa752ce5e 0x00000001 0x00000001 0x01010000-0x010fa000 0x87008000 libiconv.dll 0x00000000
- 0x8708da80 0xa752ce5e 0x00000004 0x00000004 0x01100000-0x0110b000 0x8708da80 javanio.dll 0x00000000
- 0x870a3738 0xa752ce5e 0x00000003 0x00000003 0x01110000-0x0111a000 0x870a3738 native-lib.dll 0x00000000
- 0x87137c78 0xa752ce5e 0x00000001 0x00000001 0x01120000-0x01127000 0x87137c78 javaio.dll 0x00000000
- 0x871a9114 0xa752ce5e 0x00000006 0x00000006 0x01130000-0x01136000 0x871a9114 classpath.dll 0x00000000
- 0x87487dd8 0xa752ce5e 0x00000004 0x00000004 0x01140000-0x01157000 0x87487dd8 javalang.dll 0x00000000
- 0x87487ce4 0xa752ce5e 0x00000001 0x00000001 0x03ea0000-0x03ea5000 0x87487ce4 toolhelp.dll 0x00000000
- 0x875526c0 0xa752ce5e 0x00000001 0x00000001 0x01160000-0x01171000 0x875526c0 zlibce.dll 0x00000000
- 0x874ffe28 0xa752ce5e 0x00000009 0x00000009 0x01180000-0x01188000 0x874ffe28 libwce.dll 0x00000000
- 0x8772b1f8 0xa752ce5e 0x00000005 0x00000001 0x03b90000-0x03b96000 0x8772b1f8 nspm.dll 0x00000000
- 0x87a99bf4 0xa752ce5e 0x00000003 0x00000001 0x7ffb0000-0x7fff9000 0x87a99bf4 ceshell.dll 0x00000000
- 0x87a991a4 0xa752ce5e 0x0000000a 0x00000003 0x02940000-0x0294f000 0x87a991a4 aygshell.dll 0x00000000
- 0x87b3b634 0xa752ce5e 0x00000004 0x00000001 0x028e0000-0x028e6000 0x87b3b634 shcore.dll 0x00000000
- 0x87b3b438 0xa752ce5e 0x00000006 0x00000002 0x028f0000-0x02939000 0x87b3b438 ceshell.dll 0x00000000
- 0x87b4e1ac 0xa752ce5e 0x00000012 0x00000004 0x03e00000-0x03e73000 0x87b4e1ac commctrl.dll 0x00000000
- 0x87c56a20 0xa752ce5e 0x00000014 0x00000003 0x03ba0000-0x03ba6000 0x87c56a20 wspm.dll 0x00000000
- 0x87c5a000 0xa752ce5e 0x0000000e 0x00000002 0x03b80000-0x03b8b000 0x87c5a000 ssllsp.dll 0x00000000
- 0x87de9904 0xa752ce5e 0x00000027 0x00000004 0x03bc0000-0x03bcc000 0x87de9904 ws2.dll 0x00000000
- 0x87de9778 0xa752ce5e 0x00000013 0x00000001 0x03be0000-0x03bf0000 0x87de9778 iphlpapi.dll 0x00000000
- 0x87e3a7c0 0xa752ce5e 0x00000027 0x00000003 0x03530000-0x0355e000 0x87e3a7c0 ole32.dll 0x00000000
- 0x87ffc888 0xa752ce5e 0x00000103 0x0000001a 0x03f70000-0x03fff000 0x87ffc888 coredll.dll 0x00000000
- Java stack trace:
- java/lang/Integer.toString(II)Ljava/lang/String; : (Java method)
- java/lang/String.valueOf(I)Ljava/lang/String; : (Java method)
- java/lang/Integer.toString()Ljava/lang/String; : (Java method)
- org/hsqldb/rowio/RowOutputTextLog.writeInteger(Ljava/lang/Number;)V : (Java method)
- org/hsqldb/rowio/RowOutputBase.writeData(Lorg/hsqldb/types/Type;Ljava/lang/Object;)V : (Java method)
- org/hsqldb/rowio/RowOutputBase.writeData(I[Lorg/hsqldb/types/Type;[Ljava/lang/Object;Lorg/hsqldb/lib/HashMappedList;[I)V : (Java method)
- org/hsqldb/rowio/RowOutputBase.writeData(Lorg/hsqldb/Row;[Lorg/hsqldb/types/Type;)V : (Java method)
- org/hsqldb/scriptio/ScriptWriterText.writeRow(Lorg/hsqldb/Session;Lorg/hsqldb/Row;Lorg/hsqldb/Table;)V : (Java method)
- org/hsqldb/scriptio/ScriptWriterBase.writeExistingData()V : (Java method)
- org/hsqldb/scriptio/ScriptWriterBase.writeAll()V : (Java method)
- org/hsqldb/persist/Log.writeScript(Z)V : (Java method)
- org/hsqldb/persist/Log.close(Z)V : (Java method)
- org/hsqldb/persist/Logger.closePersistence(I)Z : (Java method)
- org/hsqldb/Database.close(I)V : (Java method)
- org/hsqldb/StatementCommand.getResult(Lorg/hsqldb/Session;)Lorg/hsqldb/result/Result; : (Java method)
- org/hsqldb/StatementCommand.execute(Lorg/hsqldb/Session;)Lorg/hsqldb/result/Result; : (Java method)
- org/hsqldb/Session.executeCompiledStatement(Lorg/hsqldb/Statement;[Ljava/lang/Object;)Lorg/hsqldb/result/Result; : (Java method)
- org/hsqldb/Session.executeDirectStatement(Lorg/hsqldb/result/Result;)Lorg/hsqldb/result/Result; : (Java method)
- org/hsqldb/Session.execute(Lorg/hsqldb/result/Result;)Lorg/hsqldb/result/Result; : (Java method)
- org/hsqldb/jdbc/JDBCStatement.fetchResult(Ljava/lang/String;II[I[Ljava/lang/String;)V : (Java method)
- org/hsqldb/jdbc/JDBCStatement.execute(Ljava/lang/String;)Z : (Java method)
- mobile/Database.disconnect(Z)V : (Java method)
- mobile/Main$ShutdownHandler.run()V : (Java method)
- java/lang/VMThread.run()V : (Java method)
- java/lang/VMThread.(null)(null) : ((null) method)
- End of context dump
- Additional information:
Hello,
Have you got the solution for this problem? I'm facing the same problem.
Thanks in advance for helping.
First of all, many thanks for publishing this JVM, it has helped me a lot, and in case of most applications, it works really well!
However, recently I've been experimenting with the newest version of the HSQLDB database server ( hsqldb.org ), which I'm running using as a storage system on a Windows CE 5.0 device (128 MB RAM, 128 MB Flash).
I have compiled HSQL specifically for Java 1.5 (using the SDK version 1.5.0_22) because when compiled with 1.6, it requires features which Mysaifu does not provide. However, I very frequently get errors like listed below. I have tried increasing heap size, Java stack size and native stack size, but nothing seems to help, and the error always seems to occur in a different way, so I cannot notice a pattern.
I would be very grateful for any tips for diagnosing the problem, or advise about how to try solving it. I'm including some sample error reports below.