Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8244322

JVM crashes, converting PostScript file to pdf using Ghostscript library in OpenJDK build 1.8.0_242

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: openjdk8u242
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux_ubuntu

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Java 1.8version,
      Ubuntu Server 18.04 LTS (HVM), SSD Volume Type - ami-0620d12a9cf777c87 (64-bit x86) / ami-06b0afcb36d2e27ef (64-bit Arm).
      GhostScript lisbgs.so.9.26.


      A DESCRIPTION OF THE PROBLEM :
      Hi,
      Am hitting this error when i try converting from java programming using ghost4j API to convert .ps (which includes Japaneses letters) to pdf using Ghostscript library. Can you please do needful. Below posting the error am getting while running this.


      Thanks,
      xx

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fd83753fb39, pid=6888, tid=0x00007fd838af9700
      #
      # JRE version: OpenJDK Runtime Environment (8.0_242-b08) (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
      # Java VM: OpenJDK 64-Bit Server VM (25.242-b08 mixed mode linux-amd64 compressed oops)
      # Problematic frame:
      # C [libgs.so+0x209b39] ssetfilename+0x39
      #
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /home/ubuntu/hs_err_pid6888.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #

      REGRESSION : Last worked in version 8

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      http://www.ghost4j.org/highlevelapisamples.html
              FileOutputStream fos = null;
              try{
       
                  //load PostScript document
                  PSDocument document = new PSDocument();
                  document.load(new File("input.ps"));
       
                  //create OutputStream
                  fos = new FileOutputStream(new File("rendition.pdf"));
       
                  //create converter
                  PDFConverter converter = new PDFConverter();
       
                  //set options
                  converter.setPDFSettings(PDFConverter.OPTION_PDFSETTINGS_PREPRESS);
       
                  //convert
                  converter.convert(document, fos);
       
              } catch (Exception e) {
                  System.out.println("ERROR: " + e.getMessage());
              } finally{
                  IOUtils.closeQuietly(fos);
              }

      ACTUAL -
      getting error.

      ---------- BEGIN SOURCE ----------
      http://www.ghost4j.org/highlevelapisamples.html from the link execute the code under
      Convert PostScript file to PDF using PDFConverter.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      not sure.

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: