[Scilab-users] [EXTERNAL] Re: scilab 6.00 beta2 crash (feedback)

Carrico, Paul paul.carrico at esterline.com
Wed Sep 28 16:05:38 CEST 2016


Ok for bugzilla (sorry for that)

Nota :  k is a vector ..... at least in Scilab 5.5.4

EXPORT CONTROL :
Cet email ne contient pas de données techniques
This email does not contain technical data

De : users [mailto:users-bounces at lists.scilab.org] De la part de Paul Bignier
Envoyé : mercredi 28 septembre 2016 15:57
À : Users mailing list for Scilab
Objet : [EXTERNAL] Re: [Scilab-users] scilab 6.00 beta2 crash (feedback)




Hi Paul,

The line "k = [1:n]'.*.ones(n,1);" intends to produce a 50001x50001 (total 2.5 billion) matrix, which goes over the int32 limit of 2147483647 (2.147 billion), that provokes the inner sizes to wrap and become negative, leading to the crash.

If you try k = [1:n/2]'.*.ones(n/2,1); it will work but eat up your ram. If you try it a few times a message will say "Can not allocate 'XXX' MB memory." because it can still deal with such sizes.

So are you sure about what you want to do?

In the future when you get crashes, please report them on the bugzilla<https://urldefense.proofpoint.com/v2/url?u=http-3A__bugzilla.scilab.org_&d=DQMD-g&c=0hKVUfnuoBozYN8UvxPA-w&r=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo&m=H6mcS5tjsl64h14eEzr1mZ3dh6VLpl9do8_bq2DWILQ&s=5d-roj75J3VoA5OprGpyNJA3SfhZiZGqF1lXCP2jaV8&e=>.

Thank you,

Best regards,

Paul


On 09/28/2016 03:34 PM, Carrico, Paul wrote:
Hi all,

Here is a feedback of a crash of  scilab 6.00 beta2; I used the code here bellow on a 32 Go CentOS 7 machine.

Ligne 951 : 2650 Erreur de segmentation (core dumped)  ''$SCILABBIN'' ''$@''

t = [0:2e-5:1]';
n = size(t,"*");
X = zeros(n,1);
k = [1:n]'.*.ones(n,1);
m = ones(n,1).*.[1:n]';
nl = size(m,"*");
tmp = zeros(nl,1);

Paul

EXPORT CONTROL :
Cet email ne contient pas de données techniques
This email does not contain technical data





_______________________________________________

users mailing list

users at lists.scilab.org<mailto:users at lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users<https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.scilab.org_mailman_listinfo_users&d=DQMD-g&c=0hKVUfnuoBozYN8UvxPA-w&r=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo&m=H6mcS5tjsl64h14eEzr1mZ3dh6VLpl9do8_bq2DWILQ&s=dnJofXzj7NyZG7QXqcTSn30H7WkBPh5om0isqviRAb4&e=>



--

Paul BIGNIER

Development engineer

-----------------------------------------------------------

Scilab Enterprises

143bis rue Yves Le Coz - 78000 Versailles, France

Phone: +33.1.80.77.04.68

http://www.scilab-enterprises.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scilab-2Denterprises.com&d=DQMD-g&c=0hKVUfnuoBozYN8UvxPA-w&r=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo&m=H6mcS5tjsl64h14eEzr1mZ3dh6VLpl9do8_bq2DWILQ&s=sWu3WWE_ZcDi0mguC2OpFqOnGtk9yNIw3jkwFadEpQo&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160928/b38d6240/attachment.htm>


More information about the users mailing list