0001-fix-musl-crash.patch 674 B

12345678910111213
  1. diff --git a/src/runtime/cgo/gcc_stack_unix.c b/src/runtime/cgo/gcc_stack_unix.c
  2. index 884281dc15..d80e017b89 100644
  3. --- a/src/runtime/cgo/gcc_stack_unix.c
  4. +++ b/src/runtime/cgo/gcc_stack_unix.c
  5. @@ -21,7 +21,7 @@ x_cgo_getstackbound(uintptr bounds[2])
  6. // Needed before pthread_getattr_np, too, since before glibc 2.32
  7. // it did not call pthread_attr_init in all cases (see #65625).
  8. pthread_attr_init(&attr);
  9. -#if defined(__GLIBC__) || (defined(__sun) && !defined(__illumos__))
  10. +#if 1
  11. // pthread_getattr_np is a GNU extension supported in glibc.
  12. // Solaris is not glibc but does support pthread_getattr_np
  13. // (and the fallback doesn't work...). Illumos does not.