Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/125.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 什么是;获取了一个错误处理事件:Dwarf错误:找不到模具类型;什么意思?_C++_Macos_C++11_Gdb_Macports - Fatal编程技术网

C++ 什么是;获取了一个错误处理事件:Dwarf错误:找不到模具类型;什么意思?

C++ 什么是;获取了一个错误处理事件:Dwarf错误:找不到模具类型;什么意思?,c++,macos,c++11,gdb,macports,C++,Macos,C++11,Gdb,Macports,我正在调试一个旧苹果PowerMacG5的挂起。该程序是C++11,它是使用MacPorts GCC 5.4创建的。MacPorts还提供调试器,即GDB 6.3 在调试器下,我看到: ... Catchpoint 1 (exception thrown). Catchpoint 1 (exception caught), throw location assert.cpp:33, catch location unknown, exception type Botan::Exception 0

我正在调试一个旧苹果PowerMacG5的挂起。该程序是C++11,它是使用MacPorts GCC 5.4创建的。MacPorts还提供调试器,即GDB 6.3

在调试器下,我看到:

...
Catchpoint 1 (exception thrown).
Catchpoint 1 (exception caught), throw location assert.cpp:33, catch location unknown, exception type Botan::Exception
0x009903ec      110           { ::operator delete(__p); }
(gdb) c
Continuing.
Util load/store ran 229 tests all ok
Util round_down ran 6 tests in 0.11 msec all ok
Util round_up ran 11 tests in 22.56 sec all ok
Die: DW_TAG_unspecified_type (abbrev = 3, offset = 247)
        has children: FALSE
        attributes:
                DW_AT_name (DW_FORM_string) string: "decltype(nullptr)"
warning: Got an error handling event: "Dwarf Error: Cannot find type of die [in module /Users/botan/libbotan-1.11.35.35.dylib]".
在上面这些之后,事情就悬而未决了。我可以按住CTRL+C键并继续,但我似乎在
\u Unwind\u RaiseException()
\u Unwind\u GetIPInfo()
中失败了

得到错误处理事件的原因是什么:“矮人错误:找不到模具类型”
的意思是什么


我发现了几个相关的问题,但它们不是很令人满意,也没有太多解释:

我似乎也无法得到一个像样的回溯:

(gdb) bt full
#0  0x009903ec in __cxa_throw () at ext/new_allocator.h:110
No symbol table info available.
Die: DW_TAG_unspecified_type (abbrev = 3, offset = 247)
        has children: FALSE
        attributes:
                DW_AT_name (DW_FORM_string) string: "decltype(nullptr)"
Dwarf Error: Cannot find type of die [in module /Users/botan/libbotan-1.11.35.35.dylib]

GDB 6.3的可能副本对于GCC 5.4来说非常古老。它是在2004年发布的,比C++11早7年。@ks1322-谢谢。请原谅我的无知……引用的问题也是消息“获得错误处理事件:“矮人错误:找不到模具类型”的原因吗?答案并没有讨论它。如果它与问题相关或部分相关,它似乎应该出现在答案中。我认为是的。可能“收到一个错误处理事件:“矮人错误:找不到模具类型”消息没有复制粘贴进去。但它看起来与您的问题非常相关,解决方案是将gdb升级到最新版本。