This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Throwing an exception from within a thread causes a bus error
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Throwing an exception from within a thread causes a bus error
- From: "Jay Sillars" <jay dot sillars at spanlink dot com>
- Date: Mon, 31 Jan 2000 14:42:47 -0600
Hello,
I have a small program here that tries to throw an exception from within a
thread.
At the point where the exception is thrown I get a Bus Error.
I'm running on UnixWare 2.1.2 using g++ 2.95.2 and gas 2.9.1
Here is my g++ command line:
/usr/local/gnu/bin/g++ -g -v --save-temps -D_REENTRANT -fexceptions -o
ThrdExcp ThrdExcp.cpp -lthread
Any help you can give me will be greatly appreciated, If you need any
additional information please let me
know.
Thanks in advance
The ouput of this command along with a gzip ii file follow:
Reading specs from
/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2/cpp -lang-c++ -v -D_
_GN
UC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Di386 -Dunix -D__svr4
__ -
D__i386__ -D__unix__ -D__svr4__ -D__i386 -D__unix -Asystem(unix) -Asystem(sv
r4)
-Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -g -D_REENTRANT ThrdExcp.cpp
ThrdExcp
.ii
GNU CPP version 2.95.2 19991024 (release) (i386 System V Release 4)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/gnu/include/g++
/usr/local/gnu/include
/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2/../../../../i386-uni
vel
-sysv4.2MP/include
/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2/cc1plus
ThrdExcp.ii -qu
iet -dumpbase ThrdExcp.cc -g -version -fexceptions -o ThrdExcp.s
GNU C++ version 2.95.2 19991024 (release) (i386-univel-sysv4.2MP) compiled
by GN
U C version 2.95.2 19991024 (release).
/usr/local/gnu/i386-univel-sysv4.2MP/bin/as -V -Qy -o ThrdExcp.o ThrdExcp.s
GNU assembler version 2.9.1 (i386-univel-sysv4.2MP), using BFD version 2.9.1
/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2/collect2 -V -Y
P,/usr/c
cs/lib:/usr/lib -Qy -o ThrdExcp /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o
/usr/ccs
/lib/values-Xa.o
/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2/crtbegi
n.o -L/usr/local/gnu/lib/gcc-lib/i386-univel-sysv4.2MP/2.95.2 -L/usr/local/g
nu/i
386-univel-sysv4.2MP/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/gnu/lib
Thrd
Excp.o -lthread -lstdc++ -lm -lgcc -lc -lgcc
/usr/local/gnu/lib/gcc-lib/i386-uni
vel-sysv4.2MP/2.95.2/crtend.o /usr/ccs/lib/crtn.o
GNU ld version 2.9.1 (with BFD 2.9.1)
Supported emulations:
elf_i386
ThrdExcp.ii.gz