[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

throw() causing core dumps on sparc



Hello,

The problem I'm having here has been persistent
whether I've upgraded from source or snapshots.
I've also tried both GENERIC and SUN4M kernels.
The machine itself is an SS5.


I'm assuming it's a problem with the c++ libraries or my toolchain.
Which have been sucessfully upgraded as part of make build several times.
I've tried a couple of precompiled sparc packages for a couple of c++
programs (devtodo & maildrop). And the backtrace from them looks like
the one below.



/tmp % cat test.cc
#include <cstdio>

int main(void) {

try {
 printf("blah\n");
 throw("foo\n");
}
catch(const char *p) {
        printf("%s\n");
}
exit(0);

}
/tmp % g++ -g3 -o test test.cc
/tmp % gdb ./test
warning: failed to install memory consistency checks; configuration should define NO_MMCHECK or MMCHECK_FORCE
GNU gdb 4.16.1
Copyright 1996 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 "sparc-unknown-openbsd3.2"...
(gdb) run
Starting program: /tmp/./test
blah

Program received signal SIGABRT, Aborted.
0x850cbf4 in abort ()
(gdb) bt
#0  0x850cbf4 in abort ()
#1  0x8244af3 in __rethrow (index=0x8520810)
#2  0x8244b1b in __terminate ()
#3  0x824560f in __throw ()
#4  0x106e7 in main () at test.cc:7
#5  0x105b3 in ___start ()
(gdb) quit
The program is running.  Quit anyway (and kill it)? (y or n) y
/tmp %



Visit your host, monkey.org