Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-17457] Handle a null backtrace in ThreadManager#setException #3375

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

* This hapenned in CI for ruby-test-mri-asserts:
    java.lang.RuntimeException: Ruby Thread id=259 from test/mri/tests/ruby/test_io.rb:2916 terminated with internal error:
        at org.graalvm.ruby/org.truffleruby.core.thread.ThreadManager.printInternalError(ThreadManager.java:361)
        at org.graalvm.ruby/org.truffleruby.core.thread.ThreadManager.lambda$uncaughtExceptionHandler$3(ThreadManager.java:240)
        at java.base/java.lang.Thread.dispatchUncaughtException(Thread.java:2901)
    Caused by: java.lang.NullPointerException: Cannot invoke "org.truffleruby.language.backtrace.Backtrace.getRaiseException()" because "exception.backtrace" is null
        at org.graalvm.ruby/org.truffleruby.core.thread.ThreadManager.setException(ThreadManager.java:389)
        at org.graalvm.ruby/org.truffleruby.core.thread.ThreadManager.threadMain(ThreadManager.java:344)
        at org.graalvm.ruby/org.truffleruby.core.thread.ThreadManager.lambda$initialize$4(ThreadManager.java:321)
        at java.base/java.lang.Thread.run(Thread.java:1583)
        at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotThread.access$001(PolyglotThread.java:53)
        at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotThread$1.execute(PolyglotThread.java:106)
        at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotThread$ThreadSpawnRootNode.executeImpl(PolyglotThread.java:140)
        at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotThread$ThreadSpawnRootNode.execute(PolyglotThread.java:131)
        at org.graalvm.truffle/com.oracle.truffle.api.impl.DefaultCallTarget.callDirectOrIndirect(DefaultCallTarget.java:85)
        at org.graalvm.truffle/com.oracle.truffle.api.impl.DefaultCallTarget.call(DefaultCallTarget.java:102)
        at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotThread.run(PolyglotThread.java:102)
        Suppressed: Attached Guest Language Frames (1)
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 9, 2024
@graalvmbot graalvmbot closed this Jan 10, 2024
@graalvmbot graalvmbot merged commit 286d3a4 into master Jan 10, 2024
14 checks passed
@graalvmbot graalvmbot deleted the bd/handle-null-backtrace-setException branch January 10, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants