From nobody Tue Apr 23 13:48:23 2024 X-Original-To: threads@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VP3Nm0FyVz5HHTr for ; Tue, 23 Apr 2024 13:48:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VP3Nl5QYQz4mSN for ; Tue, 23 Apr 2024 13:48:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713880103; a=rsa-sha256; cv=none; b=Vtwq8MPW8UJqaapoW1DM36wvmUCJf4jhpYQ0UvhcC+C20O7lRKc5WBwEJ0331s3YUHYKMa avaGaxC+7DGJJ4pxUSoFvtJzO6gKGN4QqHLN3wG2h2tH5ah6PZaE7TBDZY0LdAKTgEMP6R D8jPCyWDNpChUaKpcINdOxNKBkQfaPDrlw3aiEBBny4qwwFIZkfAC6WtJYqgSeJvLJBok0 1Iz8mSJcBLQvFuoZnRJbfV8HhPIe3dOto8D+kJsRFwKjAiyZCe1IUGPleC1oTJ/eyTI5s3 j1qN9JjY+4KNcmq3Sk8N8CVM0y7sdmx9+PU/FZFlgdN4CSlma4CCOP5CdxIPkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713880103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6hxK8qQggXJJdbUDD9S5LBrckaI4w//Tm9LWOhBmqI4=; b=HafHRxgdwhvBDITDTDUMYlZLy7cfvejP8eWGh5be3VKsPQnQQ/OBtAsPKOWUoCVrV4Ml7T 1C8ngX8VDfM8sJgbTG6L/JfvVswo6dVvpUdf3RNW0UviTI949zkZKu7XsSKGv35hZRwxQU BQSQo5XNYXkd4A/D5mmu7uVweXyFYheDYPHqRvcyjt1AQjGY+dkPwrNMt2cmJToHHT/y5/ S1ZF4Q4XyBZC9XXdY1u+lmCKLtIW+Rj3GtngPFIdVbO1V6gNsIYvdbL0oZYudidQXWD1xR PGUAeNjhbR3KxX/liJyDrAMM5TvgFY1UPm0qQa+V25VVYQhCYsXmXUlS1mfFvg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VP3Nl4rRZzYqj for ; Tue, 23 Apr 2024 13:48:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43NDmNlu087147 for ; Tue, 23 Apr 2024 13:48:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43NDmNqD087146 for threads@FreeBSD.org; Tue, 23 Apr 2024 13:48:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 278551] pthread_join kills the process with a return code of 134 Date: Tue, 23 Apr 2024 13:48:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mohammedgoder@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-threads@freebsd.org Sender: owner-freebsd-threads@FreeBSD.org MIME-Version: 1.0 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: threads@FreeBSD.org Reporter: mohammedgoder@gmail.com 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.=