[LTP] [PATCH v2] openposix: timer_*/speculative: Handle SIGSEGV on invalid timer ID

Petr Vorel pvorel@suse.cz
Tue Sep 29 14:16:13 CEST 2026


Hi Cyril,

> 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.

Thanks for correcting me, fair enough. I guess we don't bother with factoring
out function into include/.

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Will you add your RBT/ABT?

Kind regards,
Petr


More information about the ltp mailing list