From owner-freebsd-bugs@FreeBSD.ORG Mon May 7 23:32:49 2007 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98FA716A400 for ; Mon, 7 May 2007 23:32:49 +0000 (UTC) (envelope-from ptroin@buzzlogic.com) Received: from ex14.myhostedexchange.com (ex14.myhostedexchange.com [69.50.2.20]) by mx1.freebsd.org (Postfix) with ESMTP id 494CE13C45E for ; Mon, 7 May 2007 23:32:49 +0000 (UTC) (envelope-from ptroin@buzzlogic.com) Received: from [10.1.5.73] ([64.127.105.60]) by ex14.myhostedexchange.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 7 May 2007 16:20:47 -0700 From: Philippe Troin To: freebsd-bugs@freebsd.org Content-Type: multipart/mixed; boundary="=-7RzG/DqDYRwKG1/DaB3v" Date: Mon, 07 May 2007 16:20:45 -0700 Message-Id: <1178580045.5372.4.camel@mica.fifi.org> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-2.fc5) X-OriginalArrivalTime: 07 May 2007 23:20:47.0453 (UTC) FILETIME=[57EC10D0:01C790FE] X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: SIGPROF and SIGVTALRM are not delivered to multi-threaded programs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 23:32:49 -0000 --=-7RzG/DqDYRwKG1/DaB3v Content-Type: text/plain Content-Transfer-Encoding: 7bit [I'm not subscribed to freebsd-bugs, please CC me on any replies] See attached program. Compile with: gcc -Wall -Wextra -o itimer-test itimer-test.c -lpthread Run without threads: ./itimer-test See that SIGPROF is delivered every few milliseconds. Run with threads: ./itimer-test 1 SIGPROF is never delivered, either to the main thread or the other thread. Note that changing to ITIMER_VIRTUAL/SIGVTALARM does not work either. ITIMER_REAL/SIGALRM seems to work though. Phil. --=-7RzG/DqDYRwKG1/DaB3v--