Opened 3 years ago

Last modified 3 years ago

#245 new defect

jvm.dll crash

Reported by: jep Owned by:
Priority: blocker Milestone: Enhanced
Component: general Version: 1.6.0 Build 27 GA5
Severity: high Keywords: jvm.dll, rt.lib, Float/Double, g++, openwatcom


Am trying to write a small app to load java and run code through jvm.dll. It is supposed to communicate back and forth and callback to the c/c++ code when data arrive from the outside. At the moment it just should load and initiate a HelloWorld?.class

It run to a certain point and then crash and I have now concluded that it is the same spot both with compiled code by OpenWatcom? and g++.

Have tried both static and dynamic linking, OW and gcc in case of problems with calling conventions, but this problem seem deeper than that.

[Loaded sun.reflect.UnsafeStaticFieldAccessorImpl? from D:\PROGRAMS\OPENJDK\lib\r
[Loaded java.lang.Appendable from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.AbstractStringBuilder? from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.StringBuffer? from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.StringBuilder? from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.StackTraceElement? from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.nio.Buffer from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.Boolean from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.Character from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.Number from D:\PROGRAMS\OPENJDK\lib\rt.jar]
[Loaded java.lang.Float from D:\PROGRAMS\OPENJDK\lib\rt.jar]

Killed by SIGFPE
pid=0x0119 ppid=0x0052 tid=0x0001 slot=0x00ac pri=0x0200 mc=0x0001 ps=0x0010
LIBC066 0:00039936
cs:eip=005b:1e2e9936 ss:esp=0053:0012e8e0 ebp=0012e918

ds=0053 es=0053 fs=150b gs=0000 efl=00010246

eax=00000000 ebx=00000000 ecx=0000003e edx=00120007 edi=00000000 esi=18348910
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.

Attachments (4)

CreateVM.c (3.2 KB) - added by jep 3 years ago.
C version for OW
CreateVM.cpp (5.7 KB) - added by jep 3 years ago.
CPP version for g++ (need var.hpp)
var.hpp (50.1 KB) - added by jep 3 years ago.
String manipulation library
build.cmd (2.0 KB) - added by jep 3 years ago.
run with "build jvm CreateVM.cpp"

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by jep

Attachment: CreateVM.c added

C version for OW

Changed 3 years ago by jep

Attachment: CreateVM.cpp added

CPP version for g++ (need var.hpp)

Changed 3 years ago by jep

Attachment: var.hpp added

String manipulation library

Changed 3 years ago by jep

Attachment: build.cmd added

run with "build jvm CreateVM.cpp"

Note: See TracTickets for help on using tickets.