BUG DESCRIPTION:
----------------
Matplot(%f) crashes scilab 6.0.
ERROR LOG:
----------
$ alphascilab
(process:31314): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
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:
[mypc:31314] Signal: Segmentation fault (11)
[mypc:31314] Signal code: Address not mapped (1)
[mypc:31314] Failing at address: (nil)
Call stack:
1: 0x914da6 <JVM_handle_linux_signal> (/home/myhome/softs/scilab-6.0.0-alpha-1/thirdparty/java//lib/amd64/server/libjvm.so)
2: 0x90b6f3 < > (/home/myhome/softs/scilab-6.0.0-alpha-1/thirdparty/java//lib/amd64/server/libjvm.so)
3: 0x10340 < > (/lib/x86_64-linux-gnu/libpthread.so.0)
4: 0x1499d0 < > (/lib/x86_64-linux-gnu/libc.so.6)
5: 0x6c2bfb < > (/home/myhome/softs/scilab-6.0.0-alpha-1/thirdparty/java//lib/amd64/server/libjvm.so)
6: 0x326e3 <org_scilab_modules_graphic_objects_builder::Builder::createGrayplot(JavaVM_*, int, int, double const*, int, int, int)> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libscigraphic_objects.so.6)
7: 0x3625c <createGrayplot> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libscigraphic_objects.so.6)
8: 0x79fac <ConstructGrayplot> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libscigraphics.so.6)
9: 0x867ea <xgray1_> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libscigraphics.so.6)
10: 0x7bdda <ObjmatplotImage> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libscigraphics.so.6)
11: 0x52531 <sci_matplot> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libscigraphics.so.6)
12: 0x34cfd8 <types::OptFunction::call(std::vector<types::InternalType*, std::allocator<types::InternalType*> >&, std::vector<std::pair<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, types::InternalType*>, std::allocator<std::pair<std:> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
13: 0x344a77 <types::Callable::invoke(std::vector<types::InternalType*, std::allocator<types::InternalType*> >&, std::vector<std::pair<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, types::InternalType*>, std::allocator<std::pair<std::> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
14: 0x163aeb <ast::RunVisitorT<ast::ExecVisitor>::visitprivate(ast::CallExp const&)> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
15: 0x14c8d3 <ast::RunVisitorT<ast::ExecVisitor>::visitprivate(ast::SeqExp const&)> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
16: 0x1c4aed <Runner::launch(void*)> (/home/myhome/softs/scilab-6.0.0-alpha-1/lib/scilab/libscilab-cli.so.0)
17: 0x8182 < > (/lib/x86_64-linux-gnu/libpthread.so.0)
18: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
19: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
20: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
21: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
22: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
23: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
24: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
25: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
26: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
27: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
28: 0xfa47d <clone> (/lib/x86_64-linux-gnu/libc.so.6)
2
HOW TO REPRODUCE THE BUG:
-------------------------
Matplot(%f)
OTHER INFORMATION:
------------------
It's a regression, as on scilab 5.x, Matplot(%f) generates an error message about the input not being of the right type