BUG DESCRIPTION:
----------------
If opens a Scilab function with emacs and edit it (without saving it) and tries to execute genlib on its directory the bin files are created but scilab crashes when it tries to generate the lib file
ERROR LOG:
----------
--> genlib("foolib","foo",%t,%t)
-- Creation of [foolib] (Macros) --
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:
[peace:28535] Signal: Segmentation fault (11)
[peace:28535] Signal code: Address not mapped (1)
[peace:28535] Failing at address: (nil)
Call stack:
1: 0x73320 <_IO_feof> (/lib64/libc.so.6)
2: 0x1c49b9 <md5_file> (/home/steer/scilab-6.0.0-alpha-1/lib/scilab/libscilab-cli.so.0)
3: 0x333170 <sci_genlib(std::vector<types::InternalType*, std::allocator<types::InternalType*> >&, int, std::vector<types::InternalType*, std::allocator<types::InternalType*> >&)> (/home/steer/scilab-6.0.0-alpha-1/lib/scilab/libscilab-cli.so.0)
4: 0x34d0ac <types::Function::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::ba> (/home/steer/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
5: 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/steer/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
6: 0x163aeb <ast::RunVisitorT<ast::ExecVisitor>::visitprivate(ast::CallExp const&)> (/home/steer/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
7: 0x14c8d3 <ast::RunVisitorT<ast::ExecVisitor>::visitprivate(ast::SeqExp const&)> (/home/steer/scilab-6.0.0-alpha-1/lib/scilab/libsciast.so.6)
8: 0x1c4aed <Runner::launch(void*)> (/home/steer/scilab-6.0.0-alpha-1/lib/scilab/libscilab-cli.so.0)
HOW TO REPRODUCE THE BUG:
-------------------------
create a directory (foo for example) put in it a test.sci file with a simple function, open it with Emacs and modify it (without saving it)
then start Scilab6 and execute
genlib("foolib","foo",%t,%t)
OTHER INFORMATION:
------------------
It is important to fix this problem because it is hard to find.