{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/5077","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/5077/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/5077/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/5077/events","html_url":"https://github.com/facebook/hhvm/issues/5077","id":64321830,"number":5077,"title":"Prebuild 3.6.1 on Ubuntu 14.04  segafaulting after 2 requests (seemingly if the first request uses PDO)","user":{"login":"raymondjplante","id":748409,"avatar_url":"https://avatars.githubusercontent.com/u/748409?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondjplante","html_url":"https://github.com/raymondjplante","followers_url":"https://api.github.com/users/raymondjplante/followers","following_url":"https://api.github.com/users/raymondjplante/following{/other_user}","gists_url":"https://api.github.com/users/raymondjplante/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondjplante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondjplante/subscriptions","organizations_url":"https://api.github.com/users/raymondjplante/orgs","repos_url":"https://api.github.com/users/raymondjplante/repos","events_url":"https://api.github.com/users/raymondjplante/events{/privacy}","received_events_url":"https://api.github.com/users/raymondjplante/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T17:08:09Z","updated_at":"2015-03-26T17:17:36Z","closed_at":null,"body":"After a second request to nginx/hhvm, if the first request had any PDO mysql calls in it my hhvm dies once returning the second response to nginx.  The build 3.5.1 from `http://dl.hhvm.com/ubuntu/pool/main/h/hhvm/` works fine.\r\n \r\nRunning AWS image of Ubuntu trusty: Linux version 3.13.0-44-generic (buildd@lamiak) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) )\r\n\r\nI've got 2 CPU's and 4gb ram\r\n\r\n\r\n`nginx version: nginx/1.4.6 (Ubuntu)`\r\n\r\n\r\nDid the following:\r\n\r\n    sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449\r\n    sudo add-apt-repository 'deb http://dl.hhvm.com/ubuntu trusty main'\r\n    sudo apt-get update\r\n    sudo apt-get install hhvm-dbg\r\n    sudo update-rc.d hhvm defaults\r\n\r\n\r\nThis installed:\r\n\r\n     HipHop VM 3.6.1 (dbg)\r\n     Compiler: tags/HHVM-3.6.1-0-gc051feff88ba8050f33f10f7b1fb07f8d3415f9e\r\n     Repo schema: 42f49251b5c27daf4e13cb6bcd0c7ef4824b55a3\r\n\r\nHere's my php.ini:\r\n\r\n     ; php options\r\n     expose_php=off\r\n     pid = /var/run/hhvm/pid\r\n     date.timezone=\"America/New_York\"\r\n     ; hhvm specific\r\n     hhvm.server.file_socket=/var/run/hhvm/hhvm.sock\r\n     ;hhvm.server.port = 9000\r\n     hhvm.server.type = fastcgi\r\n     hhvm.server.default_document = index.php\r\n     hhvm.log.level = Warning\r\n     hhvm.log.always_log_unhandled_exceptions = true\r\n     hhvm.log.runtime_error_reporting_level = 8191\r\n     hhvm.log.use_log_file = true\r\n     hhvm.log.file = /var/log/hhvm/error.log\r\n     hhvm.log.header = true\r\n     hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc\r\n     hhvm.mysql.typed_results = false\r\n    ;hhvm.eval.jit_warmup_requests = 0\r\n\r\n\r\nMade sure /var/run/hhvm was empty then started hhvm\r\n\r\n     /etc/init.d/hhvm start\r\n\r\nNoticed a pid file and a hhvm.hhbc file created in /var/run/hhvm\r\n\r\nMade a request to nginx, served up fine, /var/run/hhvm/hhvm.sock created\r\n\r\nOn second request, I get the response, but then I see this in the error log:\r\n\r\n     [Wed Mar 25 16:20:10 2015] [hphp] [29609:7faa377ff700:2:000001][25567d4:164617c:7faa485e4d40] Core dumped: Segmentation fault\r\n     [Wed Mar 25 16:20:10 2015] [hphp] [29609:7faa377ff700:2:000002] [25567d4:1646192:7faa485e4d40] Stack trace in /tmp/stacktrace.29609.log\r\n\r\nAt this point, the hhvm daemon has died.\r\n\r\nHere is the stacktrace.log file\r\n    \r\n     Host: <hidden>\r\n     ProcessID: 29610\r\n     ThreadID: 7faa377ff700\r\n     ThreadPID: 29617\r\n     Name: /etc/init.d/hhvm\r\n     Type: Segmentation fault\r\n     Runtime: hhvm\r\n      Version: tags/HHVM-3.6.1-0-gc051feff88ba8050f33f10f7b1fb07f8d3415f9e\r\n     DebuggerCount: 0\r\n \r\n     Server: <hidden>\r\n     ThreadType: Web Request\r\n     Server_SERVER_NAME:  <hidden>\r\n         URL: /v1/\r\n\r\n      # 0  bt_handler at /tmp/tmp.YaWuYMxxFl/hphp/runtime/base/crash-reporter.cpp:82\r\n  \r\n      PHP Stacktrace:\r\n\r\nThe stacktrace portion is empty"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/86630120","html_url":"https://github.com/facebook/hhvm/issues/5077#issuecomment-86630120","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/5077","id":86630120,"user":{"login":"raymondjplante","id":748409,"avatar_url":"https://avatars.githubusercontent.com/u/748409?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondjplante","html_url":"https://github.com/raymondjplante","followers_url":"https://api.github.com/users/raymondjplante/followers","following_url":"https://api.github.com/users/raymondjplante/following{/other_user}","gists_url":"https://api.github.com/users/raymondjplante/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondjplante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondjplante/subscriptions","organizations_url":"https://api.github.com/users/raymondjplante/orgs","repos_url":"https://api.github.com/users/raymondjplante/repos","events_url":"https://api.github.com/users/raymondjplante/events{/privacy}","received_events_url":"https://api.github.com/users/raymondjplante/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T17:17:36Z","updated_at":"2015-03-26T17:17:36Z","body":"One thing of note is when establishing my PDO connection I'm using persistent connections:\r\n     \r\n          $dbh = new \\PDO($dsn, $options['username'], $options['password'],\r\n                                           array(1002 => \"SET NAMES 'UTF8'\",  PDO::ATTR_PERSISTENT => true));\r\n           $dbh->setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);"}}