gpt4 book ai didi

java - 在字节码中搜索对 System.exit 的调用

转载 作者:行者123 更新时间:2023-11-30 07:16:39 25 4
gpt4 key购买 nike

我有一个 Java 批处理,它正在神秘地调用 System.exit

有没有办法静态分析类路径中的所有字节码,以查看对 System.exit 的调用可能来自何处?

我无权访问运行批处理的环境,因此无法轻易修改环境以捕获此调用。

最佳答案

我发现了这个:

If you use Unix/Linux:Exit-code above 128 means that the process died because of a receivedsignal (exitCode = 128 + signalNumber).==> In your case it was signal 9 (= SIGKILL).

此处:Understanding error - Java returned: 137

所以也许有人杀了了你的批处理。

关于java - 在字节码中搜索对 System.exit 的调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16729803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com