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 <http://bugzilla.scilab.org/>.

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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

--
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

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to