the test bug_4603 from compatibility function modules makes scilab hangs
Reported by Yann COLLETTE
-- Bug description --
the test bug_4603 from compatibility function modules makes scilab hangs
-- Scilab error message --
(gdb) where
#0 asciitocode_ (n=0xbf8c5d00, line=0xb25f20b0, str=0xb25f20b0 "\n",
flagx=0xb751c260, str_len=1072693248) at src/c/cvstr.c:81
#1 0xb7506806 in cvstr1_ (n=0xbf8c5d00, line=0xb25f20b0,
str=0xa <Address 0xa out of bounds>, job=0xbf8c5cfc, str_len=1072693247)
at src/c/cvstr.c:33
#2 0xb7e4c462 in putlhsvar_ () at src/c/stack2.c:2901
#3 0xb7e898f7 in sci_funcprot_ (fname=0xb7e9b3d2 "funcprot", fname_len=8)
at sci_gateway/c/sci_funcprot.c:83
#4 0xb7e5742d in callFunctionFromGateway (Tab=0xb7e9fa80, sizeTab=56)
at src/c/callFunctionFromGateway.c:44
#5 0xb7e8db77 in gw_core () at sci_gateway/c/gw_core.c:95
#6 0xb7e45ffa in callinterf_ (k=0xb7ee06d0) at src/c/callinterf.c:152
#7 0xb7e5411c in scirun_ (
startupCode=0x969a460 "exec('SCI/etc/scilab.start',-1);;",
startupCode_len=33) at src/c/scirun.c:131
#8 0xb7e3fffa in realmain (no_startup_flag_l=0, initial_script=0x0,
initial_script_type=SCILAB_SCRIPT, memory=8000000) at src/c/realmain.c:143
#9 0x08048bbc in main (argc=3, argv=0xbf8c5fd4)
at ./modules/shell/src/c/others/mainscic.c:173
-- How to reproduce the bug --
exec SCI/modules/compatibility_functions/tests/nonreg_tests/bug_4603.tst