如何在osx 10.5上调试此stdc ++崩溃

时间:2012-08-18 13:05:28

标签: c++ macos dylib

我有一个.dylib我构建用于集成为Adobe AIR本机库。代码在osx 10.6,10.7和10.8上运行得很好,但是我得知它在10.5上崩溃了。我似乎无法找到关于如何在Mountain Lion下运行10.5 VM的指令(实际上有效),以便我可以诊断它。有没有人遇到这样的崩溃?

Process:         AudioStretch [247]
Path:            /Applications/Speedshifter.app/Contents/Resources/assets/native/audioStretcher/AudioStretch
Identifier:      AudioStretch
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  Speedshifter [240]

Interval Since Last Report:          771 sec
Crashes Since Last Report:           4
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   4

Date/Time:       2012-08-15 15:56:24.047 +0100
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  19E6C7D0-BED3-47EF-BD79-4C93716A6EEA

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Symbol not found: __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i
  Referenced from: /Applications/Speedshifter.app/Contents/Resources/assets/native/audioStretcher/AudioStretch
  Expected in: /usr/lib/libstdc++.6.dylib

1 个答案:

答案 0 :(得分:0)

希望这会有所帮助:

> c++filt __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i
std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)

重新格式化以便于阅读:

std::ostream& std::__ostream_insert(std::ostream&, char const*, int)

基本上它说这个功能在10.5

的标准运行时中不可用

您可能必须为10.5提供替代版本的dll。您是否尝试过静态链接标准库?