SIGSEGV when executing Maven plugin

134 views
Skip to first unread message

Stefan Murawski

unread,
Jul 1, 2016, 10:18:07 AM7/1/16
to izpack-user
Hi,

our jenkins build on linx severs is reporting strange zip-related errors when executing the maven plugin for 5.0.8 (slightly modified, hence the 5.0.8p).

Its either a SIGSEGV

[INFORMATION] Setting the installer information
[INFORMATION] Setting the console preferences
[INFORMATION] Setting the GUI preferences
[INFORMATION] Adding langpack: deu
[INFORMATION] Adding resource: flag.deu
[INFORMATION] Adding langpack: eng
[INFORMATION] Adding resource: flag.eng
[INFORMATION] Adding langpack: fra
[INFORMATION] Adding resource: flag.fra
[INFORMATION] Adding resource: ServerDataTargetPanel.dirs
[INFORMATION] Adding resource: SiteSelectionPanel.list
[INFORMATION] Adding resource: NNSSiteSelectionPanel.list
[INFORMATION] Adding resource: ServerSiteMapping.list
[INFORMATION] Adding resource: ServerSuffixSelectionPanel.list
[INFORMATION] Adding resource: NamingServiceFile.list
[INFORMATION] Adding resource: NamingServiceServerMapping.list
[INFORMATION] Adding panel: HelloPanel_0 :: Classname : com.izforge.izpack.panels.hello.HelloPanel
[INFORMATION] Adding panel: TargetPanel_1 :: Classname : com.izforge.izpack.panels.target.TargetPanel
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007eff6131f56f, pid=8067, tid=0x00007eff3b3ae700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x12f56f]  __memmove_ssse3_back+0x113f
#
# 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:
# /data/ninjo/jenkins/workspace/NinJo.2.0.installation.generic.prototype.installation/hs_err_pid8067.log
Compiled method (nm)  596502  508     n 0       java.util.zip.ZipFile::getEntry (native)
 total in heap  [0x00007eff49210ad0,0x00007eff49210e40] = 880
 relocation     [0x00007eff49210bf8,0x00007eff49210c40] = 72
 main code      [0x00007eff49210c40,0x00007eff49210e40] = 512
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
ERROR: Maven JVM terminated unexpectedly with exit code 134

or directly a NPE:

[INFORMATION] Adding panel: HelloPanel_0 :: Classname : com.izforge.izpack.panels.hello.HelloPanel
[INFORMATION] Adding panel: TargetPanel_1 :: Classname : com.izforge.izpack.panels.target.TargetPanel
[INFORMATION] Adding panel: org.ninjoworkstation.izpack.panels.NinJoServerDataTargetPanel_2 :: Classname : org.ninjoworkstation.izpack.panels.NinJoServerDataTargetPanel
[WARNUNG] No console mode helper found for class org.ninjoworkstation.izpack.panels.NinJoServerDataTargetPanel, panel type will be skipped in console mode installation
[INFORMATION] Adding panel: org.ninjoworkstation.izpack.panels.NinJoServerSiteSelectionPanel_3 :: Classname : org.ninjoworkstation.izpack.panels.NinJoServerSiteSelectionPanel
[WARNUNG] No console mode helper found for class org.ninjoworkstation.izpack.panels.NinJoServerSiteSelectionPanel, panel type will be skipped in console mode installation
[INFORMATION] Adding panel: org.ninjoworkstation.izpack.panels.NinJoServerNamingServiceSelectionPanel_4 :: Classname : org.ninjoworkstation.izpack.panels.NinJoServerNamingServiceSelectionPanel
[WARNUNG] No console mode helper found for class org.ninjoworkstation.izpack.panels.NinJoServerNamingServiceSelectionPanel, panel type will be skipped in console mode installation
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] org.ninjo-workstation.NinJo-refplatform-pom ........ SUCCESS [  2.169 s]
[INFO] Serverbuild-plugin Maven Mojo ...................... SUCCESS [01:52 min]
[INFO] org.ninjo-workstation.configmapper-maven-plugin .... SUCCESS [  6.750 s]
[INFO] msc-client ......................................... SUCCESS [  0.559 s]
[INFO] config-check ....................................... SUCCESS [14:23 min]
[INFO] NinJo izpack installer panels ...................... SUCCESS [ 17.682 s]
[INFO] NinJo IZpack Server Parent ......................... SUCCESS [  1.652 s]
[INFO] NinJo IzPack Server MSC Install .................... FAILURE [08:41 min]
[INFO] N_19078-Parent ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28:24 min
[INFO] Finished at: 2016-06-30T04:00:07+00:00

