← Back to team overview

openjdk team mailing list archive

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

 

Just reproduced the issue on openjdk-6 on Intrepid JeOS Server+tomcat6+JIRA.
I implemented the workaround:
sudo apt-get install libjpeg62
sudo ln -s /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so

And it fixed the crash I always got in
Java_sun_awt_image_JPEGImageDecoder_initIDs/dlclose when trying to
display thumbnails of Jpeg files for JIRA running on tomcat6 with
java-6-openjdk.


** Attachment added: "Crash report"
   http://launchpadlibrarian.net/21162108/hs_err_pid7173.log

-- 
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: New

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