Under Linux 64 bits Debian, the following two lines causes a seg fault: int n
Reported by Sylvestre LEDRU
Originally assigned to Sylvestre LEDRU
-- Bug description --
Under Linux 64 bits Debian, the following two lines causes a seg fault:
int n=Name2where("toto");
printf("toto=%g\n",stk(n)[2]);
when used in Scilab with the two commands:
toto=13;
testbug();
This function is used by the overload module of Calixte.
-- Scilab error message --
The back trace if the following:
#0 0x00007fffe7c057ca in sci_bug () from /root/bug//libtestbug.so
#1 0x00007ffff5bbf991 in sci_gateway (fname=0x7fffe7c05944 "testbug",
F=0x7fffe7c0578e <sci_bug>) at src/c/mexlib.c:2065
#2 0x00007fffe7c058db in libtestbug_ () from /root/bug//libtestbug.so
-- How to reproduce the bug --
The 3 files shows how to reproduce the issue:
exec builder.sce;
exec loader.sce;
exec runme.sci
(or
toto=13;
testbug();
)