From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4428 invoked by alias); 13 Nov 2012 23:44:49 -0000 Received: (qmail 4398 invoked by uid 48); 13 Nov 2012 23:44:36 -0000 From: "tpiepho at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug nptl/10815] [timer_create / SIGEV_THREAD] signalmask of timer_sigev_thread dangerous Date: Tue, 13 Nov 2012 23:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tpiepho at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00115.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=10815 Trent Piepho changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tpiepho at gmail dot com --- Comment #2 from Trent Piepho 2012-11-13 23:44:35 UTC --- (In reply to comment #1) > The behavior is correct. You're relying on undefined behavior. Just don't do > it. This means it's impossible to use sigwait()/sigwaitinfo()/sigtimedwait() in the same process with a POSIX timer using SIGEV_THREAD. It would be much more useful if the helper thread had the same signal mask as the thread that originally called timer_create. That signal mask is already retrieved when the timer thread is created. If it were simply stored somewhere, then the helper thread could set its mask to that instead of an empty set. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.