From owner-freebsd-threads@FreeBSD.ORG Sun Jun 3 19:28:43 2007 Return-Path: X-Original-To: freebsd-threads@FreeBSD.org Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38DD416A468 for ; Sun, 3 Jun 2007 19:28:43 +0000 (UTC) (envelope-from jylefort@FreeBSD.org) Received: from host-212-68-244-81.brutele.be (host-212-68-244-81.brutele.be [212.68.244.81]) by mx1.freebsd.org (Postfix) with ESMTP id 808CE13C46C for ; Sun, 3 Jun 2007 19:28:42 +0000 (UTC) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 32F0454FB for ; Sun, 3 Jun 2007 21:09:39 +0200 (CEST) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id EAD4B2D for ; Sun, 3 Jun 2007 21:09:38 +0200 (CEST) Date: Sun, 3 Jun 2007 21:09:30 +0200 From: Jean-Yves Lefort To: freebsd-threads@FreeBSD.org Message-Id: <20070603210930.8fae0082.jylefort@FreeBSD.org> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__3_Jun_2007_21_09_31_+0200_fShs=DO27a0.A+ir" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: broken signal handling X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 19:28:43 -0000 --Signature=_Sun__3_Jun_2007_21_09_31_+0200_fShs=DO27a0.A+ir Content-Type: multipart/mixed; boundary="Multipart=_Sun__3_Jun_2007_21_09_30_+0200_G=2o4AZVwFiBbXiw" --Multipart=_Sun__3_Jun_2007_21_09_30_+0200_G=2o4AZVwFiBbXiw Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit When a stack overflow occurs, signal handlers are not run (6.2): libpthread: $ cc -pthread -o test test.c $ ./test Bus error: 10 (core dumped) $ ./test thread Segmentation fault: 11 (core dumped) libthr: $ cc -lthr -o test test.c $ ./test signal 10 occurred $ ./test thread Illegal instruction: 4 (core dumped) As you can see, the appropriate signal handler is only run with libthr, provided the stack overflow occurs in the main thread. I don't know what POSIX has to say on this, but it would nevertheless be desirable to fix the problem. FYI, it works on Linux 2.6.9. -- Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Multipart=_Sun__3_Jun_2007_21_09_30_+0200_G=2o4AZVwFiBbXiw-- --Signature=_Sun__3_Jun_2007_21_09_31_+0200_fShs=DO27a0.A+ir Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGYxHyyzD7UaO4AGoRAlqPAJ4mm1NKxPzHBSqDv6By4bn81lr0QgCbBoNl aXwCqsSd/dHOZMPMCrmjvPw= =IHlS -----END PGP SIGNATURE----- --Signature=_Sun__3_Jun_2007_21_09_31_+0200_fShs=DO27a0.A+ir-- From owner-freebsd-threads@FreeBSD.ORG Mon Jun 4 11:08:51 2007 Return-Path: X-Original-To: freebsd-threads@FreeBSD.org Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B170C16A400 for ; Mon, 4 Jun 2007 11:08:51 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 8D94013C4AD for ; Mon, 4 Jun 2007 11:08:51 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l54B8pE2037684 for ; Mon, 4 Jun 2007 11:08:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l54B8oCu037680 for freebsd-threads@FreeBSD.org; Mon, 4 Jun 2007 11:08:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Jun 2007 11:08:50 GMT Message-Id: <200706041108.l54B8oCu037680@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 11:08:51 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s threa/76690 threads fork hang in child for -lc_r 1 problem total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/20016 threads pthreads: Cannot set scheduling timer/Cannot set virtu s threa/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket o s threa/24632 threads libc_r delicate deviation from libc in handling SIGCHL s bin/32295 threads pthread dont dequeue signals s threa/34536 threads accept() blocks other threads o kern/38549 threads the procces compiled whith pthread stopped in pthread_ s threa/39922 threads [threads] [patch] Threaded applications executed with s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/49087 threads Signals lost in programs linked with libc_r s kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOC o threa/70975 threads unexpected and unreliable behaviour when using SYSV se o threa/72429 threads threads blocked in stdio (fgets, etc) are not cancella o threa/72953 threads fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYST o threa/75273 threads FBSD 5.3 libpthread (KSE) bug o threa/75374 threads pthread_kill() ignores SA_SIGINFO flag s threa/76694 threads fork cause hang in dup()/close() function in child (-l o threa/79683 threads svctcp_create() fails if multiple threads call at the o threa/80435 threads panic on high loads o threa/83914 threads [libc] popen() doesn't work in static threaded program s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/85160 threads [libthr] [patch] libobjc + libpthread/libthr crash pro f threa/90278 threads libthr, ULE and -current produces >100% WCPU with apac o kern/91266 threads [threads] Trying sleep, but thread marked as sleeping s threa/94467 threads send(), sendto() and sendmsg() are not correct in libc f threa/98256 threads gnome-system-monitor core dumps from pthread_testcance s threa/100815 threads FBSD 5.5 broke nanosleep in libc_r o threa/101323 threads fork(2) in threaded programs broken. o threa/103975 threads Implicit loading/unloading of libpthread.so may crash o threa/110636 threads gdb(1): using gdb with multi thread application with l 29 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/19247 threads uthread_sigaction.c does not do anything wrt SA_NOCLDW s kern/22190 threads A threaded read(2) from a socketpair(2) fd can sometim s threa/30464 threads pthread mutex attributes -- pshared s threa/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wra s threa/40671 threads pthread_cancel doesn't remove thread from condition qu s threa/69020 threads pthreads library leaks _gc_mutex o threa/79887 threads [patch] freopen() isn't thread-safe o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/81534 threads [libc_r] [patch] libc_r close() will fail on any fd ty o threa/110306 threads apache 2.0 segmentation violation when calling gethost 10 problems total. From owner-freebsd-threads@FreeBSD.ORG Fri Jun 8 11:19:16 2007 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1542D16A46C; Fri, 8 Jun 2007 11:19:16 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id DDC8713C46C; Fri, 8 Jun 2007 11:19:15 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l58BJFdx079183; Fri, 8 Jun 2007 11:19:15 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l58BJF3v079179; Fri, 8 Jun 2007 11:19:15 GMT (envelope-from gavin) Date: Fri, 8 Jun 2007 11:19:15 GMT From: Gavin Atkinson Message-Id: <200706081119.l58BJF3v079179@freefall.freebsd.org> To: robertjenssen@ozemail.com.au, gavin@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/98256: gnome-system-monitor core dumps from pthread_testcancel X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 11:19:16 -0000 Synopsis: gnome-system-monitor core dumps from pthread_testcancel State-Changed-From-To: feedback->closed State-Changed-By: gavin State-Changed-When: Fri Jun 8 11:18:53 UTC 2007 State-Changed-Why: Feedback timeout (12 months) http://www.freebsd.org/cgi/query-pr.cgi?pr=98256