From owner-freebsd-questions Sun Mar 9 6:25: 9 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E800E37B404 for ; Sun, 9 Mar 2003 06:25:07 -0800 (PST) Received: from hardtime.linuxman.net (hardtime.linuxman.net [66.147.26.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF14E43FB1 for ; Sun, 9 Mar 2003 06:25:06 -0800 (PST) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (localhost [127.0.0.1]) by hardtime.linuxman.net (8.11.6/8.11.6) with ESMTP id h29FVT511174 for ; Sun, 9 Mar 2003 09:31:30 -0600 Received: by mortis.over-yonder.net (Postfix, from userid 100) id 17AE520F3C; Sun, 9 Mar 2003 08:25:03 -0600 (CST) Date: Sun, 9 Mar 2003 08:25:02 -0600 From: "Matthew D. Fuller" To: questions@freebsd.org Subject: Signal-related kernel messages on threaded processes? Message-ID: <20030309142502.GL39313@over-yonder.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i-fullermd.1 X-Editor: vi X-OS: FreeBSD Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG So, I'm working on a small threaded program here, and I get these: ---- Mar 9 07:39:53 mortis kernel: failed to set signal flags properly for ast() Mar 9 07:39:53 mortis kernel: failed to set signal flags properly for ast() Mar 9 07:42:21 mortis last message repeated 3 times Mar 9 07:51:00 mortis last message repeated 26 times ---- I _think_ (based on times) they're related to running the programs in gdb, though it's possible I got some when I was running it by itself. My system is: FreeBSD 5.0-CURRENT #0: Wed Jan 8 18:46:11 CST 2003 I've tracked it down to sys/kern/subr_trap.c:87, which looks like: ---- 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"); ---- inside #ifdef INVARIANTS, but that starts to lose me in details of housekeeping structs for procs/threads. This _is_ just using libc_r, not libkse, so the KSE tests wouldn't apply, right? What should I be doing in the program that I'm not to avoid that message? Or does it actually not really mean anything for my process, and is all kernel-related? -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message