Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835487 - dev-tcltk/thread-2.8.5 fails tests on MUSL
Summary: dev-tcltk/thread-2.8.5 fails tests on MUSL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-17 07:41 UTC by Agostino Sarubbo
Modified: 2023-03-16 20:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,49.89 KB, text/plain)
2022-03-17 07:41 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-17 07:41:23 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-tcltk/thread-2.8.5 fails tests on MUSL.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-17 07:41:25 UTC
Created attachment 767222 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-17 07:41:26 UTC
Error(s) that match a know pattern:


make: *** [Makefile:237: test] Segmentation fault
Comment 3 Tupone Alfredo gentoo-dev 2023-03-16 20:18:12 UTC
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
Comment 4 Larry the Git Cow gentoo-dev 2023-03-16 20:38:33 UTC
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(-)