[RPL/2] did i found a bug ?

DEMAINE Benoit-Pierre benoit at demaine.info
Ven 12 Nov 01:32:22 CET 2010


On 10/11/10 20:33, BERTRAND Joel wrote:
>     Have you tried my patch ? I'm waiting for you to push this patch in
> main tree...

Before update:

dhp at uranus ~ $ rpl
+++RPL/2 (R) version 4.0.19 (Sunday 10/17/10, 18:25:38 CEST)
+++Copyright (C) 1989 to 2009, 2010 BERTRAND Joel

+++This is a free software with absolutely no warranty.
+++For details, type 'warranty'.

RPL/2> 100 1024* 50 *

2: 100
RPL/2> 100 1024 * 50 /
+++System : Memory allocation error [15088]
dhp at uranus ~ $

After:

dhp at uranus ~ $ rpl
+++RPL/2 (R) version 4.0.19 (Friday 11/12/10, 01:25:15 CET)
+++Copyright (C) 1989 to 2009, 2010 BERTRAND Joel

+++This is a free software with absolutely no warranty.
+++For details, type 'warranty'.

RPL/2> 100 1024* 50 *
+++Error : Syntax error [32019]
RPL/2> 100 1024 * 50 /

1: 2048
RPL/2> 100 1024 * 50 *

2: 2048
1: 5120000
RPL/2> exit
dhp at uranus ~ $

Works for me.

As it is obvious, i just did a typo; memory issues were very frequent in
some kernels on my box, but in less than one minute, i could see that THIS
error was very easy to reproduce. And app spécific. Thus, not 100% sure it
was RPL bug (or kernel).

Oh, sth else may look strange to you: rpl is for me an alias to "rpl -is"
^^ faster to type.


-- 
 >o_/ DEMAINE Benoit-Pierre (aka DoubleHP) http://benoit.demaine.info/
If computing were an exact science, IT engineers would'nt have work \_o<

"So all that's left, Is the proof that love's not only blind but deaf."
(FAKE TALES OF SAN FRANCISCO, Arctic Monkeys)


Plus d'informations sur la liste de diffusion RPL2