These are chat archives for symengine/symengine

Aug 2015
Isuru Fernando
Aug 17 2015 10:59
@certik, how do you get the stacktrace of an exception that was caught? Is it possible?
Ralf Stephan
Aug 17 2015 13:28
@isuruf (gdb) help catch?
Isuru Fernando
Aug 17 2015 14:04
@rwst, I was referring to getting teuchos stacktraces ( work with the testing framework that we use. (
Ondřej Čertík
Aug 17 2015 18:20
@isuruf just call the stacktrace function, just like you do for abort.
and for exception it has to be called at the point of the exception I think, which is tricky. But I thought it was working before using catch. Was it because if exception gets uncaught, the stacktrace is set for where the exception was raised?
So perhaps we can just remove the custom abort/exception handler in catch?
But we want Catch to do the accounting which tests fail/succeed.
Ondřej Čertík
Aug 17 2015 19:03
Perhaps easier is to disable exception catching in Catch. Perhaps based on some command line option. Then we can have it turned off on Travis, so that we can read the stack trace if it happens.
When people run it by hand, they can choose if they want a nice stacktrace, or rather a summary from Catch (but no stacktrace)