Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

If i have some program which crash Mathematica every time it's run. What are the steps to make a more informative report and/or how do i go about debugging it?

EDIT:

I guess essentially my question is how even professionals such as Wolfram support will go about doing the initial diagnosis.

share|improve this question
2  
Isolate the specific code which causes the crash by running each line of code one line at a time. Then, you may want to post a question that helps you work through the specific issue. Also, if you do need to contact support, it will give them more and better information to assist you. –  Jagra Jun 25 '13 at 16:21
    
Is there any data dump that can be saved that can be useful for getting diagnosis? –  Problemaniac Jun 25 '13 at 18:52
    
If you can pin-point where the crash occurs and the data used, then that would be helpful. The only way to do that is as Jagra said, line by line. –  rcollyer Jun 25 '13 at 19:51
    
Some other software will dump certain error file when abruptly crash. Is there such a thing for M? –  Problemaniac Jun 25 '13 at 20:01
1  
If I understand what a core file contains, then it won't tell us the initial input that generated the crash, only the state of the application at the crash. –  rcollyer Jun 25 '13 at 21:14
show 1 more comment

1 Answer

up vote 7 down vote accepted

You should send this to the support. Please include the Mathematica Version, operating system version and the sequence of commands that cause the crash.

There is no data dump you can send. The most important thing for the support is to be able to reproduce the issue. Once that is done a number of things happen: Is this a known issue? If yes, is it fixed in the development version, is there a workaround for the customer.... If the issue is unknown a bug is filed and developer is involved. The developer then needs to track the issue down. A crash typically involves running Mathmatica in a debugger to find the root of the crash. A fix needs to be made and possibly a workaround suggested. A test for the test suite needs to be generated to avoid a regression in the future. These are a few steps to illustrate what happens when a bug report has come to the support.

I'd also point out that crashes are taken particularly serious by the support as the are always an major inconvenience for anyone.

share|improve this answer
    
Is there any data dump that i can save to help getting diagnosis? I guess essentially my question is how professionals such as Wolfram support will go about doing the initial diagnosis. –  Problemaniac Jun 25 '13 at 18:53
    
I'm curious about how "... involves running Mathmatica in a debugger ..." works. Basically i want to attempt to do this. –  Problemaniac Jun 26 '13 at 14:30
    
@red3y3, if you want to do that you should consider joining WRI ;-) Otherwise you can not, since you'd need the source code. –  user21 Jun 26 '13 at 14:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.