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

Chisel.TestApplicationException: test application exit - exit code 139 #689

Open
ascenium opened this issue Apr 11, 2016 · 4 comments
Open

Comments

@ascenium
Copy link

I'm also being stopped by exit code 139 problems -- translates to an illegal memory access by the C++ simulation.

My Chisel trace is as follows:

Chisel.TestApplicationException: test application exit - exit code 139
at Chisel.Tester.Chisel$Tester$$mwhile(Tester.scala:131)
at Chisel.Tester$$anonfun$start$3.apply$mcVI$sp(Tester.scala:747)
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:166)
at Chisel.Tester.start(Tester.scala:745)
at Chisel.Tester.(Tester.scala:775)
at ascenium.ncprocessor_Tests.(ncprocessor.scala:369)
at ascenium.main$$anonfun$main$2.apply(main.scala:106)
at ascenium.main$$anonfun$main$2.apply(main.scala:106)
at Chisel.Driver$.apply(Driver.scala:65)
at Chisel.chiselMain$.apply(hcl.scala:63)
at Chisel.chiselMainTest$.apply(hcl.scala:76)
at ascenium.main$.main(main.scala:105)
at ascenium.main.main(main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

Looks like the tester is getting a lot farther than in the other posted exit 139 crash, so probably unrelated to it.

Please let me know what else you need from me to track down the problem.

@da-steve101
Copy link
Contributor

Can you compile the cpp binary with "-g" and run in gdb to find the section of code?
Please post that section of code (and maybe attach the cpp files too)

@ascenium
Copy link
Author

Will do.

@ascenium
Copy link
Author

ascenium commented May 6, 2016

When I do this, the compiled code runs forever and apparently does nothing. It doesn't crash, so there's no "location" of bad code I can send you.

I expect that this problem is a timeout problem where the gcc compiler is somehow in a race condition with the Chisel debugger. In instances where the generated model is too large to compile in time, you get this error.

@da-steve101
Copy link
Contributor

I have had a similar issue in the past, the c is waiting for input from the debugger (ie reset/step etc). just sending any string is usually enough to trigger the crash. Could you attach the cpp (the emulator one too) and ill see if I can replicate it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants