[%t %t]./[%f %f] crashes Scilab
Reported by Stéphane MOTTELET (@mottelet)
BUG DESCRIPTION:
----------------
All operations are correctly overloaded for booleans, with an implicit cast to {0,1} set, e.g
--> %t/%f
ans =
Inf
but when vectors are divided element-wise:
--> [%t %t]./[%f %f]
A fatal error has been detected by Scilab.
Please check your user-defined functions (or external module ones) should they appear in the stack trace.
Otherwise 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:
[macmottelet-cr-0:47755] Signal: Floating point exception: 8 (8)
[macmottelet-cr-0:47755] Signal code: Integer divide-by-zero (7)
[macmottelet-cr-0:47755] Failing at address: 0x10445a29d
Call stack:
1: ? ? (?)
2: 0x204333 <_Z17GenericDotRDividePN5types12InternalTypeES1_> (/Users/mottelet/git/scilab_6.0/scilab/modules/ast/.libs/libsciast.6.dylib)
3: 0x1cf53 <_ZN3ast11RunVisitorTINS_11ExecVisitorEE12visitprivateERKNS_5OpExpE> (/Users/mottelet/git/scilab_6.0/scilab/modules/ast/.libs/libsciast.6.dylib)
4: 0x12390 <_ZN3ast11RunVisitorTINS_11ExecVisitorEE12visitprivateERKNS_6SeqExpE> (/Users/mottelet/git/scilab_6.0/scilab/modules/ast/.libs/libsciast.6.dylib)
5: 0x1265be <_ZN12StaticRunner6launchEv> (/Users/mottelet/git/scilab_6.0/scilab/modules/.libs/libscilab-cli.6.dylib)
6: 0x11f45a <RunScilabEngine> (/Users/mottelet/git/scilab_6.0/scilab/modules/.libs/libscilab-cli.6.dylib)
7: 0x1e0f <main> (/Users/mottelet/git/scilab_6.0/scilab/.libs/scilab-cli-bin)
8: 0x1015 <start> (/usr/lib/system/libdyld.dylib)
End of stack
OTHER INFORMATION:
------------------