-
Notifications
You must be signed in to change notification settings - Fork 28
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
Hangs on Warning while testing #889
Comments
Hello @Smorka According to the last line of your traces: [INFO] 2019-09-26 14:24:08 MavenAutomaticBuilder - run maven: /usr/share/maven//bin/mvn org.pitest:pitest-maven:mutationCoverage DSpot launched PIT to compute the mutation score. This is why it might be seen as stuck. You can enable the verbose nodem |
This is the output I get when including the --verbose parameter [INFO] Mutating from /home/smorka/development/tellulib/target/classes
8:58:13 AM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue.
8:58:13 AM PIT >> INFO : MINION : Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 73
Exception Details:
Location:
org/pitest/coverage/execute/CoverageMinion.rec
8:58:13 AM PIT >> INFO : MINION : eiveTestClassesFromParent(Lorg/pitest/util/SafeDataInputStream;)Ljava/util/List; @50: if_icmpeq
Reason:
Expected stackmap frame at this location.
Bytecode:
0x0000000: 2ab6 01bb 3cb2 0074 bb00 7659 b700 7713
0x0000010: 01bd b600 861b b600 81
8:58:13 AM PIT >> INFO : MINION : 13 01bf b600 86b6
0x0000020: 008a b601 c2bb 01c4 591b b701 c64d 033e
0x0000030: 1d1b 9f00 172c 2ab6 01c9 b801 cdb9 01d0
0x0000040: 0200 5784 0301 a7ff eab2 0074 1301 d2b6
0x0000050: 01c2 2cb0
at java.lang.Cla
8:58:13 AM PIT >> INFO : MINION : ss.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:178
8:58:13 AM PIT >> INFO : MINION : 4)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Have you seen it before? Is there any configuration I can do to proceed? |
Hello @Smorka Never seen this error before. Investigating for a solution. In the meantime, could you provide me the project on which you are executing DSpot? Thank you! |
Could you give more details about your installation such as the output of: mvn --version
java -version |
$mvn --version
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=2048m; support was removed in 8.0
Listening for transport dt_socket at address: 5005
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 1.8.0_222, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-60-generic", arch: "amd64", family: "unix" |
Can I send you the project code per mail? |
Hello, I could run then whole amplification process locally, meaning that the problem comes from your installation (I guess). @oscarlvp Do you know this error? 8:58:13 AM PIT >> INFO : MINION : Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 73
Exception Details:
Location:
org/pitest/coverage/execute/CoverageMinion.rec I looked on the internet but found nothing related to PIT, while on the traces it's clearly related to PIT> |
Did you manage to launch PIT/Descartes outside of DSpot, e.g. typing something like Thank you. |
I get the same error as versbose when doing the However, I'll try to install this on a windows machine and see if I get better progress. |
Hello, could you show me your |
$echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64 After setting MAVEN_OPTS to "" I am able to run the $ echo $MAVEN_OPTS
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -XX:MaxPermSize=2048m -Xmx2048m -Duser.timezone=UTC -javaagent:/home/smorka/devEnvironment/grails-2.5.5/lib/org.springframework/springloaded/jars/springloaded-1.2.5.RELEASE.jar -Xverify:none
$echo MAVEN_OPTS="" |
Interesting, did you retry to execute DSpot with empty I'm not sure but It might be related to:
|
I'm still not able to run it using the jar file $ java -jar dspot-2.2.0-jar-with-dependencies.jar --path-to-properties dspot.properties --test no.tellu.lib.data.BooleanOpTest However, it does execute, with a build success when using the dspot-maven plugin <plugin>
<groupId>eu.stamp-project</groupId>
<artifactId>dspot-maven</artifactId>
<version>2.2.0</version>
<configuration>
</configuration>
</plugin> $ mvn dspot:amplify-unit-tests provides a BUILD SUCCESS after 03:46 min |
Hello, could you provide me both traces? The one with jar and the one with maven. BTW, it is not mandatory to modify your
Thank you. |
Hello @Smorka Thank you for the traces. So, you did manage to amplify using maven (I obfuscated the name of test classes): [INFO] Print Test1.java with 1 amplified test cases in target/dspot/output
[INFO] Print Test2.java with 2 amplified test cases in target/dspot/output
[INFO] Print Test3.java with 1 amplified test cases in target/dspot/output Thus, there are positives results which is good. What you can do know, is to have a look at your amplified test classes, they should be in You can also try to use input amplifiers (by default, dspot only generates new assertions, i.e. the assertion amplification). To do so, you can use:
Options: For the maven execution, it seems that it is still stuck on the pit execution:
I suggest maybe to stick to the execution using maven. |
Hello @Smorka Any progress? |
Hi Benjamin.
I haven't touched it since it succeeded building. I will pick up the trail
next week.
I'll keep you posted on the progress.
…On Thu, Oct 3, 2019 at 11:02 AM Benjamin DANGLOT ***@***.***> wrote:
Hello @Smorka <https://github.com/Smorka>
Any progress?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#889?email_source=notifications&email_token=AAWZYJG5DTCGTNEWDPBZP3LQMWYJLA5CNFSM4I2ZVEV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHQSYQ#issuecomment-537856354>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWZYJB5K3GVXPY7LFPVSJ3QMWYJLANCNFSM4I2ZVEVQ>
.
--
Sverre Morka
95231268
Software developer
*Tellu IoT AS*
www.tellu.no
|
Characteristics
Description
I am testing D-spot as part of the STAMP project. We have a library module with 77 tests, and I want to amplify them with d-spot.
I follow the documentatio on GitHub. I have compiled a dspot.properties file with the following content:
then i Execute
$java -jar dspot-2.2.0-jar-with-dependencies.jar --path-to-properties dspot.properties
it seem to run the suite, but then it gives a warning and hangs:
I've tried specifying a specific test as well, same result
$java -jar dspot-2.2.0-jar-with-dependencies.jar --path-to-properties dspot.properties --test no.tellu.lib.data.BooleanOpTest
Is there something I need to configure?
Steps to reproduce
Properties file
Command Line / Options
Other files and URLs
Relationships
Help on issue template
Preview to follow the link or open file .github/ISSUE_DOC.md
The text was updated successfully, but these errors were encountered: