RHEL update causes PlantUML to segfault

0 votes
asked May 12, 2016 in Bug by martinjpaterson (140 points)

Our Jenkins build server has been updated to Red Hat 6.8. Now PlantUML crashes every time it is run. We use the svg seqeuence-diagram output. I have the log file referred to, but it's quite large, I can email it somewhere if you need to look at it for more information.

Many thanks,

Martin.

 

 [plantuml] Starting PlantUML
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000039dc60aaa1, pid=26706, tid=140404568979200
#
# JRE version: 6.0_39-b39
# Java VM: OpenJDK 64-Bit Server VM (23.25-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.13.11
# Distribution: Red Hat Enterprise Linux Server release 6.8 (Santiago), package rhel-1.13.11.1.el6_8-x86_64
# Problematic frame:
# C  [libfontconfig.so.1+0xaaa1]  chmod+0xaaa1
#
# 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:
# /var/lib/jenkins/workspaces/service-manager-tosp-ewe-manual-build/hs_err_pid26706.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/usr/share/dita-ot-1.8/dita-ant: line 28: 26706 Aborted                 (core dumped) $DITA_DIR/tools/ant/bin/ant $*

1 Answer

0 votes
answered May 12, 2016 by plantuml (295,000 points)

Here, we are talking about some JRE that is crashing, and this is very hard to debug...
There are some information there:

https://bugs.openjdk.java.net/browse/JDK-6764543
https://developer.jboss.org/thread/146743?tstart=0&_sscc=t

This seems related to some font issues (suggested by libfontconfig.so.1+0xaaa1 )

Here what you could do:
- is this possible for you to upgrade to a more recent JRE (meaning a more recent Java) (version 6.0_39-b39 is a bit old), or see if other Java engine is installed on your system ?
- Which tools/plugin are you using for PlantUML (Wiki, Editor...) ?

- if changing Java is not possible, then we have to debug using some command lines. Could you start with:

java -var plantuml.jar -version -verbose

And send us the result ?

Thanks!

commented May 12, 2016 by martinjpaterson (140 points)
Many thanks for the quick response.

java -jar output:
PlantUML version 8040 (Wed May 11 19:05:48 BST 2016)
(GPL source distribution)
OpenJDK Runtime Environment
OpenJDK 64-Bit Server VM
1.6.0_39-b39
Linux

The environment variable GRAPHVIZ_DOT has not been set
Dot executable is /usr/bin/dot
Dot version: dot - graphviz version 2.26.0 (20091210.2329)
Installation seems OK. File generation OK

On investigation, this server has both 1.6 and 1.7 JREs. Although they both updated themselves last night, switching to 1.7 JRE fixes this. It looks like the 1.6.0_39 (from 1.6.0_38) update is broken in some way.

I can configure all the jobs that use PlantUML to use the 1.7 JRE, so consider this issue closed.

Many thanks,

Martin.
...