From owner-freebsd-current Sun Jan 5 11:32:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B67537B401; Sun, 5 Jan 2003 11:32:57 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5848043ED1; Sun, 5 Jan 2003 11:32:56 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h05JWoAS010200; Sun, 5 Jan 2003 20:32:50 +0100 (CET) (envelope-from phk@freebsd.org) To: Robert Watson Cc: current@freebsd.org Subject: Re: gdb: failed to set signal flags properly for ast() From: phk@freebsd.org In-Reply-To: Your message of "Sun, 05 Jan 2003 14:08:19 EST." Date: Sun, 05 Jan 2003 20:32:50 +0100 Message-ID: <10199.1041795170@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message , Robe rt Watson writes: > >While debugging the recent pthreads problem, I've started running into >this: > >pid 663 (test), uid 1000: exited on signal 10 (core dumped) >failed to set signal flags properly for ast() >failed to set signal flags properly for ast() >failed to set signal flags properly for ast() >failed to set signal flags properly for ast() >failed to set signal flags properly for ast() >failed to set signal flags properly for ast() I can't remember how I triggered this, but I have personally run with this patch for some time: (NB: Cut&Paste) Index: kern/subr_trap.c =================================================================== RCS file: /home/ncvs/src/sys/kern/subr_trap.c,v retrieving revision 1.239 diff -u -r1.239 subr_trap.c --- kern/subr_trap.c 28 Dec 2002 01:23:07 -0000 1.239 +++ kern/subr_trap.c 28 Dec 2002 09:05:22 -0000 @@ -74,6 +74,7 @@ { struct proc *p = td->td_proc; struct kse *ke = td->td_kse; + static int enough; CTR3(KTR_SYSC, "userret: thread %p (pid %d, %s)", td, p->p_pid, p->p_comm); @@ -84,7 +85,8 @@ mtx_lock_spin(&sched_lock); if (SIGPENDING(p) && ((p->p_sflag & PS_NEEDSIGCHK) == 0 || (td->td_kse->ke_flags & KEF_ASTPENDING) == 0)) - printf("failed to set signal flags properly for ast()\n"); + if (++enough < 10) + printf("failed to set signal flags properly for ast()\n"); mtx_unlock_spin(&sched_lock); PROC_UNLOCK(p); mtx_unlock(&Giant); -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message