#15025: Possible bug in pthread_attr_get_np
---------------------------+------------------------------
Reporter: miqlas | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: System/Kernel | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
---------------------------+------------------------------
Compiling ruby "miniruby" crashing on Haiku in pthread_attr_get_np
somewhere here:
https://github.com/ruby/ruby/blob/f1a52d96a59c63d46cb23af60cdcaf38e30e0512/thread_pthread.c#L636
For more information: https://bugs.ruby-lang.org/issues/15788 and
https://github.com/haikuports/haikuports/issues/3791
According to korli:
{{{
Looks like a bug in Haiku pthread_getattr_np.
For pthread_attr_get_np() attr should be initialized prior to the call by
using pthread_attr_init(3). pthread_getattr_np() does this
automatically.
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/15025>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.