[INFO] Final Memory: 199M/4279M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.izpack:izpack-maven-plugin:5.0.8p-SNAPSHOT:izpack (default-izpack) on project IzPack-Server-MSC: Failure: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.izpack:izpack-maven-plugin:5.0.8p-SNAPSHOT:izpack (default-izpack) on project IzPack-Server-MSC: Failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:324)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
at org.izpack.mojo.IzPackNewMojo.execute(IzPackNewMojo.java:222)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 31 more
Caused by: java.lang.NullPointerException
at sun.misc.IOUtils.readFully(IOUtils.java:65)
at java.util.jar.JarFile.getBytes(JarFile.java:425)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)
at java.util.jar.JarFile.getManifest(JarFile.java:180)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:944)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:450)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.izforge.izpack.installer.util.PanelHelper.getClass(PanelHelper.java:212)
at com.izforge.izpack.installer.util.PanelHelper.getPanelClass(PanelHelper.java:190)
at com.izforge.izpack.installer.util.PanelHelper.getAutomatedPanel(PanelHelper.java:172)
at com.izforge.izpack.compiler.merge.CompilerPathResolver.getPanelMerge(CompilerPathResolver.java:108)
at com.izforge.izpack.compiler.packager.impl.PackagerBase.addPanel(PackagerBase.java:261)
at com.izforge.izpack.compiler.CompilerConfig.addPanels(CompilerConfig.java:1737)
at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:354)
at org.izpack.mojo.IzPackNewMojo.execute(IzPackNewMojo.java:212)
... 33 more

The internet tells me set 

-Dsun.zip.disableMemoryMapping

http://www.oracle.com/technetwork/java/javase/documentation/overview-156328.html:

Disabling mmap Usage (on Solaris or Linux)

This release includes a new system property, sun.zip.disableMemoryMapping, which allows the user to disable the mmap usage in Sun's java.util.zip.Zipfile implementation (on Solaris and Linux platforms). Solaris or Linux applications that use java.util.zip.ZipFile may experience a SIGBUS VM crash if the application accidentally overwrites any zip or jar files that are still being used by the same Java runtime. Although this is a programming error of the offending application, this system property provides a solution to avoid the VM crash. With the property set to true (-Dsun.zip.disableMemoryMapping=true, or simply -Dsun.zip.disableMemoryMapping) the Sun JDK/JRE runtime disables the mmap usage and the VM crash that might otherwise occur by overwriting the jar or zip file can be avoided.



I wanted to ask if anybody observed this problem as well and maybe had a solution/idea?.
The errors don't happen often, but frequently and not on all machines, so unfortunately I can't provide an "crashes always"-example.

Cheers,
Stefan


Andreas Kuhtz

unread,
Jul 4, 2016, 11:38:30 AM7/4/16
to izpack-user
Hello Stefan,

I've never seen this before. Does it happen if the local maven repo is nuked before the build?
Maybe there is an issue if artifacts are downloaded because you have a SNAPSHOT version of izpack-maven-plugin?

Regards,
Andreas

--
You received this message because you are subscribed to the Google Groups "izpack-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to izpack-user...@googlegroups.com.
To post to this group, send email to izpac...@googlegroups.com.
Visit this group at https://groups.google.com/group/izpack-user.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages