← Back to team overview

openjdk team mailing list archive

Re: [Bug 195458] Re: wrong hardcoded path to libjpeg.so

 

Thierry Carrez a écrit :
> Christophe: I would indeed open a separate bug since it is a very
> different problem than the one fixed here (a problem of headless vs full
> JRE dependencies rather than a problem of wrong hardcoded path)
>
>   
Thanks for the feedback, it's done.
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/318383

I personally think that it is the same issue/bug.
The original issue should have been labeled "openJDK crashes JVM when 
libjpeg cannot be found" even if the title is misleading "wrong 
hardcoded path", changing the hardcoded path from libjpeg.so to 
libjpeg62.so and adding a dependency on libjpeg62 in openjdk-6-jre was 
the fix.
The dependency has been put in the wrong place, it should have been 
open-jdk-6-jre-*headless*. IMHO, it is the same bug.
But developers are sensitive persons, and it was out  for this reason 
that I asked the question :-)
I basically don't care as long as someone fixes the issue and no other 
person making a choice of going Ubuntu or Windows goes back to Windows 
because of such bugs.
I decided to switch to Ubuntu Server from Windows for our prod JIRA 
server and was very close to go back because of this bug (20 JVM crashes 
a day does not make you confident about a system).

Best regards,
Christophe Pierret

-- 
wrong hardcoded path to libjpeg.so
https://bugs.launchpad.net/bugs/195458
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “icedtea-java7” source package in Ubuntu: Fix Released
Status in “openjdk-6” source package in Ubuntu: Fix Released

Bug description:
Binary package hint: icedtea-java7-jre

openjdk/jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c

void *handle = dlopen("/usr/lib/libjpeg.so", RTLD_LAZY | RTLD_GLOBAL);
if (handle == NULL)
handle = dlopen("/usr/lib64/libjpeg.so", RTLD_LAZY | RTLD_GLOBAL);

 jpegstderror = (fn_jpegstderror)dlsym(handle, "jpeg_std_error");
 if (jpegstderror == NULL) {
 dlclose(handle);
 } 

example:
crash at open download dialog

http://josm.openstreetmap.de/download/josm-latest.jar




References