Repository navigation
Fix crash when running hhvm --modules - #9589
Closed
mszabo-wikia wants to merge 1 commit into
Closed
mszabo-wikia wants to merge 1 commit into
mszabo-wikia wants to merge 1 commit into
Conversation
Initialize RDS locals before attempting to use the MemoryManager, otherwise `hhvm --modules` segfaults: ``` * thread #1, name = 'hhvm', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x1448) frame #0: 0x0000000000bac347 hhvm`HPHP::MemoryManager::MemoryManager() [inlined] HPHP::rds::local::RDSLocal<HPHP::RequestLocalGCData, (HPHP::rds::local::Initialize)1, HPHP::rds::local::detail::LocalsStorage>::getCheck(this=<unavailable>) const at rds-local.h:462:7 459 template<typename T, Initialize Init, typename StorageT> 460 T* RDSLocal<T, Init, StorageT>::getCheck() const { 461 assertx(detail::rl_hotSection.rdslocal_base); -> 462 if (!node().has_value()) { 463 const_cast<RDSLocal*>(this)->create(); 464 } 465 rehInit(); (lldb) bt * thread #1, name = 'hhvm', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x1448) * frame #0: 0x0000000000bac347 hhvm`HPHP::MemoryManager::MemoryManager() [inlined] HPHP::rds::local::RDSLocal<HPHP::RequestLocalGCData, (HPHP::rds::local::Initialize)1, HPHP::rds::local::detail::LocalsStorage>::getCheck(this=<unavailable>) const at rds-local.h:462:7 frame #1: 0x0000000000bac336 hhvm`HPHP::MemoryManager::MemoryManager(this=0x00007ffff2521d28) at memory-manager.cpp:119:13 frame meta#2: 0x0000000000bd8877 hhvm`HPHP::execute_program_impl(int, char**) [inlined] HPHP::ThreadLocalFlat<HPHP::MemoryManager>::getCheck(this=0x00007ffff2521d28) at thread-local.h:255:22 frame meta#3: 0x0000000000bd886f hhvm`HPHP::execute_program_impl(argc=2, argv=0x00007fffffffd418) at program-functions.cpp:1745:13 frame meta#4: 0x0000000000bd6490 hhvm`HPHP::execute_program(argc=<unavailable>, argv=<unavailable>) at program-functions.cpp:1369:18 frame meta#5: 0x00000000004e4c18 hhvm`main(argc=2, argv=0x00007fffffffd418) at main.cpp:95:12 frame meta#6: 0x00007ffff4426248 libc.so.6`__libc_start_call_main + 120 frame meta#7: 0x00007ffff442630b libc.so.6`__libc_start_main@@GLIBC_2.34 + 139 frame meta#8: 0x00000000004e4945 hhvm`_start + 37 ```
Contributor
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. (Because this pull request was imported automatically, there will not be any future comments.) |
Contributor
|
This pull request has been merged in 4d53c32. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initialize RDS locals before attempting to use the MemoryManager, otherwise
hhvm --modulessegfaults: