[Yazlist] YAZ4J Windows 64bit

David Nock davidn at accessitsoftware.com
Mon Jun 4 13:41:39 CEST 2012

Looking more at this, the error I am getting is:

# A fatal error has been detected by the Java Runtime Environment:
#  Internal Error (os_windows_x86.cpp:149), pid=5736, tid=9928
#  guarantee(result == EXCEPTION_CONTINUE_EXECUTION) failed: Unexpected 
result from topLevelExceptionFilter
# JRE version: 6.0_32-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.7-b02 mixed mode 
windows-amd64 compressed oops)
# An error report file with more information is saved as:
# C:\Y\2\hs_err_pid5628.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Looking at the pid file:

---------------  T H R E A D  ---------------

Current thread (0x00000000001db800):  JavaThread "main" 
[_thread_in_native, id=9928, stack(0x0000000002020000,0x0000000002120000)]

Stack: [0x0000000002020000,0x0000000002120000]
[error occurred during error reporting (printing stack bounds), id 

[error occurred during error reporting (printing native stack), id 

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.yaz4j.jni.yaz4jlibJNI.ZOOM_connection_create(J)J+0
j  org.yaz4j.Connection.<init>(Ljava/lang/String;I)V+26
j  Yaz4J_Test2.main([Ljava/lang/String;)V+52
v  ~StubRoutines::call_stub

---------------  T H R E A D  ---------------

A quick google for the initial error seems to relate to a exception 
being thrown in native code and not being handled in the java side.
My C/C++ is a little rusty having now spent so long writing java so if 
anyone has any suggestions, it would be appreciated.


On 1/06/2012 9:31 a.m., David Nock wrote:
> Hi all,
> We have a requirement to supply a 64bit version of yaz4j and so far I 
> am unable to get this to work.
> I have managed to build a dll but any calls to the functions crashes 
> the JVM.
> I have previously built yaz4j for Windows 32bit/Mac 32bit and 
> 64bit/Linux so just followed the same approach to get
> this running on Windows 64bit. Currently I am using 64bit gcc v4.5.3 
> installed via cygwin. All other
> dependent dlls are 64bit.
> If I attach gdb to the process when it crashes, there is no dll code 
> in the backtraces of any thread.
> This suggests to me that it is the structure of the dll that is 
> incorrect rather than the internal code. My
> only suspicion from here is sizeof(int) or sizeof(long) and how these 
> get mapped for a 64bit environment.
> Have tried this with both Java6 x64 and Java7 x64.
> Can anyone offer any thoughts or has someone already done this?
> Regards,
> Dave
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2178 / Virus Database: 2425/5037 - Release Date: 05/31/12

More information about the Yazlist mailing list