Java crash on Ubuntu linux











up vote
0
down vote

favorite












Suddenly from one day to the next, with no apparent software or configuration changes we are starting to get JVM crashes with the following in the syslog:



 *** Error in `java': double free or corruption (fasttop): 0x00007f70344753d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f7051ca17e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f7051caa37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f7051cae53c]
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libfontmanager.so(Java_sun_font_FreetypeFontScaler_disposeNativeScaler+0x64)[0x7f7028cd6154]
[0x7f7039017e07]


As far as I can gather from similar issues this is caused by an error in a native library - in this case probably libfontmanager.so.



How can this be diagnosed further? Can I get a java-stacktrace of the situation causing this problem? In case this is a concurrency issue, it could perhaps be fixed on the java-side of things.



Using OpenJDK 1.8.0_181 on Ubuntu 16.04.5. I am unable to find a newer java build in Ubuntu repositories - maybe I overlooked it?



This is a production environment, so upgrade of major java version etc. would not be easy.










share|improve this question






















  • Are you using JNI in your app?
    – user10527814
    Nov 7 at 10:31












  • Also, are you using any kind of logging to file in your app?
    – Blagoj Atanasovski
    Nov 7 at 10:36










  • No JNI is used in the application, but plenty of file logging.
    – Dennis Thrysøe
    Nov 7 at 12:08










  • This looks like a JDK bug. OpenJDK 1.8.0_181 appears to be the latest available at packages.ubuntu.com/hu/source/xenial/openjdk-8 Can you post a full stack trace?
    – Andrew Henle
    Nov 7 at 14:33










  • The above is the full backtrace. I wish I knew how to get a stacktrace of this fault/situation.
    – Dennis Thrysøe
    Nov 7 at 14:34















up vote
0
down vote

favorite












Suddenly from one day to the next, with no apparent software or configuration changes we are starting to get JVM crashes with the following in the syslog:



 *** Error in `java': double free or corruption (fasttop): 0x00007f70344753d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f7051ca17e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f7051caa37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f7051cae53c]
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libfontmanager.so(Java_sun_font_FreetypeFontScaler_disposeNativeScaler+0x64)[0x7f7028cd6154]
[0x7f7039017e07]


As far as I can gather from similar issues this is caused by an error in a native library - in this case probably libfontmanager.so.



How can this be diagnosed further? Can I get a java-stacktrace of the situation causing this problem? In case this is a concurrency issue, it could perhaps be fixed on the java-side of things.



Using OpenJDK 1.8.0_181 on Ubuntu 16.04.5. I am unable to find a newer java build in Ubuntu repositories - maybe I overlooked it?



This is a production environment, so upgrade of major java version etc. would not be easy.










share|improve this question






















  • Are you using JNI in your app?
    – user10527814
    Nov 7 at 10:31












  • Also, are you using any kind of logging to file in your app?
    – Blagoj Atanasovski
    Nov 7 at 10:36










  • No JNI is used in the application, but plenty of file logging.
    – Dennis Thrysøe
    Nov 7 at 12:08










  • This looks like a JDK bug. OpenJDK 1.8.0_181 appears to be the latest available at packages.ubuntu.com/hu/source/xenial/openjdk-8 Can you post a full stack trace?
    – Andrew Henle
    Nov 7 at 14:33










  • The above is the full backtrace. I wish I knew how to get a stacktrace of this fault/situation.
    – Dennis Thrysøe
    Nov 7 at 14:34













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Suddenly from one day to the next, with no apparent software or configuration changes we are starting to get JVM crashes with the following in the syslog:



 *** Error in `java': double free or corruption (fasttop): 0x00007f70344753d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f7051ca17e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f7051caa37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f7051cae53c]
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libfontmanager.so(Java_sun_font_FreetypeFontScaler_disposeNativeScaler+0x64)[0x7f7028cd6154]
[0x7f7039017e07]


As far as I can gather from similar issues this is caused by an error in a native library - in this case probably libfontmanager.so.



How can this be diagnosed further? Can I get a java-stacktrace of the situation causing this problem? In case this is a concurrency issue, it could perhaps be fixed on the java-side of things.



Using OpenJDK 1.8.0_181 on Ubuntu 16.04.5. I am unable to find a newer java build in Ubuntu repositories - maybe I overlooked it?



This is a production environment, so upgrade of major java version etc. would not be easy.










share|improve this question













Suddenly from one day to the next, with no apparent software or configuration changes we are starting to get JVM crashes with the following in the syslog:



 *** Error in `java': double free or corruption (fasttop): 0x00007f70344753d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f7051ca17e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f7051caa37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f7051cae53c]
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libfontmanager.so(Java_sun_font_FreetypeFontScaler_disposeNativeScaler+0x64)[0x7f7028cd6154]
[0x7f7039017e07]


As far as I can gather from similar issues this is caused by an error in a native library - in this case probably libfontmanager.so.



How can this be diagnosed further? Can I get a java-stacktrace of the situation causing this problem? In case this is a concurrency issue, it could perhaps be fixed on the java-side of things.



Using OpenJDK 1.8.0_181 on Ubuntu 16.04.5. I am unable to find a newer java build in Ubuntu repositories - maybe I overlooked it?



