From owner-freebsd-current Sun Jan 5 11: 8:23 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 C5DE037B401 for ; Sun, 5 Jan 2003 11:08:20 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 248EB43EA9 for ; Sun, 5 Jan 2003 11:08:20 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h05J8J1Z089695 for ; Sun, 5 Jan 2003 14:08:20 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sun, 5 Jan 2003 14:08:19 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: current@FreeBSD.org Subject: gdb: failed to set signal flags properly for ast() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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() 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() pid 709 (test), uid 0: exited on signal 10 (core dumped) pid 713 (test), uid 0: 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() It appears to happen frequently when running the previously posted "test" source code for -pthread under gdb. When running the test program outside of gdb, this doesn't happen, suggesting a possible interaction with ptrace. To trigger it the first time under gdb, I have to hit Ctrl-T, then type continue a few times. Under gdb, Ctrl-T appears to "sometimes" cause a sigbus; the rest of the time, it causes this warning to start being generated while the program continues. Once the warning has started to be generated, it gets generated about 12 times almost immediately, and then intermittently from then onwards. Source below. Compiled using -g, -Wall, -pthread. (so not KSE) Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories #include #include #include void * thread1(void *arg) { while (1) { /* sleep(2); */ pthread_yield(); printf("1\n"); } } void * thread2(void *arg) { sleep(1); while (1) { /* sleep(2); */ pthread_yield(); printf("2\n"); } } int main(int argc, char *argv[]) { pthread_t t1, t2; int error; error = pthread_create(&t1, NULL, thread1, NULL); error = pthread_create(&t2, NULL, thread2, NULL); error = pthread_join(t1, NULL); error = pthread_join(t2, NULL); return (0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message