Scilab crashes when we try to assign something to an invalid vector
Reported by Marcos Cardinot
Originally assigned to Charlotte HECQUET
HOW TO REPRODUCE THE BUG:
-------------------------
- Open Scilab
- type: m() = 1
->crash!!!
it should just show a error message...
ERROR LOG:
----------
A fatal error has been detected by Scilab.
Your instance will probably quit unexpectedly soon.
If a graphic feature has been used, this might be caused by the system graphic drivers.
Please try to update them and run this feature again.
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:
[default:15954] Signal: Segmentation fault (11)
[default:15954] Signal code: Address not mapped (1)
[default:15954] Failing at address: (nil)
1: 0x914c46 <JVM_handle_linux_signal> (/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so)
2: 0x90b593 < > (/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so)
3: 0x10340 < > (/lib/x86_64-linux-gnu/libpthread.so.0)
4: 0x16bb3b <insertionCall(ast::Exp const&, std::vector<types::InternalType*, std::allocator<types::InternalType*> >*, types::InternalType*, types::InternalType*)> (/home/cardinot/scilab/scilab/modules/ast/.libs/libsciast.so.6)
5: 0x16e1b2 <evaluateFields(ast::Exp const*, std::list<ExpHistory*, std::allocator<ExpHistory*> >&, types::InternalType*)> (/home/cardinot/scilab/scilab/modules/ast/.libs/libsciast.so.6)
6: 0x15c847 <ast::RunVisitorT<ast::ExecVisitor>::visitprivate(ast::AssignExp const&)> (/home/cardinot/scilab/scilab/modules/ast/.libs/libsciast.so.6)
7: 0x149f76 <ast::RunVisitorT<ast::ExecVisitor>::visitprivate(ast::SeqExp const&)> (/home/cardinot/scilab/scilab/modules/ast/.libs/libsciast.so.6)
8: 0x1b6889 <StaticRunner::launch()> (/home/cardinot/scilab/scilab/modules/.libs/libscilab-cli.so.0)
9: 0x1b0b55 <RunScilabEngine> (/home/cardinot/scilab/scilab/modules/.libs/libscilab-cli.so.0)
10: 0x7f85 <main> (/home/cardinot/scilab/scilab/.libs/lt-scilab-bin)
11: 0x21ec5 <__libc_start_main> (/lib/x86_64-linux-gnu/libc.so.6)
12: 0x8677 < > (/home/cardinot/scilab/scilab/.libs/lt-scilab-bin)