Summary: | dev-tcltk/thread-2.8.5 fails tests on MUSL | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | TCL/TK Project <tcltk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
2022-03-17 07:41:23 UTC
Created attachment 767222 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern: make: *** [Makefile:237: test] Segmentation fault I'm reproducing the segmentation fault with : #include <pthread.h> int result; void *start_routine(void *p1) { return NULL; } int main() { int result; pthread_t thread; pthread_attr_t attr; result = pthread_attr_init(&attr); result = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); result = pthread_create(&thread, &attr, start_routine, NULL); result = pthread_join(thread, NULL); } I suppose is a musl fault. Instead of crashing should return EINVAL The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39c12a97877f631adcc1301bc3ea6b8e09d3d9f4 commit 39c12a97877f631adcc1301bc3ea6b8e09d3d9f4 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2023-03-16 20:37:00 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2023-03-16 20:38:13 +0000 dev-tcltk/thread: remove non-standard test for thread join Closes: https://bugs.gentoo.org/835487 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> dev-tcltk/thread/files/thread-2.8.5-musl.patch | 18 ++++++++++++++++++ dev-tcltk/thread/thread-2.8.5.ebuild | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) |