Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 2000 13:49:25 -0600
From:      Steve Price <sprice@hiwaay.net>
To:        alpha@freebsd.org
Subject:   thread problems on Alpha?
Message-ID:  <20001119134925.V62344@bonsai.knology.net>

next in thread | raw e-mail | index | archive | help
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 <stdlib.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001119134925.V62344>