chakra-core / chakra-core/ChakraCore
generate release build symbol files on Mac
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hi...I am using 1.11.12 version of chakracore (on Mac). Initially I've created release version of dylib, but it is crashing occasionally **(even with 1.11.15 version)**. (Also tried with release builds provided under 1.11.12 version of ChakraCore). The crash report is as follows:
int JsUtil::BaseDictionary, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::Insert<(JsUtil::BaseDictionary, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::InsertOperations)0>(unsigned long const&, SourceContextInfo* const&) (@int JsUtil::BaseDictionary, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::Insert<(JsUtil::BaseDictionary, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::InsertOperations)0>(unsigned long const&, SourceContextInfo* const&):90) Js::ScriptContext::CreateSourceContextInfo(unsigned long, char16_t const*, unsigned long, Js::SimpleDataCacheWrapper*, char16_t const*, unsigned long) (@Js::ScriptContext::CreateSourceContextInfo(unsigned long, char16_t const*, unsigned long, Js::SimpleDataCacheWrapper*, char16_t const*, unsigned long):195) RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**) (@RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**):63) JsRun (@JsRun:99) JavascriptCore::jsLoop() (JavascriptCore.cpp:166) decltype(*(std::__1::forward(fp0)).*fp()) std::__1::__invoke(void (JavascriptCore::*&&)(), JavascriptCore*&&) (/Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4369) void std::__1::__thread_execute >, void (JavascriptCore::*)(), JavascriptCore*, 2ul>(std::__1::tuple >, void (JavascriptCore::*)(), JavascriptCore*>&, std::__1::__tuple_indices<2ul>) (/Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:342) void* std::__1::__thread_proxy >, void (JavascriptCore::*)(), JavascriptCore*> >(void*) (/Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:352) _pthread_start (@_pthread_start:36)
This crash doesn't happen with Test build type.
To fix the crash for release build type, I am trying to create release build with debug info? I tried to generate it using set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g"). To the extent I understood,
but it seems to be available with static builds only. Please correct me if I am wrong here.
Could anyone please suggest how to fix this error or please provide a way to get symbol file (for release version) to fix it.
Contributor guide
Assessment
This issue has not been assessed yet.