Actions
Bug #21679
openSegfault when ruby calls pthread_detach in rb_getnameinfo
Bug #21679:
Segfault when ruby calls pthread_detach in rb_getnameinfo
Description
We're seeing an issue on our servers running ruby 3.4.7 where we get a SEGV after ruby calls pthread_detach on a short-lived pthread that calls getaddrinfo. I believe it's related to this glibc bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19951. Our servers are using glibc version 2.39, which is from January 2024. This bug hasn't been fixed in glibc yet but I haven't been able to reproduce it on my Linux desktop.
Regardless, there's a simple workaround for it that avoids calling pthread_detach on the thread. My PR is here: https://github.com/ruby/ruby/pull/15142.
Thanks,
Luke
No data to display
Actions