sparse([1 1],1,[-1 -1]) crashes scilab
Reported by Stéphane MOTTELET (@mottelet)
BUG DESCRIPTION:
----------------
sparse([1 1],1,[-1 -1]) crashes scilab
ERROR LOG:
----------
Scilab branch-6.0 (Jun 12 2018, 18:34:29)
--> sparse([1 1],1,[-1 -1])
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
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:16561] Signal: Abort trap: 6 (6)
[macmottelet-cr-0:16561] Signal code: (0)
Call stack:
1: ? ? (?)
2: 0x5d1ae <abort> (/usr/lib/system/libsystem_c.dylib)
3: 0x56ab <_ZN9__gnu_cxx27__verbose_terminate_handlerEv> (/usr/local/gfortran/lib/libstdc++.6.dylib)
End of stack
HOW TO REPRODUCE THE BUG:
-------------------------
OTHER INFORMATION:
------------------