Running sportstracker app with OpenJDK 7 I can always crash the JVM.
liblcms2-2 version 2.2+git20110628-2ubuntu2
64 bits.
JVM version is
java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
Error is
Stack: [0x00007fca4a6f6000,0x00007fca4a7f7000], sp=0x00007fca4a7ef2b0, free space=996k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [liblcms2.so.2+0x121f8] cmsSaveProfileToIOhandler+0x38
[error occurred during error reporting (printing native stack), id 0xb]
How to reproduce:
Install OpenJDK 7 from ubuntu 11.10 repos
Run Sportstracker: https://sourceforge.net/projects/sportstracker/
Create one sport activity record
Go to Tools Menu, "General Chart" option (or similar depending on language)
Change chart type selecting "stacked" option in bottom right selection list
JVM crashes. The crash seems to be outside the JVM itself.
Crash log
Hi,
Thanks for reporting. For what I see in the log, the function "cmsSaveProfileToMem" is being called with hProfile == NULL. From the lcms2 API documentation "hProfile: Handle to a profile object", so NULL as handle is not a valid function call.
This NULL value probably comes from a previous unhandled error.
Regards
Marti
The LittleCMS project
Hi,
As said in the precious comment, this is not a bug in lcms but in the caller code. The API does *not* support NULL calls. Please report it to OpenJDK maintainers.