{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/7779","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/7779/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/7779/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/7779/events","html_url":"https://github.com/facebook/hhvm/issues/7779","id":220584516,"number":7779,"title":"Segfault in memory cleanup","user":{"login":"mmuehlenhoff","id":13075410,"avatar_url":"https://avatars2.githubusercontent.com/u/13075410?v=3","gravatar_id":"","url":"https://api.github.com/users/mmuehlenhoff","html_url":"https://github.com/mmuehlenhoff","followers_url":"https://api.github.com/users/mmuehlenhoff/followers","following_url":"https://api.github.com/users/mmuehlenhoff/following{/other_user}","gists_url":"https://api.github.com/users/mmuehlenhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/mmuehlenhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmuehlenhoff/subscriptions","organizations_url":"https://api.github.com/users/mmuehlenhoff/orgs","repos_url":"https://api.github.com/users/mmuehlenhoff/repos","events_url":"https://api.github.com/users/mmuehlenhoff/events{/privacy}","received_events_url":"https://api.github.com/users/mmuehlenhoff/received_events","type":"User","site_admin":false},"labels":[{"id":34419,"url":"https://api.github.com/repos/facebook/hhvm/labels/crash","name":"crash","color":"e63737","default":false},{"id":39614012,"url":"https://api.github.com/repos/facebook/hhvm/labels/needs%20more%20info","name":"needs more info","color":"f7c6c7","default":false},{"id":112752741,"url":"https://api.github.com/repos/facebook/hhvm/labels/no%20isolated%20repro","name":"no isolated repro","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-10T09:21:07Z","updated_at":"2017-05-11T21:08:53Z","closed_at":null,"body":"I've been deploying HHVM 3.18.2 (with the cherrypicked fix for c7da29b) to a wider range of Wikimedia machines now. The deadlock hasn't reoccured, but I during the testing period HHVM segfaulted on one of the servers with the back trace below. Let me know if you need any further information, I still have the core dump around. Underlying OS is Debian jessie:\r\n\r\n```\r\n#0  setIsClosed (closed=true, this=0x7f639d811650) at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/base/file.h:290\r\n#1  HPHP::UserFile::close (this=0x7f639d811650) at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/base/user-file.cpp:212\r\n#2  0x0000000001a74ec2 in HPHP::XMLReader::close (this=0x7f63cba53300) at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/ext/xmlreader/ext_xmlreader.cpp:95\r\n#3  0x0000000002133130 in HPHP::MemoryManager::sweep (this=0x7f656fffbd40,\r\n    this@entry=<error reading variable: Asked for position 0 of stack, stack only has 0 elements on it.>)\r\n    at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/base/memory-manager.cpp:471\r\n#4  0x00000000021324dd in HPHP::hphp_memory_cleanup () at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/base/program-functions.cpp:2322\r\n#5  0x0000000000fd6605 in HPHP::hphp_session_exit () at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/base/program-functions.cpp:2370\r\n#6  0x000000000219859d in HPHP::HttpRequestHandler::teardownRequest (this=0x7f6674a7e060, transport=0x7f63fd038710)\r\n    at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/server/http-request-handler.cpp:219\r\n#7  0x000000000117f46d in runAndWarnAboutToCrashOnException<HPHP::ServerWorker<JobPtr, TransportTraits>::doJobImpl(JobPtr, bool) [with JobPtr = std::shared_ptr<HPHP::FastCGIJob>; TransportTraits = HPHP::FastCGITransportTraits]::<lambda()> > (function=...) at /tmp/buildd/hhvm-3.18.2+dfsg/third-party/folly/folly/ScopeGuard.h:83\r\n#8  execute (this=0x7f656fffb290) at /tmp/buildd/hhvm-3.18.2+dfsg/third-party/folly/folly/ScopeGuard.h:170\r\n#9  ~ScopeGuardImpl (this=0x7f656fffb290, __in_chrg=<optimized out>) at /tmp/buildd/hhvm-3.18.2+dfsg/third-party/folly/folly/ScopeGuard.h:146\r\n#10 HPHP::ServerWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::FastCGITransportTraits>::doJobImpl (this=this@entry=0x7f6584365d80,\r\n    job=std::shared_ptr (count 3, weak 0) 0x7f63e888ebb0, abort=abort@entry=false) at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/server/server-worker.h:96\r\n#11 0x000000000117fb59 in doJob (job=<error reading variable: access outside bounds of object referenced via synthetic pointer>, this=0x7f6584365d80)\r\n    at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/server/server-worker.h:56\r\n#12 HPHP::JobQueueWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::Server*, true, false, HPHP::JobQueueDropVMStack>::start (this=0x7f6584365d80)\r\n    at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/util/job-queue.h:462\r\n#13 0x0000000000d51fdf in HPHP::AsyncFuncImpl::threadFuncImpl (this=this@entry=0x7f65e1ca7800) at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/util/async-func.cpp:134\r\n#14 0x0000000000d521ab in HPHP::AsyncFuncImpl::ThreadFunc (obj=0x7f65e1ca7800) at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/util/async-func.cpp:54\r\n#15 0x0000000000f81a36 in HPHP::start_routine_wrapper (arg=0x7f65e1e38200) at /tmp/buildd/hhvm-3.18.2+dfsg/hphp/runtime/base/thread-hooks.cpp:105\r\n#16 0x00007f67186e2064 in start_thread (arg=0x7f656ffff700) at pthread_create.c:309\r\n#17 0x00007f6712e1162d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/300917617","html_url":"https://github.com/facebook/hhvm/issues/7779#issuecomment-300917617","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/7779","id":300917617,"user":{"login":"reedy","id":67615,"avatar_url":"https://avatars1.githubusercontent.com/u/67615?v=3","gravatar_id":"","url":"https://api.github.com/users/reedy","html_url":"https://github.com/reedy","followers_url":"https://api.github.com/users/reedy/followers","following_url":"https://api.github.com/users/reedy/following{/other_user}","gists_url":"https://api.github.com/users/reedy/gists{/gist_id}","starred_url":"https://api.github.com/users/reedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedy/subscriptions","organizations_url":"https://api.github.com/users/reedy/orgs","repos_url":"https://api.github.com/users/reedy/repos","events_url":"https://api.github.com/users/reedy/events{/privacy}","received_events_url":"https://api.github.com/users/reedy/received_events","type":"User","site_admin":false},"created_at":"2017-05-11T21:08:53Z","updated_at":"2017-05-11T21:08:53Z","body":"And to narrow it further...\r\n\r\n`sudo -u www-data hhvm tests/phpunit/phpunit.php --wiki=wiki tests/phpunit/includes/import/ImportTest.php`\r\n\r\nThis test file is https://github.com/wikimedia/mediawiki/blob/master/tests/phpunit/includes/import/ImportTest.php"}}
{"actor":{"display_login":"reedy"}}