[Gambas-user] Problem with gb.map
Fabien Bodard
gambas.fr at gmail.com
Wed Oct 18 18:59:53 CEST 2023
Le mer. 18 oct. 2023 à 18:50, Benoît Minisini <
benoit.minisini at gambas-basic.org> a écrit :
> Le 17/10/2023 à 16:11, vuott--- via User a écrit :
> > Hello,
> > launching any project using the "gb.map" Component, I get this error
> > report in the console:
> >
> > gb.jit: error: unable to compile JIT code of 'gb.map':
> >
> > In file included from /tmp/gambas.1000/10572/jit/gb.map.c:1:
> > /tmp/gambas.1000/10572/jit/gb.map.c: In function ‘jit_geo_2_’:
> > /tmp/gambas.1000/10572/jit/gb.map.c:57:430: error: stray ‘\363’ in
> > program
> > 57 | ({PUSH_f((floor((MATH_MUL_UNSAFE(double, (({double _a =
> > (MATH_SUB_UNSAFE(double, 1, (({double _a =
> > CALL_MATH(__builtin_log((MATH_ADD_UNSAFE(double,
> > CALL_MATH(__builtin_tan(CALL_MATH(((GET_f(ADDR(p0) + 16)) * M_PI /
> > 180)))), (({double _a = ((double)(1)); double _b =
> > CALL_MATH(__builtin_cos(CALL_MATH(((GET_f(ADDR(p0) + 16)) * M_PI /
> > 180)))); _a /= _b; if (!isfinite(_a)) THROW_PC(E_ZERO, 36); _a;}))))));
> > double _b = CALL_MATH(
> >
>
> OK, I found the cause: The Pi() function bytecode changed, and I forgot
> to update the JIT compiler.
>
haa ok :)
>
> It's fixed in the last commit, you have to wait for tomorrow to get an
> update Daily PPA.
>
> Then we will see if it really fixes the crash.
>
> Otherwise I don't understand why valgrind did not detect anything
> whereas an array was accessed out of its bounds.
>
strange
>
> Regards,
>
> --
> Benoît Minisini.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
--
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231018/8bc6945c/attachment.htm>
More information about the User
mailing list