ChakraCore: Pal thread handling crashes on latest Arch linux
On Arch linux CC crashes when starting a helper thread with the below stack trace, this crash was confirmed with both 1.11 and master and was likely introduced by changes in Arch linux rather than changes in CC:
#0 0x00007ffff510aef5 in raise () at /usr/lib/libc.so.6
#1 0x00007ffff50f4862 in abort () at /usr/lib/libc.so.6
#2 0x00007ffff514cf78 in __libc_message () at /usr/lib/libc.so.6
#3 0x00007ffff514cfaa in __libc_fatal () at /usr/lib/libc.so.6
#4 0x00007ffff4eca70c in __lll_lock_wait () at /usr/lib/libpthread.so.0
#5 0x00007ffff4ec35f0 in pthread_mutex_lock () at /usr/lib/libpthread.so.0
#6 0x00007ffff589847b in JsUtil::BackgroundJobProcessor::Run(JsUtil::ParallelThreadData*) () at /usr/lib/libChakraCore.so
#7 0x00007ffff589826a in JsUtil::BackgroundJobProcessor::StaticThreadProc(void*) () at /usr/lib/libChakraCore.so
#8 0x00007ffff56328ce in CorUnix::CPalThread::ThreadEntry(void*) () at /usr/lib/libChakraCore.so
#9 0x00007ffff4ec1299 in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007ffff51cd153 in clone () at /usr/lib/libc.so.6
(Issue reported by a friend - I don’t have a linux setup to verify with myself)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 30 (4 by maintainers)
I was able to build it with clang14, and it doesn’t appear to be crashing now.
@nic11 Use Windows
I’ve tried building with
--embed-icu
, but had no luck either. Though it links with an older version. Worth trying to specify the aame one Ubuntu 20.04 ships (66). I think I’ll try that sometime later