Skip to content

After upgrade from 3.5.6 to 3.6.0 - plugin sometimes hangs after test finishesΒ #3500

Closed

Description

@lichtin

Affected version

3.6.0

Bug description

After upgrade from 3.5.6 to 3.6.0 - plugin sometimes hangs after test finishes.

[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 45.41 s -- in MyTest
[ERROR] Surefire is going to kill self fork JVM. The exit has elapsed 1 seconds after System.exit(0).

I'm not sure how to debug such a situation, any suggestion appreciated.

Activity

  1. olamy commented on Oct 1, 2026

    @olamy
    Member

    Try using -X to have some debug. but without more informations (a reproducer) we cannot really help with such low level of informations.

  2. lichtin commented on Oct 1, 2026

    @lichtin
    Author

    Attching jstack output from hanging JVM process.

    jenkins 881889 662833 4 13:28 ? 00:00:19 /appl/java/jdk-21.0.12-x86-64/bin/java -XX:+EnableDynamicAgentLoading -jar /.../target/surefire/surefirebooter-20261001132654934_1572.jar /.../target/surefire 2026-10-01T11-43-32_997-jvmRun1 surefire-20261001132654934_1570tmp surefire_172-20261001132654934_1571tmp

    jstack-881889.txt

  3. self-assigned this
    on Oct 3, 2026
  4. olamy commented on Oct 3, 2026

    @olamy
    Member

    ah possible issue there but nothing really new in this area from 3.5.x code.
    Not sure what could have changed with 3.6.0 to generate this more often.
    What is the content of the files target/surefire-reports/*.dump?

  5. olamy commented on Oct 3, 2026

    @olamy
    Member

    possible fix here #3506

  6. lichtin commented on Oct 4, 2026

    @lichtin
    Author

    ah possible issue there but nothing really new in this area from 3.5.x code.
    Not sure what could have changed with 3.6.0 to generate this more often.

    It always hangs at the same test, many others of the same kind run fine. It does work with 3.5.6.

    What is the content of the files target/surefire-reports/*.dump?

    it contains dumps from previous tests, but not from this test which hangs

    possible fix here #3506

    great!

  7. olamy commented on Oct 4, 2026

    @olamy
    Member

    @lichtin can you please test your project with the PR because I cannot reproduce anything. If not, please provide a reproducer.

  8. lichtin commented on Oct 6, 2026

    @lichtin
    Author

    Afraid I'm not in a position to do either.
    The issue appears only on Linux, as part of a Jenkins build job running a Pax-Exam test (forking an Apache Karaf container)..

  9. olamy commented on Oct 8, 2026

    @olamy
    Member

    Well, I will merge it anyway, but we cannot be sure your problem is fixed, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions