http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55521



--- Comment #3 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-28 
22:16:25 UTC ---

I don't see the g++.dg/eh/cond1.C execution failures on x86_64 Fedora 15 so

this may well be darwin specific. In gdb, on x86_64 darwin12 this traces as...



# gdb ./cond1.exe                                                              

              GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug  5

03:00:42 UTC 2012)

Copyright 2004 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 "x86_64-apple-darwin"...Reading symbols for shared

libraries ...... done



(gdb) break main

Breakpoint 1 at 0x10000113b: file

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/g++.dg/eh/cond1.C,

line 21.

(gdb) r

Starting program:

/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/g++/cond1.exe 

Reading symbols for shared libraries +++++.................................

done



Breakpoint 1, main (argc=1, argv=0x7fff5fbff848) at

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/g++.dg/eh/cond1.C:21

21        (argc+1 ? has_destructor() : throw 0);

(gdb) s

has_destructor::~has_destructor (this=0x7fff5fbff77f) at

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/g++.dg/eh/cond1.C:10

10        ~has_destructor() { }

(gdb) 

main (argc=1, argv=0x7fff5fbff848) at

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/g++.dg/eh/cond1.C:22

22        CI((argc+1 ? throw 0 : has_destructor()));

(gdb) 

__cxa_allocate_exception (thrown_size=132) at

../../../../gcc-4.8-20121127/libstdc++-v3/libsupc++/eh_alloc.cc:102

102      ret = malloc (thrown_size);

(gdb) 

0x00000001000790da in dyld_stub_malloc () at

../../../../gcc-4.8-20121127/libstdc++-v3/libsupc++/eh_alloc.cc:204

204    __cxxabiv1::__cxa_free_dependent_exception

(gdb) 

0x00007fff8bd80878 in dyld_stub_binder ()

(gdb) 

Single stepping until exit from function dyld_stub_binder, 

which has no line number information.

0x00007fff8bd808a5 in misaligned_stack_error_entering_dyld_stub_binder ()

(gdb) 

Single stepping until exit from function

misaligned_stack_error_entering_dyld_stub_binder, 

which has no line number information.

0x00007fff8bd808e1 in dyld_stub_binder_ ()

(gdb) 

Single stepping until exit from function dyld_stub_binder_, 

which has no line number information.

0x00007fff8bd81f61 in _dyld_fast_stub_entry ()

(gdb) 

Single stepping until exit from function _Z21_dyld_fast_stub_entryPvl, 

which has no line number information.

0x00007fff5fc03fbd in __dyld__ZN4dyld18fastBindLazySymbolEPP11ImageLoaderm ()

(gdb) 

Single stepping until exit from function

__dyld__ZN4dyld18fastBindLazySymbolEPP11ImageLoaderm, 

which has no line number information.

0x00007fff8bd808ee in dyld_stub_binder_ ()

(gdb) 

Single stepping until exit from function dyld_stub_binder_, 

which has no line number information.

0x00007fff94c3bb7e in malloc ()

(gdb) 

Single stepping until exit from function malloc, 

which has no line number information.

__cxa_allocate_exception (thrown_size=132) at

../../../../gcc-4.8-20121127/libstdc++-v3/libsupc++/eh_alloc.cc:104

104      if (! ret)

(gdb) 

102      ret = malloc (thrown_size);

(gdb) 

104      if (! ret)

(gdb) 

132      __cxa_eh_globals *globals = __cxa_get_globals ();

(gdb) 

__cxa_get_globals () at

../../../../gcc-4.8-20121127/libstdc++-v3/libsupc++/eh_globals.cc:63

63    { return get_global(); }

(gdb) 

0x0000000100079254 in dyld_stub___emutls_get_address () at

../../../../gcc-4.8-20121127/libstdc++-v3/libsupc++/eh_alloc.cc:204

204    __cxxabiv1::__cxa_free_dependent_exception

(gdb) 

0x00007fff8bd80878 in dyld_stub_binder ()

(gdb) 

Single stepping until exit from function dyld_stub_binder, 

which has no line number information.

0x00007fff8bd808a5 in misaligned_stack_error_entering_dyld_stub_binder ()

(gdb) 

Single stepping until exit from function

misaligned_stack_error_entering_dyld_stub_binder, 

which has no line number information.

0x00007fff8bd808e1 in dyld_stub_binder_ ()

(gdb) 

Single stepping until exit from function dyld_stub_binder_, 

which has no line number information.

0x00007fff8bd81f61 in _dyld_fast_stub_entry ()

(gdb) 

Single stepping until exit from function _Z21_dyld_fast_stub_entryPvl, 

which has no line number information.

0x00007fff5fc03fbd in __dyld__ZN4dyld18fastBindLazySymbolEPP11ImageLoaderm ()

(gdb) 

Single stepping until exit from function

__dyld__ZN4dyld18fastBindLazySymbolEPP11ImageLoaderm, 

which has no line number information.

0x00007fff8bd808ee in dyld_stub_binder_ ()

(gdb) 

Single stepping until exit from function dyld_stub_binder_, 

which has no line number information.

__emutls_get_address (obj=0x1000bc520) at

../../../gcc-4.8-20121127/libgcc/emutls.c:128

128    {

(gdb) 

Current language:  auto; currently c

139      pointer offset = obj->loc.offset;

(gdb) 

141      if (__builtin_expect (offset == 0, 0))

(gdb) 

700        return __gthrw_(pthread_once) (__once, __func);

(gdb) 

0x0000000102bfb42a in dyld_stub_pthread_once ()

(gdb) 

Single stepping until exit from function dyld_stub_pthread_once, 

which has no line number information.



Program received signal EXC_BAD_ACCESS, Could not access memory.

Reason: KERN_INVALID_ADDRESS at address: 0x00000000ffd27000

0x00000000ffd27000 in ?? ()

(gdb) 

Cannot access memory at address 0xffd27000

Cannot find bounds of current function

(gdb)

Reply via email to