Rebuilding the glibc 2.42 on the latest toolchain still yields errors. So I'm now leaning toward mozjs being incorrect (and lucky so far). Especially now that I see how they wrap structures. making pthread_mutex_t and pthread_cond_t as an opaque array seems like a wrong approach when requiring pointer alignment.
e.g. https://git.launchpad.net/ubuntu/+source/mozjs140/tree/mozglue/misc/PlatformMutex.h#n52 #if !defined(XP_WIN) && !defined(__wasi__) void* platformData_[sizeof(pthread_mutex_t) / sizeof(void*)]; static_assert(sizeof(pthread_mutex_t) / sizeof(void*) != 0 && sizeof(pthread_mutex_t) % sizeof(void*) == 0, "pthread_mutex_t must have pointer alignment"); #else void* platformData_[6]; #endif -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2144310 Title: glibc 2.43-2ubuntu1 appears to cause mozjs to segfault on armhf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2144310/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