This is a production environment, so upgrade of major java version etc. would not be easy.







java linux ubuntu jvm jni






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 7 at 10:24









Dennis Thrysøe

58131027




58131027












  • Are you using JNI in your app?
    – user10527814
    Nov 7 at 10:31












  • Also, are you using any kind of logging to file in your app?
    – Blagoj Atanasovski
    Nov 7 at 10:36










  • No JNI is used in the application, but plenty of file logging.
    – Dennis Thrysøe
    Nov 7 at 12:08










  • This looks like a JDK bug. OpenJDK 1.8.0_181 appears to be the latest available at packages.ubuntu.com/hu/source/xenial/openjdk-8 Can you post a full stack trace?
    – Andrew Henle
    Nov 7 at 14:33










  • The above is the full backtrace. I wish I knew how to get a stacktrace of this fault/situation.
    – Dennis Thrysøe
    Nov 7 at 14:34


















  • Are you using JNI in your app?
    – user10527814
    Nov 7 at 10:31












  • Also, are you using any kind of logging to file in your app?
    – Blagoj Atanasovski
    Nov 7 at 10:36










  • No JNI is used in the application, but plenty of file logging.
    – Dennis Thrysøe
    Nov 7 at 12:08










  • This looks like a JDK bug. OpenJDK 1.8.0_181 appears to be the latest available at packages.ubuntu.com/hu/source/xenial/openjdk-8 Can you post a full stack trace?
    – Andrew Henle
    Nov 7 at 14:33










  • The above is the full backtrace. I wish I knew how to get a stacktrace of this fault/situation.
    – Dennis Thrysøe
    Nov 7 at 14:34
















Are you using JNI in your app?
– user10527814
Nov 7 at 10:31






Are you using JNI in your app?
– user10527814
Nov 7 at 10:31














Also, are you using any kind of logging to file in your app?
– Blagoj Atanasovski
Nov 7 at 10:36




Also, are you using any kind of logging to file in your app?
– Blagoj Atanasovski
Nov 7 at 10:36












No JNI is used in the application, but plenty of file logging.
– Dennis Thrysøe
Nov 7 at 12:08




No JNI is used in the application, but plenty of file logging.
– Dennis Thrysøe
Nov 7 at 12:08












This looks like a JDK bug. OpenJDK 1.8.0_181 appears to be the latest available at packages.ubuntu.com/hu/source/xenial/openjdk-8 Can you post a full stack trace?
– Andrew Henle
Nov 7 at 14:33




This looks like a JDK bug. OpenJDK 1.8.0_181 appears to be the latest available at packages.ubuntu.com/hu/source/xenial/openjdk-8 Can you post a full stack trace?
– Andrew Henle
Nov 7 at 14:33












The above is the full backtrace. I wish I knew how to get a stacktrace of this fault/situation.
– Dennis Thrysøe
Nov 7 at 14:34




The above is the full backtrace. I wish I knew how to get a stacktrace of this fault/situation.
– Dennis Thrysøe
Nov 7 at 14:34












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Looks like this was possibly caused by pdfbox version 1.8 (or actually possibly more likely fontbox version 1.8). After upgrading both to version 2.0, the problem looks like it might have gone away.



However several things were tried in a frenzy, to try to get rid of this problem, so this is not known for certain. Also the issue was intermittent, and might possibly not have been solved, even though it looks like it until now.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53187551%2fjava-crash-on-ubuntu-linux%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Looks like this was possibly caused by pdfbox version 1.8 (or actually possibly more likely fontbox version 1.8). After upgrading both to version 2.0, the problem looks like it might have gone away.



    However several things were tried in a frenzy, to try to get rid of this problem, so this is not known for certain. Also the issue was intermittent, and might possibly not have been solved, even though it looks like it until now.






    share|improve this answer

























      up vote
      0
      down vote













      Looks like this was possibly caused by pdfbox version 1.8 (or actually possibly more likely fontbox version 1.8). After upgrading both to version 2.0, the problem looks like it might have gone away.



      However several things were tried in a frenzy, to try to get rid of this problem, so this is not known for certain. Also the issue was intermittent, and might possibly not have been solved, even though it looks like it until now.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Looks like this was possibly caused by pdfbox version 1.8 (or actually possibly more likely fontbox version 1.8). After upgrading both to version 2.0, the problem looks like it might have gone away.



        However several things were tried in a frenzy, to try to get rid of this problem, so this is not known for certain. Also the issue was intermittent, and might possibly not have been solved, even though it looks like it until now.






        share|improve this answer












        Looks like this was possibly caused by pdfbox version 1.8 (or actually possibly more likely fontbox version 1.8). After upgrading both to version 2.0, the problem looks like it might have gone away.



        However several things were tried in a frenzy, to try to get rid of this problem, so this is not known for certain. Also the issue was intermittent, and might possibly not have been solved, even though it looks like it until now.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 at 7:01









        Dennis Thrysøe

        58131027




        58131027






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53187551%2fjava-crash-on-ubuntu-linux%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Tangent Lines Diagram Along Smooth Curve

            Yusuf al-Mu'taman ibn Hud

            Zucchini