From owner-freebsd-alpha Sun Nov 19 11:50: 6 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 271D737B479 for ; Sun, 19 Nov 2000 11:50:04 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id eAJJo1707662 for ; Sun, 19 Nov 2000 13:50:01 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.0/8.9.3) id eAJJnZ807423 for alpha@freebsd.org; Sun, 19 Nov 2000 13:49:35 -0600 (CST) (envelope-from steve) Date: Sun, 19 Nov 2000 13:49:25 -0600 From: Steve Price To: alpha@freebsd.org Subject: thread problems on Alpha? Message-ID: <20001119134925.V62344@bonsai.knology.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I noticed a strange problem while building the gtk12 port on my Alpha box. I did some digging and below is the shortest program I can write that demonstrates the problem. root@alpha(/tmp)# cat foo.c #include int main (void) { system("echo Hello world"); return 0; } root@alpha(/tmp)# cc -g -o foo foo.c root@alpha(/tmp)# ./foo Hello world root@alpha(/tmp)# cc -g -pthread -o foo -D_THREAD_SAFE foo.c root@alpha(/tmp)# ./foo Hello world zsh: segmentation fault (core dumped) ./foo root@alpha(/tmp)# gdb ./foo foo.core GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alpha-unknown-freebsd"... Core was generated by `foo'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libc_r.so.4...done. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 0x1600c7c70 in _thread_kern_scheduler () from /usr/lib/libc_r.so.4 (gdb) where #0 0x1600c7c70 in _thread_kern_scheduler () from /usr/lib/libc_r.so.4 (gdb) quit Just curious if this is reproducible on anyone else's box before I dig deeper into the problem. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message