[Bug 278551] pthread_join kills the process with a return code of 134
[email protected] Tue, 23 Apr 2024 13:48:23 +0000
| Newsgroups | gmane.os.freebsd.devel.threading |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278551
Bug ID: 278551
Summary: pthread_join kills the process with a return code of
134
Product: Base System
Version: 14.0-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: threads
Assignee: [email protected]
Reporter: [email protected]
Created attachment 250181
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D250181&action=
=3Dedit
Console Output
Code:
void* kernel(void* par) {
printf("kernel\n");
return NULL;
}
int main(int argc, const char* const* args){
pthread_t thread;
pthread_create(
&thread,
NULL,
kernel,
NULL
);
pthread_join(thread, NULL);
printf("FreeBSD RELEASE 14.0 doesn't reach here.\n");
return 0;
}
Console Output:
kernel
The code above demonstrates that the call to pthread_join() with valid
parameters terminates the program with a return code of 134.
I have not tested this issue on bare metal so I don't know if my assigned
severity level is valid.
I'm using FreeBSD RELEASE 14.0 running on Proxmox with an 8 Core x86_64 Int=
el
XEON chip.
My libraries work fine on Windows, MacOS, Linux, and OpenBSD. pthread_join(=
) is
the only thing causing problems on FreeBSD thus far. Everything else seems =
to
be functional.
--=20
You are receiving this mail because:
You are the assignee for the bug.=