简体   繁体   English

如何在OSX 10.5上调试此STDC ++崩溃

[英]How to debug this stdc++ crash on osx 10.5

I have a .dylib I built for integrating as an Adobe AIR native library. 我有一个.dylib,我将其集成为Adobe AIR本机库。 The code runs great on osx 10.6, 10.7, and 10.8, but I've gotten reports that it's crashing on 10.5. 该代码可以在osx 10.6、10.7和10.8上很好地运行,但是我已经收到报告说它在10.5上崩溃了。 I can't seem to find instructions (that actually work) on how to get a 10.5 VM working under Mountain Lion so I can diagnose it. 我似乎找不到有关如何在Mountain Lion下运行10.5 VM的说明(实际上有效),因此我可以对其进行诊断。 Has anyone come across a crash like this before? 有人遇到过像这样的崩溃吗?

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

Hope this helps: 希望这可以帮助:

> 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)

Reformatting for easy reading: 重新格式化以便于阅读:

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

Basically it is saying this function is not available in the standard runtime in 10.5 基本上是说此功能在10.5的标准运行时中不可用

You may have to provide an alternative version of the dll for 10.5. 您可能必须为10.5提供dll的替代版本。 Have you tried statically linking against the standard libraries? 您是否尝试过静态链接到标准库?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM