[Gambas-user] Problem with gb.map
Benoît Minisini
benoit.minisini at gambas-basic.org
Wed Oct 18 18:49:12 CEST 2023
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.
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.
Regards,
--
Benoît Minisini.
More information about the User
mailing list