[LTP] [PATCH v2] openposix: timer_*/speculative: Handle SIGSEGV on invalid timer ID
Cyril Hrubis
chrubis@suse.cz
Tue Sep 29 14:00:46 CEST 2026
Hi!
> I'm not sure if the approach of creating bogus timer_t is a good idea anyway.
> Shouldn't be just some timer_t tid set to invalid value? That would IMHO be
> less awkward solution.
There is no documented invalid value. It's a opaque handle we get from
libc and different versions of libc interpret the value differently.
Sometimes it's a pointer, sometimes it is not and we have no idea what
it is until we try to pass it to the timer functions.
So choosing safe enough safe value and handling SIGSEGV is probably the
best we can do.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list