Uwe - thanks for the suggestion.
There's nothing that should cause jar modification but maybe the file
timestamps are going wonky. The build is a plain and simple build;
modules do use jars from earlier module builds but nothing that hasn't
work for ages (years).
A google search shows some cases of exit 143 for a variety of reasons
but I don't see a consistent pattern and some simply don't apply to the
setup here (e.g. MS windows).
In the current period of SIGTERMisms (143 = 128+signal 15), ubuntu4 is
the only machine involved. We have had intermittent occurrences before
but not for a while and I can't see the history. It's never happened
building locally.
Andy
On 02/06/13 14:50, Andreas Veithen wrote:
Interesting. How do you explain that the problem only occurs on
certain Ubuntu slaves? I have a build that is perfectly stable on
ubuntu1 and ubuntu3, but that starts failing with this error if I
allow it to run on other Ubuntu slaves. Note that this observation is
compatible with the fact that Andy reported the problem for ubuntu4. I
bet that if he looks in the build history he will not find any
instances of that problem for ubuntu1 and ubuntu3.
Andreas
On Sun, Jun 2, 2013 at 11:17 AM, Uwe Schindler <[email protected]> wrote:
This happens generally if something during the build changes a JAR file that is
currently open by the VM (e.g. a Maven plugin). If you compile a maven plugin
and then use it afterwards, you should split your maven build to do this in 2
separate maven invocations. This is a known bug to all JVMs: The native zlib
code reading the JAR files segfaults if a JAR file changes while opened by a
classloader.
Otherwise: Fix Maven or the plugin that opens the JAR file to call
URLClassLoader.close() if it detects Java 7. This can be done by doing
instanceof Closeable on your classloader and then close it using a cast:
If (classloader instanceof Closeable) {
((Closeable) classloader).close();
}
E.g. see this example: http://goo.gl/e5XHe
Of couse this would only work if you are using Java 7 to run Maven, the above
code will do nothing on Java 6 and the bugs stays.
Uwe
-----
Uwe Schindler
[email protected]
Apache Lucene PMC Member / Committer
Bremen, Germany
http://lucene.apache.org/
-----Original Message-----
From: Andy Seaborne [mailto:[email protected]]
Sent: Sunday, June 02, 2013 11:01 AM
To: [email protected]
Subject: Re: exit code 143 from maven - cause?
On 23/05/13 19:09, Andy Seaborne wrote:
Jena builds are getting exit code 143 from maven; the build seems to
going just fine up to that point.
Does any one have any clues/pointers as to how to fix this?
The only consistent point seems to be ubuntu4 but that was working OK
2 days ago at build #653.
The build is given 30 mins - it normally takes less than 5 mins.
What the console shows is: extract from [1]
... ubuntu4 ...
... several modules ...
... end of surefire ...
----------------
Results :
Tests run: 811, Failures: 0, Errors: 0, Skipped: 4
ERROR: Maven JVM terminated unexpectedly with exit code 143 Sending
e-mails to: [email protected]
Finished: FAILURE
---------------
and it stops there. When it's working, the next line after tests is
---------------
[JENKINS] Recording test results
---------------
Andy
[1]
https://builds.apache.org/view/H-
L/view/Jena/job/Jena__Development_Tes
t/657/console
We've had another couple of build failures in modules that haven't changed,
this time the job ends at: again, both on ubuntu4, everythign else OK.
Any suggestions on how to investigate?
Andy
--------------------
Results :
Tests run: 523, Failures: 0, Errors: 0, Skipped: 0
ERROR: Maven JVM terminated unexpectedly with exit code 143
--------------------
or
-------------------
Results :
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0
[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jena-text --- [INFO]
Building jar:
<https://builds.apache.org/job/Jena_Text_Search/ws/jena-
text/target/jena-text-0.0.0-SNAPSHOT.jar>
[INFO]
[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @
jena-text ---
ERROR: Maven JVM terminated unexpectedly with exit code 143
-------------------