under OSX deff('y=f(x)','z=x^2'),fsolve(1,f) crashes scilab
Reported by Stéphane MOTTELET (@mottelet)
BUG DESCRIPTION:
----------------
fsolve crashes Scilab as soon as there is an error when running f
ERROR LOG:
----------
Scilab 6.0.1 (Feb 15 2018, 15:42:45)
--> deff('y=f(x)','z=x^2'),fsolve(1,f)
terminate called after throwing an instance of 'ast::InternalError'
what(): std::exception
A fatal error has been detected by Scilab.
Please check your user-defined functions (or external module ones) should they appear in the stack trace.
Otherwise you can report a bug on http://bugzilla.scilab.org/ with:
* a sample code which reproduces the issue
* the result of [a, b] = getdebuginfo()
* the following information:
[macmottelet-cr-0:00746] Signal: Abort trap: 6 (6)
[macmottelet-cr-0:00746] Signal code: (0)
Call stack:
1: ? ? (?)
2: 0x5d1ae <abort> (/usr/lib/system/libsystem_c.dylib)
3: 0x56eb <_ZN9__gnu_cxx27__verbose_terminate_handlerEv> (/Users/mottelet/scilab/scilab-6.0.1/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libstdc++.6.dylib)
End of stack
HOW TO REPRODUCE THE BUG:
-------------------------
deff('y=f(x)','z=x^2'),fsolve(1,f)
OTHER INFORMATION:
------------------