Feb 24
[14 sengelha@dt]% cat test.cc ~/t
#include <string>
int main(void)
{
try
{
throw std::string("sigh");
}
catch (...)
{
// Do nothing
}
return 0;
}
[15 sengelha@dt]% g++ -g -o test test.cc ~/t
[16 sengelha@dt]% ./test ~/t
zsh: 24046 abort (core dumped) ./test
[17 sengelha@dt]% gdb ./test test.core < 134 > ~/t
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 "sparc64-unknown-openbsd3.5"...
Core was generated by `test'.
Program terminated with signal 6, Abort trap.
#0 0x43b7aa40 in ?? ()
(gdb) bt
#0 0x43b7aa40 in ?? ()
#1 0x102a84 in uw_init_context_1 (context=0xfffffffffffeedb0,
outer_cfa=0xfffffffffffef130, outer_ra=0x44208088)
at /usr/src/gnu/usr.bin/gcc/gcc/unwind-pe.h:77
#2 0x102e14 in _Unwind_RaiseException (exc=0x643d5c455b4a3a63)
at /usr/src/gnu/usr.bin/gcc/gcc/unwind-pe.h:77
#3 0x44208090 in ?? ()
#4 0x1012c4 in main () at test.cc:3
#5 0x101054 in ___start ()
(gdb) quit
The program is running. Quit anyway (and kill it)? (y or n) y
[18 sengelha@dt]% g++ --version ~/t
g++ (GCC) 3.3.2 (propolice)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[19 sengelha@dt]% uname -a ~/t
OpenBSD dt.xxxxxxx.xxx 3.5 GENERIC#123 sparc64
Such are the perils of running the fairly uncommon hardware/software combination of OpenBSD/sparc64. *sigh*
Recent Comments