https://bugs.linaro.org/show_bug.cgi?id=1071

--- Comment #1 from Ola Liljedahl <[email protected]> ---
Reproduced on x86-64 with 32-bit build (compile with CFLAGS=-m32). Cannot be
reproduced on x86-64 with 64-bit build or on ARMv7a (32-bit build).

Bug found after debugging:
Current code (in platform/linux-generic/odp_timer.c):
timer_settime(&tp->timerid, 0, &ispec, NULL)

Correct code:
timer_settime(tp->timerid, 0, &ispec, NULL)
Note no "&" on the tp->timerid variable.

Compiler did not report an error because timer_t (the expected type of the
first parameter and the type of tp->timerid) is "void *" so any pointer type is
accepted (e.g. also "void **").

Not possible to understand why this code has worked for more than a year on
x86-64 and ARMv7a and possibly other architectures as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to