[Scilab-users] Division of uint8 matrix by a double matrix => segfault in scilab-branch-6.0 ?
amonmayr at laas.fr
amonmayr at laas.fr
Mon Sep 10 15:34:24 CEST 2018
Le 10/09/2018 à 15:28, amonmayr at laas.fr a écrit :
> Le 10/09/2018 à 14:50, Stéphane Mottelet a écrit :
>> Le 10/09/2018 à 14:35, antoine.monmayrant at laas.fr a écrit :
>>> Hello,
>>>
>>>
>>> I think I found a bug in the current 6.0 branch:
>>>
>>> a=uint8(rand(2,2)*255);
>>> b=rand(2,2);
>>> //let's be sure not to divide by 0
>>> while or(b==0)
>>> b=rand(2,2);
>>> end
>>> //adios amigo: Segmentation fault (core dumped)
>>> a./b
>>>
>>> Dividing a uint8 matrix by a double matrix is always causing a
>>> segfault on my machine.
>>> Can you reproduce this bug on your machine?
>>> Does anyone know whether it's a known bug or not?
>>>
>>> I have found :
>>> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/bugzilla.scilab.org/show_bug.cgi?id=15716
>>> but it is not exactly the same (I don't do any division by zero,
>>> just element-wise division.
>>>
>>>
>>> Cheers,
>>>
>>>
>>> Antoine
>>>
>> Hello Antoine,
>>
>> Surely, this is a bug, but what type do you expect for the (eventual)
>> result ?
> I reported a bug: https://bugzilla.scilab.org/show_bug.cgi?id=15759
> Can some or you try my test script for your OS/scilab version?
> Weirdly enough, under scilab 5.5.2, there is no segfault, but scilab
> complains about a division by zero (whereas there is no division by
> zero).
Also, division (not element-wise division) gives a funny result, both
for 5.5.2 and the current master:
a=uint8(rand(2,2)*255);
b=rand(2,2);
//let's be sure not to divide by 0
while or(b==0)
b=rand(2,2);
end
//just a division :
// master and scilab-6.0 : Operator / : Error -1 not yet managed.
// 5.5.2 : !--error 26
// Too complex recursion! (recursion tables are full)
// at line 9 of function %i_r_i called by : ...
a/b
>
> Antoine
>>
>> S.
>>
>
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Antoine Monmayrant LAAS - CNRS
7 avenue du Colonel Roche
BP 54200
31031 TOULOUSE Cedex 4
FRANCE
Tel:+33 5 61 33 64 59
email : antoine.monmayrant at laas.fr
permanent email : antoine.monmayrant at polytechnique.org
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the users
mailing list