From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CE053858D1E; Mon, 19 Jun 2023 19:48:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CE053858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687204114; bh=xYkwyeniWgp1vsf0KWlRqGNGAHaNS9laTeY/wznJpMU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Qekj0Ql0FBaXRaxTNnnyyAoJ2Flks1pcZ3FXeHphoUBubxa2tRnoKjIvsrG9KaRnd 2NHI9t5RdPN9f2pHfm83CASmVZd9WT1qCgGYLcSUBV/GXun9ksu2FFDmzQi24jqYQF pJ/AqGIj5UAmPv34NQ92mFXSrbfLY5a9s/mmg1Q4= From: "stsp at users dot sourceforge.net" To: glibc-bugs@sourceware.org Subject: [Bug libc/30558] SIGEV_THREAD is badly implemented Date: Mon, 19 Jun 2023 19:48:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stsp at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30558 --- Comment #10 from Stas Sergeev --- > I don't see any reentrancy issue with the current approach But there is. Its trivial to verify with your own test-case posted here. You just need to insert sleeps into the handler. Which is why I made the above quote from posix. It says explicitly that a detached thread is created in response to every timer expiration. So it explicitly allows reentrancy and deliberately breaks timer_getoverrun(), and glibc was following that very precisely. --=20 You are receiving this mail because: You are on the CC list for the bug.=