成功执行php单元测试后,返回了139个带有堆栈跟踪的代码:
BUILD FAILED
/home/jenkins/workspace/phpUnit/tests/build.xml:25: exec returned: 139
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
测试结果表明一切正常(所有测试都通过),bun因为这个错误代码jenkins标记构建为失败。
答案 0 :(得分:4)
发现以下解释:https://groups.google.com/d/msg/omnetpp/_zonGWenUqg/pdTs1MPxcDAJ
这里是文字:
Unix系统在收到信号时返回errono 128 +信号。 128 + 11 = 139。 SIgnal 11是SIGSEV(即分段违规)。 = C ++代码中存在内存访问错误
答案 1 :(得分:0)
这对我有帮助(感谢David Fuhr)
protected function setUp()
{
gc_collect_cycles();
gc_disable();
parent::setUp();
}
protected function tearDown()
{
parent::tearDown();
gc_enable();
}