Git Product home page Git Product logo

classgraph-issue-341's Introduction

Replicate JVM crash during Classgraph scan

classgraph/classgraph#341

Working Build

mvn clean verify

finishes fine but produces a junit warning

WARNING: TestEngine with ID 'junit-jupiter' failed to execute tests
java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
        at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
        at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
        ...

Crashing Build

mvn clean verify -Phamcrest

introduces a recent version of hamcrest as test dependency which crashes the JVM

...

# Created at 2019-04-30T23:18:37.417
    Using VM: OpenJDK 64-Bit Server VM

# Created at 2019-04-30T23:18:37.417

# Created at 2019-04-30T23:18:40.446
/bin/sh: line 1:  8296 Abort trap: 6           /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/bin/java -XshowSettings:vm --illegal-access=warn -javaagent:/Users/bertramn/.m2/repository/org/jacoco/org.jacoco.agent/0.8.3/org.jacoco.agent-0.8.3-runtime.jar=destfile=/Users/bertramn/workspaces/fasttrack/mocks/classgraph-issue-341/target/jacoco.exec,append=true -jar /Users/bertramn/workspaces/fasttrack/mocks/classgraph-issue-341/target/surefire/surefirebooter11137074665374974571.jar /Users/bertramn/workspaces/fasttrack/mocks/classgraph-issue-341/target/surefire 2019-04-30T23-18-36_868-jvmRun1 surefire14206125834013885742tmp surefire_08669356738330033965tmp

Introducing an older hamcrest version also triggers the crash

mvn clean verify -Phamcrest-old

classgraph-issue-341's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.