[Gambas-user] Elusive Gambas3 crashing bug

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Nov 12 19:25:39 CET 2010


More from GambasTester project....


A.

According to documentation these functions are same:
Debug Ang(-1, 1)
Debug ATan2(-1, 1)

2.35619449019235
-0.785398163397448

So, Atan2 seems to make errors.


B.

Cos(ACos(0.5)) = 0.5  and Tan(ATan(0.5)) = 0.5 are False!
Tan(ATan(0.5)) - 0.5 gives 1E-16, so this is seems to be precision problem.
Is this OK?


Jussi



On Fri, Nov 12, 2010 at 17:18, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:

>
> I will look at the log, but I don't understand what you did *exactly* to
>> get
>> the crash.
>>
>
> That is why I wrote "elusive"... I can't figure out what exactly causes
> this crash.
> But copy&paste this to IDE console;
>
> ? bin(rol(1073741784+ shl(9,2) + shr(24,3),X ),32)
>
> Then replace X with some random number and hit enter, example:
> ? bin(rol(1073741784+ shl(9,2) + shr(24,3),2 ),32)
> Normally you get;
> 11111111111111111111111111111100
> But sometimes you get crash.
> More usually crash occurs when you repeat this many times, and then click
> on editor.
>
> This is as far as I can isolated this problem right now.
>
> Jussi
>



More information about the User mailing list