Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Ghostscript initialization crashes Java VM #76

Open
Blitzableiter opened this issue Jan 7, 2022 · 0 comments
Open

Ghostscript initialization crashes Java VM #76

Blitzableiter opened this issue Jan 7, 2022 · 0 comments

Comments

@Blitzableiter
Copy link

Trying to build ghost4j:1.0.4 using native Ghostscript 9.55 fails during tests due to the Java VM crashing during initialization of native ghostscript:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.ghost4j.GhostscriptLibraryTest
GPL Ghostscript 9.55.0 (2021-09-27)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f494aeacaf8, pid=8825, tid=0x00007f499d1c2640
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [jna5652348723028287747.tmp+0xeaf8]
#
# Core dump written. Default location: /home/max/Downloads/ghost4j-master/core or core.8825
#
# An error report file with more information is saved as:
# /home/max/Downloads/ghost4j-master/hs_err_pid8825.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.
#

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.758 s
[INFO] Finished at: 2022-01-07T09:55:41+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project ghost4j: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Steps to reproduce

  • Download and extract .zip of ghost4j-master
  • mvn clean install on project

Environment

  • OS: current 5.10.89-1-MANJARO with all updates (sudo pacman -Syyu before build)
  • Ghostscript version gs -v GPL Ghostscript 9.55.0 (2021-09-27)
  • JDK: 8.0u202-b08

What I tried

  • Downgrading Ghostscript to version 9.50 -> same result
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant