Scilab crash when using fsolve for functions containing other functions
Reported by Saha
BUG DESCRIPTION:
----------------
I have big functions that contain other functions like this example:
function y=fy(x)
function z=fz(t)
z=t-x
endfunction
T=fsolve(1,fz)
y=T-x
endfunction
but when I run <fsolve(1,fy)>, scilab freeze then close.
Note that my codes are written with scilab 5.5.2 and they used to work pefectly in this version of scilab.
ERROR LOG:
----------
the error in the terminal for the example above is the following:
/usr/bin/scilab : ligne 957 : 25635 Erreur de segmentation (core dumped)"$SCILABBIN" "$@"
scilab 21,50s user 3,52s system 42% cpu 59,240 total
in the case of my program (contain functions much more complicated than the exemple above), I got the following error:
[mypc1v300:25873] Signal: Erreur de segmentation (11)
[mypc1v300:25873] Signal code: Address not mapped (1)
[mypc1v300:25873] Failing at address: (nil)
Pile d'appel :
1: 0x8b6d8c <JVM_handle_linux_signal> (/usr/lib/jvm/java-8-openjdk/jre/lib/amd64/server/libjvm.so)
2: 0x8aada8 < > (/usr/lib/jvm/java-8-openjdk/jre/lib/amd64/server/libjvm.so)
3: 0x11940 < > (/usr/lib/libpthread.so.0)
Fin de la pile
HOW TO REPRODUCE THE BUG:
-------------------------
Execute the exemple in the description of the bug:
OTHER INFORMATION:
------------------