{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/6906","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/6906/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/6906/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/6906/events","html_url":"https://github.com/facebook/hhvm/issues/6906","id":140448181,"number":6906,"title":"run hhvm --version, core dumped","user":{"login":"javacty","id":4278216,"avatar_url":"https://avatars.githubusercontent.com/u/4278216?v=3","gravatar_id":"","url":"https://api.github.com/users/javacty","html_url":"https://github.com/javacty","followers_url":"https://api.github.com/users/javacty/followers","following_url":"https://api.github.com/users/javacty/following{/other_user}","gists_url":"https://api.github.com/users/javacty/gists{/gist_id}","starred_url":"https://api.github.com/users/javacty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javacty/subscriptions","organizations_url":"https://api.github.com/users/javacty/orgs","repos_url":"https://api.github.com/users/javacty/repos","events_url":"https://api.github.com/users/javacty/events{/privacy}","received_events_url":"https://api.github.com/users/javacty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/crash","name":"crash","color":"e63737"},{"url":"https://api.github.com/repos/facebook/hhvm/labels/needs%20more%20info","name":"needs more info","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-13T04:50:40Z","updated_at":"2016-03-21T17:48:26Z","closed_at":null,"body":"Ubuntu 15.10\r\ngcc 5.2.1\r\n\r\n============================================\r\nLinking CXX executable hhvm\r\nGenerating Repo Schema ID and Compiler ID\r\nEmbedding php in hhvm\r\nCreating symlinks for hhvm\r\n[100%] Built target hhvm\r\nroot@u15:/opt/new/hhvm# hphp/hhvm/hhvm --version\r\nSegmentation fault (core dumped)"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/199399477","html_url":"https://github.com/facebook/hhvm/issues/6906#issuecomment-199399477","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/6906","id":199399477,"user":{"login":"wjywbs","id":6233680,"avatar_url":"https://avatars.githubusercontent.com/u/6233680?v=3","gravatar_id":"","url":"https://api.github.com/users/wjywbs","html_url":"https://github.com/wjywbs","followers_url":"https://api.github.com/users/wjywbs/followers","following_url":"https://api.github.com/users/wjywbs/following{/other_user}","gists_url":"https://api.github.com/users/wjywbs/gists{/gist_id}","starred_url":"https://api.github.com/users/wjywbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjywbs/subscriptions","organizations_url":"https://api.github.com/users/wjywbs/orgs","repos_url":"https://api.github.com/users/wjywbs/repos","events_url":"https://api.github.com/users/wjywbs/events{/privacy}","received_events_url":"https://api.github.com/users/wjywbs/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T17:48:26Z","updated_at":"2016-03-21T17:48:26Z","body":"I checked `ldd hhvm` and I didn't see jemalloc. This is a quick fix that explicitly links libboost_regex.so.1.54.0 and libjemalloc.so.1:\r\n\r\n```\r\ndiff --git a/hphp/hhvm/CMakeLists.txt b/hphp/hhvm/CMakeLists.txt\r\nindex 05b6732..3ca25a1 100644\r\n--- a/hphp/hhvm/CMakeLists.txt\r\n+++ b/hphp/hhvm/CMakeLists.txt\r\n@@ -21,6 +21,7 @@ if (GOLD_FOUND AND ENABLE_LD_GOLD)\r\n   else()\r\n     SET(LINKER_SCRIPT -fuse-ld=gold -Wl,--icf=all,--gc-sections)\r\n   endif()\r\n+  SET(LINKER_SCRIPT ${LINKER_SCRIPT},--no-as-needed)\r\n   add_executable(hhvm ${CXX_SOURCES})\r\n   target_link_libraries(hhvm ${HHVM_LINK_LIBRARIES} ${LINKER_SCRIPT})\r\n else()\r\n```"}}