java crashed with SIGABRT during "mvn package"

Bug #1714698 reported by Stefan Wahren
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-8 (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I experience random crashes of java if i try to build packages with Apache Maven. It's possible there is an issue with this specific pom.xml, but at least it shouldn't crash.

Expected behavior:
mvn should generate a zip archive from the project.

Steps to reproduce (takes at least 5 tries):

1. run "git clone https://github.com/V2GClarity/RISE-V2G.git"
2. change to RISE-V2G directory
3. checkout commit 084320d6d6261dffd0074569b0b42d1911f3b1f9
4. apply the following patch: https://gist.github.com/lategoodbye/6feaa21dc5e992b26af2d0243994cef2
5. run "mvn package"

Java-Version: openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
Maven-Version: 3.3.9

ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: openjdk-8-jre-headless 8u131-b11-2ubuntu1.16.04.3
Uname: Linux 4.10.9-041009-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CrashCounter: 1
CurrentDesktop: Unity
Date: Sat Sep 2 17:08:01 2017
ExecutablePath: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
InstallationDate: Installed on 2017-03-08 (177 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
ProcCmdline: /usr/lib/jvm/java-8-openjdk-amd64/bin/java -classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/home/username/RISE-V2G org.codehaus.plexus.classworlds.launcher.Launcher package -X
Signal: 6
SourcePackage: openjdk-8
StacktraceTop:
 ?? () from /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libzip.so
 ?? () from /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libzip.so
 Java_java_util_zip_ZipFile_getEntry () from /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libzip.so
 ?? ()
 ?? ()
Title: java crashed with SIGABRT in Java_java_util_zip_ZipFile_getEntry()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Stefan Wahren (swahren) wrote :
Revision history for this message
Stefan Wahren (swahren) wrote :
Revision history for this message
Stefan Wahren (swahren) wrote :

After installing Maven 3.5.0 manually, the crash doesn't occurred anymore.

information type: Private → Public
description: updated
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 memcpy (__len=31539, __src=0x7fbdb2bc680d, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string3.h:53
 newEntry (zip=zip@entry=0x7fbdc8d70050, accessHint=accessHint@entry=ACCESS_RANDOM, zc=0x7fbdc8ef43b0) at /build/openjdk-8-pZyJp3/openjdk-8-8u131-b11/src/jdk/src/share/native/java/util/zip/zip_util.c:1022
 ZIP_GetEntry2 (zip=zip@entry=0x7fbdc8d70050, name=name@entry=0x7fbdd1720c80 "log4j2.xml", ulen=ulen@entry=10, addSlash=addSlash@entry=1 '\001') at /build/openjdk-8-pZyJp3/openjdk-8-8u131-b11/src/jdk/src/share/native/java/util/zip/zip_util.c:1195
 Java_java_util_zip_ZipFile_getEntry (env=0x7fbdc800a1e0, cls=<optimized out>, zfile=140453095080016, name=0x7fbdd17210d8, addSlash=<optimized out>) at /build/openjdk-8-pZyJp3/openjdk-8-8u131-b11/src/jdk/src/share/native/java/util/zip/ZipFile.c:177
 ?? ()

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in openjdk-8 (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Stefan Wahren (swahren)
description: updated
Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I couldn't reproduce this with OpenJDK 8 version 8u151. Could you please update your OpenJDK 8 and let us know if you are still having this issue?

I will be setting the status to incomplete, feel free to set it back to new in case the issue also affects the newer version.

Thanks in advance.

Changed in openjdk-8 (Ubuntu):
status: New → Incomplete
Revision history for this message
Stefan Wahren (swahren) wrote :

The issue persists with OpenJDK 8 version 8u151:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f2aa37f484e, pid=22217, tid=0x00007f2aa3f33700
#
# JRE version: OpenJDK Runtime Environment (8.0_151-b12) (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
# Java VM: OpenJDK 64-Bit Server VM (25.151-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x9f84e]
#
# 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/stefan/RISE-V2G/hs_err_pid22217.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.
#

Did you checkout the specific git hash as described above (the current master contains a workaround for this issue)?
Did you use Maven 3.3.9?
Did you tried to build the packages multiple times?

Revision history for this message
Stefan Wahren (swahren) wrote :
Revision history for this message
Stefan Wahren (swahren) wrote :

Here is the core file.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openjdk-8 (Ubuntu) because there has been no activity for 60 days.]

Changed in openjdk-8 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.