Issue 11805

Fix OccurrencePersistenceServiceImplTest to not segfault in Jenkins

11805
Reporter: omeyn
Assignee: omeyn
Type: Bug
Summary: Fix OccurrencePersistenceServiceImplTest to not segfault in Jenkins
Description: Doesn't happen every time, but often this test (but only this test) causes segfault which breaks occurrence build.
Priority: Critical
Resolution: Fixed
Status: Closed
Created: 2012-08-31 16:54:43.664
Updated: 2013-12-17 15:16:46.91
Resolved: 2012-10-23 10:03:11.99


Author: trobertson@gbif.org
Created: 2012-09-02 12:44:37.564
Updated: 2012-09-02 12:44:37.564
        
Example http://builds.gbif.org/view/OS/job/occurrence/150/

And the error:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.gbif.occurrencestore.persistence.util.OccurrenceKeyHelperTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.591 sec
Running org.gbif.occurrencestore.persistence.util.BasisOfRecordConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.181 sec
Running org.gbif.occurrencestore.persistence.OccurrencePersistenceServiceImplTest
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc98d3f3787, pid=13648, tid=140503482218240
#
# JRE version: 6.0_31-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.6-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x756787]  PSMarkSweepDecorator::precompact()+0x307
#
# An error report file with more information is saved as:
# /home/jenkins/workspaces/workspace/occurrence/occurrence-persistence/hs_err_pid13648.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/bin/sh: line 1: 13648 Aborted                 (core dumped) /usr/lib/jvm/java-1.6.0-sun-1.6.0.31/jre/bin/java '-javaagent:/tmp/jacocoagent390498120158621748.jar=destfile=target/jacoco.exec,excludes=*_javassist_*' -Xmx256m -jar /home/jenkins/workspaces/workspace/occurrence/occurrence-persistence/target/surefire/surefirebooter2914934057244550058.jar /home/jenkins/workspaces/workspace/occurrence/occurrence-persistence/target/surefire/surefire1271894015576086332tmp /home/jenkins/workspaces/workspace/occurrence/occurrence-persistence/target/surefire/surefire_123501208184715778452tmp
Running org.gbif.occurrencestore.persistence.OccurrenceResultReaderTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.708 sec
Running org.gbif.occurrencestore.persistence.VerbatimOccurrencePersistenceServiceImplTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.094 sec
Running org.gbif.occurrencestore.persistence.XmlFragmentPersistenceServiceImplTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.236 sec
Running org.gbif.occurrencestore.persistence.guice.OccurrencePersistenceModuleTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.476 sec
Running org.gbif.occurrencestore.persistence.OccurrenceIdPersistenceServiceImplTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 51.826 sec

Results :

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



    


Author: omeyn@gbif.org
Comment: Further observations: doesn't always happen in OccurrencePersistenceServiceImplTest, but also in at least OccurrenceIdPersistenceServiceImplTest as well.  Also appears to only happen in the 2nd build pass, which is the instrumented run for Sonar - hence maybe a Sonar problem.
Created: 2012-10-08 16:41:56.069
Updated: 2012-10-08 16:41:56.069


Author: omeyn@gbif.org
Comment: 15 builds without issue, thanks (I hope) to latest Sonar version. Resolving in the hope that will be closed after another 15 builds or so.
Created: 2012-10-23 10:03:12.028
Updated: 2012-10-23 10:03:12.028