From owner-freebsd-bugs Mon Apr 1 7:10:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B41DB37B417 for ; Mon, 1 Apr 2002 07:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g31FA3h64842; Mon, 1 Apr 2002 07:10:03 -0800 (PST) (envelope-from gnats) Date: Mon, 1 Apr 2002 07:10:03 -0800 (PST) Message-Id: <200204011510.g31FA3h64842@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Gurusamy Sarathy Subject: Re: kern/36539: installing a SIGCHLD handler makes libc_r coredump Reply-To: Gurusamy Sarathy Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/36539; it has been noted by GNATS. From: Gurusamy Sarathy To: Maxim Konovalov Cc: Gurusamy Sarathy , bug-followup@freebsd.org Subject: Re: kern/36539: installing a SIGCHLD handler makes libc_r coredump Date: Mon, 01 Apr 2002 07:04:51 -0800 On Mon, 01 Apr 2002 18:16:52 +0400, Maxim Konovalov wrote: >> % cc -g -o sig sig.c >^^^^^^^^^^^^^^^^^^^^^^ > >Is this a typo? As far as I understand the subject it should be Oops, yes it's a cut-n-paste goof. Sorry about that. >% cc -g -o sig sig.c -pthread > >> % ./sig >> Fatal error '_pq_remove: Not in priority queue' at line ? in file /usr/src/l >ib/libc_r/uthread/uthread_priority_queue.c (errno = ?) >> Abort (core dumped) > >Anyway, I cannot reproduce the bug on 4.5-STABLE. Interesting. How long did you run it for? The problem does not always show up here right away, but on a reasonable fast box invariably coredumps within a minute. >$ rm -f sig >$ cc -g -o sig sig.c >$ ./sig >^C >$ rm -f sig >$ cc -g -o sig sig.c -pthread >$ ldd sig >sig: > libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28065000) > >$ ./sig >^C >$ uname -a >FreeBSD golf.macomnet.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Tue Mar 19 >18:55:07 MSK 2002 maxim@golf.macomnet.net:/usr/obj/usr/src/sys/GOLF i386 Thanks for checking. I'll try 4.5 next. Sarathy gsar@ActiveState.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message