[JIRA] [core] (JENKINS-29507) JenkinsRule initialization failed on a platform un-supported by JNA

10 views
Skip to first unread message

pjanouse@redhat.com (JIRA)

unread,
Jul 20, 2015, 8:27:01 AM7/20/15
to jenkinsc...@googlegroups.com
Pavel Janoušek created an issue
 
Jenkins / Bug JENKINS-29507
JenkinsRule initialization failed on a platform un-supported by JNA
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 20/Jul/15 12:26 PM
Environment: PPC64, HP-UX etc.
Priority: Major Major
Reporter: Pavel Janoušek

org.jvnet.hudson.test.JenkinsRule contains static initialization block with:

        if (!Functions.isWindows()) {
            try {
                GNUCLibrary.LIBC.unsetenv("MAVEN_OPTS");
                GNUCLibrary.LIBC.unsetenv("MAVEN_DEBUG_OPTS");
            } catch (Exception e) {
                LOGGER.log(Level.WARNING,"Failed to cancel out MAVEN_OPTS",e);
            }
        }

This part of code doesn't work as expected in the situation when loading "c" library fails. The exception can't be caught in the static block.

Above means a testsuite can't be executed on by JNA un-supported platform when JenkinsRule is used (obviously by many plug-ins).

Stacktrace looks similar like:

java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/hp-ux-ia64n/libjnidispatch.so) not found in resource path ([file:/hudson_workspace/workspace/HTS-ProcCleanerCI/target/surefire/surefirebooter7685486171447239626.jar])
 	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:776)
 	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736)
 	at com.sun.jna.Native.<clinit>(Native.java:131)
 	at org.jvnet.hudson.test.JenkinsRule.<clinit>(JenkinsRule.java:2129)
 	at org.jenkinsci.plugins.proccleaner.PsCleanerTest.<init>(PsCleanerTest.java:68)

PsCleanerTest.java:68 : @Rule public JenkinsRule j = new JenkinsRule();
JenkinsRule.java:2129 : GNUCLibrary.LIBC.unsetenv("MAVEN_OPTS");

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

scm_issue_link@java.net (JIRA)

unread,
Sep 17, 2015, 2:05:01 PM9/17/15
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Sep 17, 2015, 2:05:01 PM9/17/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-29507
 
Re: JenkinsRule initialization failed on a platform un-supported by JNA

Code changed in jenkins
User: Vojtech Juranek
Path:
core/src/main/java/hudson/Functions.java
test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java
http://jenkins-ci.org/commit/jenkins/8f29260b177957a4082bffb271c9835adfa79bff
Log:
[FIXED JENKINS-29507] Make JenkinsRule useable on systems without glibc

dogfood@java.net (JIRA)

unread,
Sep 17, 2015, 3:09:03 PM9/17/15
to jenkinsc...@googlegroups.com
dogfood commented on Bug JENKINS-29507

Integrated in jenkins_main_trunk #4284
[FIXED JENKINS-29507] Make JenkinsRule useable on systems without glibc (Revision 8f29260b177957a4082bffb271c9835adfa79bff)

Result = SUCCESS
vojtech juranek : 8f29260b177957a4082bffb271c9835adfa79bff
Files :

  • test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java
  • core/src/main/java/hudson/Functions.java

scm_issue_link@java.net (JIRA)

unread,
Jan 15, 2016, 2:44:12 PM1/15/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Vojtech Juranek
Path:
test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java
http://jenkins-ci.org/commit/jenkins-test-harness/63131f6010a6a04837e4497db488729d370def6f
Log:


[FIXED JENKINS-29507] Make JenkinsRule useable on systems without glibc

Originally-Committed-As: 8f29260b177957a4082bffb271c9835adfa79bff

Reply all
Reply to author
Forward
0 new messages