Ticket #49764: gdb-log-another-try.log

File gdb-log-another-try.log, 10.8 KB (added by ken-cunningham-webuse, 8 years ago)
Line 
1Starting program: /Users/Shared/libunwind_test/test_throw.libcxx.i386
2unable to read unknown load command 0x24
3unable to read unknown load command 0x26
4unable to read unknown load command 0x24
5unable to read unknown load command 0x26
6unable to read unknown load command 0x24
7unable to read unknown load command 0x26
8Reading symbols for shared libraries ++++. done
9
10Breakpoint 1, 0x00001da4 in main ()
11(gdb) step
12Single stepping until exit from function main,
13which has no line number information.
14unable to read unknown load command 0x24
15__cxa_allocate_exception (thrown_size=4) at ../src/cxa_exception.cpp:160
16160         size_t actual_size = cxa_exception_size_from_exception_thrown_size(thrown_size);
17(gdb)
18Current language:  auto; currently c++
19__cxxabiv1::cxa_exception_size_from_exception_thrown_size (size=4) at ../src/cxa_exception.cpp:76
2076          return size + sizeof (__cxa_exception);
21(gdb)
2276          return size + sizeof (__cxa_exception);
23(gdb)
24__cxa_allocate_exception (thrown_size=4) at ../src/cxa_exception.cpp:161
25161         __cxa_exception* exception_header = static_cast<__cxa_exception*>(do_malloc(actual_size));
26(gdb)
27__cxxabiv1::do_malloc (size=84) at ../src/cxa_exception.cpp:111
28111         void *ptr = std::malloc(size);
29(gdb)
30112         if (NULL == ptr) // if malloc fails, fall back to emergency stash
31(gdb)
32114         return ptr;
33(gdb)
34114         return ptr;
35(gdb)
36__cxa_allocate_exception (thrown_size=4) at ../src/cxa_exception.cpp:162
37162         if (NULL == exception_header)
38(gdb)
39164         std::memset(exception_header, 0, actual_size);
40(gdb)
41165         return thrown_object_from_cxa_exception(exception_header);
42(gdb)
43__cxxabiv1::thrown_object_from_cxa_exception (exception_header=0x300180) at ../src/cxa_exception.cpp:57
4457          return static_cast<void*>(exception_header + 1);
45(gdb)
4657          return static_cast<void*>(exception_header + 1);
47(gdb)
48__cxa_allocate_exception (thrown_size=4) at ../src/cxa_exception.cpp:165
49165         return thrown_object_from_cxa_exception(exception_header);
50(gdb)
510x00001dd9 in main ()
52(gdb)
53Single stepping until exit from function main,
54which has no line number information.
55unable to read unknown load command 0x24
56__cxa_throw (thrown_object=0x3001d0, tinfo=0x270908, dest=0) at ../src/cxa_exception.cpp:223
57223         __cxa_eh_globals *globals = __cxa_get_globals();
58(gdb)
59unable to read unknown load command 0x24
60__cxa_get_globals () at ../src/cxa_exception_storage.cpp:75
6175              __cxa_eh_globals* retVal = __cxa_get_globals_fast ();
62(gdb)
6378              if ( NULL == retVal ) {
64(gdb)
6580                              (std::calloc (1, sizeof (__cxa_eh_globals)));
66(gdb)
6779                  retVal = static_cast<__cxa_eh_globals*>
68(gdb)
6981                  if ( NULL == retVal )
70(gdb)
7183                  if ( 0 != pthread_setspecific ( key_, retVal ) )
72(gdb)
7385                 }
74(gdb)
7586              return retVal;
76(gdb)
7786              return retVal;
78(gdb)
79__cxa_throw (thrown_object=0x3001d0, tinfo=0x270908, dest=0) at ../src/cxa_exception.cpp:223
80223         __cxa_eh_globals *globals = __cxa_get_globals();
81(gdb)
82224         __cxa_exception* exception_header = cxa_exception_from_thrown_object(thrown_object);
83(gdb)
84__cxxabiv1::cxa_exception_from_thrown_object (thrown_object=0x3001d0) at ../src/cxa_exception.cpp:47
8547          return static_cast<__cxa_exception*>(thrown_object) - 1;
86(gdb)
8747          return static_cast<__cxa_exception*>(thrown_object) - 1;
88(gdb)
89__cxa_throw (thrown_object=0x3001d0, tinfo=0x270908, dest=0) at ../src/cxa_exception.cpp:224
90224         __cxa_exception* exception_header = cxa_exception_from_thrown_object(thrown_object);
91(gdb)
92226         exception_header->unexpectedHandler = std::get_unexpected();
93(gdb)
94unable to read unknown load command 0x24
95std::get_unexpected () at ../src/cxa_handlers.cpp:29
9629          return __sync_fetch_and_add(&__cxa_unexpected_handler, (unexpected_handler)0);
97(gdb)
9829          return __sync_fetch_and_add(&__cxa_unexpected_handler, (unexpected_handler)0);
99(gdb)
100__cxa_throw (thrown_object=0x3001d0, tinfo=0x270908, dest=0) at ../src/cxa_exception.cpp:226
101226         exception_header->unexpectedHandler = std::get_unexpected();
102(gdb)
103227         exception_header->terminateHandler  = std::get_terminate();
104(gdb)
105std::get_terminate () at ../src/cxa_handlers.cpp:54
10654          return __sync_fetch_and_add(&__cxa_terminate_handler, (terminate_handler)0);
107(gdb)
10854          return __sync_fetch_and_add(&__cxa_terminate_handler, (terminate_handler)0);
109(gdb)
110__cxa_throw (thrown_object=0x3001d0, tinfo=0x270908, dest=0) at ../src/cxa_exception.cpp:227
111227         exception_header->terminateHandler  = std::get_terminate();
112(gdb)
113228         exception_header->exceptionType = tinfo;
114(gdb)
115229         exception_header->exceptionDestructor = dest;
116(gdb)
117230         setExceptionClass(&exception_header->unwindHeader);
118(gdb)
119__cxxabiv1::setExceptionClass (unwind_exception=0x3001b0) at ../src/cxa_exception.cpp:80
12080          unwind_exception->exception_class = kOurExceptionClass;
121(gdb)
12281      }
123(gdb)
124__cxa_throw (thrown_object=0x3001d0, tinfo=0x270908, dest=0) at ../src/cxa_exception.cpp:231
125231         exception_header->referenceCount = 1;  // This is a newly allocated exception, no need for thread safety.
126(gdb)
127232         globals->uncaughtExceptions += 1;   // Not atomically, since globals are thread-local
128(gdb)
129234         exception_header->unwindHeader.exception_cleanup = exception_cleanup_func;
130(gdb)
131238         _Unwind_RaiseException(&exception_header->unwindHeader);
132(gdb)
133
134
135
136
137
138242         failed_throw(exception_header);
139(gdb)
140242         failed_throw(exception_header);
141(gdb)
142__cxxabiv1::failed_throw (exception_header=0x300180) at ../src/cxa_exception.cpp:148
143148         (void) __cxa_begin_catch(&exception_header->unwindHeader);
144(gdb)
145__cxa_begin_catch (unwind_arg=0x3001b0) at ../src/cxa_exception.cpp:384
146384         _Unwind_Exception* unwind_exception = static_cast<_Unwind_Exception*>(unwind_arg);
147(gdb)
148385         bool native_exception = isOurExceptionClass(unwind_exception);
149(gdb)
150__cxxabiv1::isOurExceptionClass (unwind_exception=0x3001b0) at ../src/cxa_exception.cpp:89
15189          return (unwind_exception->exception_class & get_vendor_and_language) ==
152(gdb)
15389          return (unwind_exception->exception_class & get_vendor_and_language) ==
154(gdb)
155__cxa_begin_catch (unwind_arg=0x3001b0) at ../src/cxa_exception.cpp:386
156386         __cxa_eh_globals* globals = __cxa_get_globals();
157(gdb)
158__cxa_get_globals () at ../src/cxa_exception_storage.cpp:75
15975              __cxa_eh_globals* retVal = __cxa_get_globals_fast ();
160(gdb)
16178              if ( NULL == retVal ) {
162(gdb)
16386              return retVal;
164(gdb)
16586              return retVal;
166(gdb)
167__cxa_begin_catch (unwind_arg=0x3001b0) at ../src/cxa_exception.cpp:393
168393                     static_cast<_Unwind_Exception*>(unwind_exception)
169(gdb)
170391                 cxa_exception_from_exception_unwind_exception
171(gdb)
172__cxxabiv1::cxa_exception_from_exception_unwind_exception (unwind_exception=0x3001b0) at ../src/cxa_exception.cpp:68
17368          return cxa_exception_from_thrown_object(unwind_exception + 1 );
174(gdb)
175__cxxabiv1::cxa_exception_from_thrown_object (thrown_object=0x3001d0) at ../src/cxa_exception.cpp:47
17647          return static_cast<__cxa_exception*>(thrown_object) - 1;
177(gdb)
17847          return static_cast<__cxa_exception*>(thrown_object) - 1;
179(gdb)
180__cxxabiv1::cxa_exception_from_exception_unwind_exception (unwind_exception=0x3001b0) at ../src/cxa_exception.cpp:68
18168          return cxa_exception_from_thrown_object(unwind_exception + 1 );
182(gdb)
183__cxa_begin_catch (unwind_arg=0x3001b0) at ../src/cxa_exception.cpp:390
184390         __cxa_exception* exception_header =
185(gdb)
186395         if (native_exception)
187(gdb)
188398             exception_header->handlerCount = exception_header->handlerCount < 0 ?
189(gdb)
190399                 -exception_header->handlerCount + 1 : exception_header->handlerCount + 1;
191(gdb)
192398             exception_header->handlerCount = exception_header->handlerCount < 0 ?
193(gdb)
194402             if (exception_header != globals->caughtExceptions)
195(gdb)
196404                 exception_header->nextException = globals->caughtExceptions;
197(gdb)
198405                 globals->caughtExceptions = exception_header;
199(gdb)
200406             }
201(gdb)
202407             globals->uncaughtExceptions -= 1;   // Not atomically, since globals are thread-local
203(gdb)
204411             return exception_header->adjustedPtr;
205(gdb)
206421     }
207(gdb)
208__cxxabiv1::failed_throw (exception_header=0x300180) at ../src/cxa_exception.cpp:149
209149         std::__terminate(exception_header->terminateHandler);
210(gdb)
211149         std::__terminate(exception_header->terminateHandler);
212(gdb)
213unable to read unknown load command 0x24
214std::__terminate (func=0x1ff210 <default_terminate_handler()>) at ../src/cxa_handlers.cpp:68
21568              func();
216(gdb)
217default_terminate_handler () at ../src/cxa_default_handlers.cpp:29
21829          __cxa_eh_globals* globals = __cxa_get_globals_fast();
219(gdb)
22030          if (globals)
221(gdb)
22232              __cxa_exception* exception_header = globals->caughtExceptions;
223(gdb)
22434              if (exception_header)
225(gdb)
22637                      reinterpret_cast<_Unwind_Exception*>(exception_header + 1) - 1;
227(gdb)
22836                  _Unwind_Exception* unwind_exception =
229(gdb)
23039                      (unwind_exception->exception_class   & get_vendor_and_language) ==
231(gdb)
23238                  bool native_exception =
233(gdb)
23441                  if (native_exception)
235(gdb)
23644                          unwind_exception->exception_class == kOurDependentExceptionClass ?
237(gdb)
23846                              exception_header + 1;
239(gdb)
24044                          unwind_exception->exception_class == kOurDependentExceptionClass ?
241(gdb)
24243                      void* thrown_object =
243(gdb)
24448                          static_cast<const __shim_type_info*>(exception_header->exceptionType);
245(gdb)
24647                      const __shim_type_info* thrown_type =
247(gdb)
24852                      size_t len = sizeof(buf);
249(gdb)
25053                      const char* name = __cxa_demangle(thrown_type->name(), buf, &len, &status);
251(gdb)
252std::type_info::name () at typeinfo:97
25397      #ifndef _LIBCPP_NONUNIQUE_RTTI_BIT
254(gdb)
255unable to read unknown load command 0x24
256
257Die: DW_TAG_<unknown> (abbrev = 104, offset = 280975)
258        has children: FALSE
259        attributes:
260                DW_AT_type (DW_FORM_ref4) constant ref: 237932 (adjusted)
261warning: Got an error handling event: "Dwarf Error: Cannot find type of die [in module /usr/lib/libc++abi.dylib]".
262(gdb)
263unable to read unknown load command 0x24
264
265Die: DW_TAG_<unknown> (abbrev = 104, offset = 280975)
266        has children: FALSE
267        attributes:
268                DW_AT_type (DW_FORM_ref4) constant ref: 237932 (adjusted)
269Dwarf Error: Cannot find type of die [in module /usr/lib/libc++abi.dylib]
270(gdb)
271unable to read unknown load command 0x24
272
273Die: DW_TAG_<unknown> (abbrev = 104, offset = 280975)
274        has children: FALSE
275        attributes:
276                DW_AT_type (DW_FORM_ref4) constant ref: 237932 (adjusted)
277
278- that error repeat many times until
279
280(gdb) continue
281Continuing.
282libc++abi.dylib: terminating with uncaught exception of type char const*
283unable to read unknown load command 0x24
284Die: DW_TAG_<unknown> (abbrev = 104, offset = 280975)
285        has children: FALSE
286        attributes:
287                DW_AT_type (DW_FORM_ref4) constant ref: 237932 (adjusted)