{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/4688","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/4688/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/4688/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/4688/events","html_url":"https://github.com/facebook/hhvm/issues/4688","id":55129716,"number":4688,"title":"HHVM Crashes after 12 requests (jit_warmup_requests)","user":{"login":"brucemead","id":5895525,"avatar_url":"https://avatars.githubusercontent.com/u/5895525?v=3","gravatar_id":"","url":"https://api.github.com/users/brucemead","html_url":"https://github.com/brucemead","followers_url":"https://api.github.com/users/brucemead/followers","following_url":"https://api.github.com/users/brucemead/following{/other_user}","gists_url":"https://api.github.com/users/brucemead/gists{/gist_id}","starred_url":"https://api.github.com/users/brucemead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucemead/subscriptions","organizations_url":"https://api.github.com/users/brucemead/orgs","repos_url":"https://api.github.com/users/brucemead/repos","events_url":"https://api.github.com/users/brucemead/events{/privacy}","received_events_url":"https://api.github.com/users/brucemead/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":2,"created_at":"2015-01-22T09:07:13Z","updated_at":"2015-01-23T12:09:08Z","closed_at":null,"body":"For some reason my HHVM setup crashes after the initial 12 requests (jit_warmup_requests). I can't see any useful information as to why this is in the logs. If I disable JIT it works fine and if I increase the \"jit_warmup_requests\" to 20 for example I only get 7 successful requests.\r\n\r\nHHVM Version 3.5.0\r\n\r\nNGINX Version 1.6.2\r\n\r\nUbuntu 14.04.1 LTS\r\n\r\nHere is my server.ini\r\n```\r\n; php options\r\n\r\npid = /var/run/hhvm/pid\r\n\r\n; hhvm specific \r\nhhvm.server.port = 9001\r\nhhvm.server.type = fastcgi\r\nhhvm.server.default_document = index.php\r\nhhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc\r\nhhvm.server.apc.enable_apc = true\r\nhhvm.server.apc.table_type = concurrent\r\nhhvm.server.apc.expire_on_sets = true\r\nhhvm.server.apc.purge_frequency = 4096\r\n\r\nhhvm.jit = true\r\n\r\nhhvm.eval.jit = true\r\nhhvm.eval.jit_warmup_requests = 20\r\n\r\nhhvm.log.level = Error\r\nhhvm.log.no_silencer = true\r\nhhvm.log.always_log_unhandled_exceptions = true\r\nhhvm.log.runtime_error_reporting_level = 8191\r\nhhvm.log.use_log_file = true\r\nhhvm.log.use_syslog = false\r\nhhvm.log.injected_stack_trace = true\r\nhhvm.log.native_stack_trace = true\r\nhhvm.log.file = /var/log/hhvm/error.log\r\n\r\nhhvm.error_handling.call_user_handler_on_fatals = true\r\nhhvm.error_handling.max_loop_count = 0\r\nhhvm.error_handling.no_infinite_recursion_detection = false\r\nhhvm.error_handling.throw_bad_type_exceptions = false\r\nhhvm.error_handling.throw_too_many_arguments = false\r\nhhvm.error_handling.warn_too_many_arguments = false\r\nhhvm.error_handling.throw_missing_arguments = false\r\nhhvm.error_handling.throw_invalid_arguments = false\r\nhhvm.error_handling.enable_hip_hop_errors = true\r\nhhvm.error_handling.notice_frequency = 1\r\nhhvm.error_handling.warning_frequency = 1\r\nhhvm.error_handling.assert_active = false\r\nhhvm.error_handling.assert_warning = false\r\n\r\nhhvm.debug.full_backtrace = true\r\nhhvm.debug.server_stack_trace = true\r\nhhvm.debug.server_error_message = true\r\nhhvm.debug.translate_source = true\r\nhhvm.debug.record_input = false\r\nhhvm.debug.clear_input_on_success = true\r\nhhvm.debug.profiler_output_dir = /tmp\r\nhhvm.debug.core_dump_email = email address\r\nhhvm.debug.core_dump_report = true\r\nhhvm.debug.core_dump_report_directory = /tmp\r\n```\r\nAny help on this would be greatly appreciated :)"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/71184993","html_url":"https://github.com/facebook/hhvm/issues/4688#issuecomment-71184993","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/4688","id":71184993,"user":{"login":"brucemead","id":5895525,"avatar_url":"https://avatars.githubusercontent.com/u/5895525?v=3","gravatar_id":"","url":"https://api.github.com/users/brucemead","html_url":"https://github.com/brucemead","followers_url":"https://api.github.com/users/brucemead/followers","following_url":"https://api.github.com/users/brucemead/following{/other_user}","gists_url":"https://api.github.com/users/brucemead/gists{/gist_id}","starred_url":"https://api.github.com/users/brucemead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucemead/subscriptions","organizations_url":"https://api.github.com/users/brucemead/orgs","repos_url":"https://api.github.com/users/brucemead/repos","events_url":"https://api.github.com/users/brucemead/events{/privacy}","received_events_url":"https://api.github.com/users/brucemead/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T12:09:08Z","updated_at":"2015-01-23T12:09:08Z","body":"Hi bauerj, thanks for the quick response and sorry for my delay.\r\n\r\nHere is the stack trace as requested:\r\n\r\n```\r\nHost: *\r\nProcessID: 10030\r\nThreadID: 7f9740fff700\r\nThreadPID: 10036\r\nName: unknown program\r\nType: Segmentation fault\r\nRuntime: hhvm\r\nVersion: tags/HHVM-3.5.0-0-ga90f4733cfa0d8fefdafc7433f758f78cdc75424\r\nDebuggerCount: 0\r\n\r\nThreadType: Web Request\r\nServer_SERVER_NAME: *\r\nServer: *\r\nURL: /index.php/gjsadmin/catalog_product/grid/key/2cf13faf8029b5f138049465ef75542f/page/12/?ajax=true&isAjax=true\r\n\r\n# 0  xmlSearchNsByHref at /usr/lib/x86_64-linux-gnu/libxml2.so.2:0\r\n# 1  HPHP::c_DOMDocument_ni_importNode(HPHP::ObjectData*, HPHP::Object const&, bool) at /usr/bin/hhvm:0\r\n# 2  void HPHP::Native::callFunc<false, false>(HPHP::Func const*, void*, HPHP::TypedValue*, HPHP::TypedValue&) at /usr/bin/hhvm:0\r\n# 3  HPHP::TypedValue* HPHP::Native::methodWrapper<false, false>(HPHP::ActRec*) at /usr/bin/hhvm:0\r\n# 4  HPHP::jit::x64::BackEnd::enterTCHelper(unsigned char*, HPHP::jit::TReqInfo&) at /usr/bin/hhvm:0\r\n# 5  HPHP::jit::MCGenerator::enterTC(unsigned char*, void*) at /usr/bin/hhvm:0\r\n# 6  HPHP::ExecutionContext::invokeFunc(HPHP::TypedValue*, HPHP::Func const*, HPHP::Variant const&, HPHP::ObjectData*, HPHP::Class*, HPHP::VarEnv*, HPHP::StringData*, HPHP::ExecutionContext::InvokeFlags) at /usr/bin/hhvm:0\r\n# 7  HPHP::ExecutionContext::invokeUnit(HPHP::TypedValue*, HPHP::Unit const*) at /usr/bin/hhvm:0\r\n# 8  HPHP::invoke_file(HPHP::String const&, bool, char const*) at builtin-functions.cpp:0\r\n# 9  HPHP::include_impl_invoke(HPHP::String const&, bool, char const*) at /usr/bin/hhvm:0\r\n# 10 HPHP::hphp_invoke(HPHP::ExecutionContext*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, HPHP::Array const&, HPHP::VRefParamValue const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool, bool, bool) at /usr/bin/hhvm:0\r\n# 11 HPHP::HttpRequestHandler::executePHPRequest(HPHP::Transport*, HPHP::RequestURI&, HPHP::SourceRootInfo&, bool) at /usr/bin/hhvm:0\r\n# 12 HPHP::HttpRequestHandler::handleRequest(HPHP::Transport*) at /usr/bin/hhvm:0\r\n# 13 HPHP::ServerWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::FastCGITransportTraits>::doJob(std::shared_ptr<HPHP::FastCGIJob>) at /usr/bin/hhvm:0\r\n# 14 HPHP::JobQueueWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::Server*, true, false, HPHP::JobQueueDropVMStack>::start() at /usr/bin/hhvm:0\r\n# 15 HPHP::AsyncFuncImpl::ThreadFunc(void*) at /usr/bin/hhvm:0\r\n# 16 HPHP::start_routine_wrapper(void*) at /usr/bin/hhvm:0\r\n# 17 start_thread at /lib/x86_64-linux-gnu/libpthread.so.0:0\r\n# 18 clone at /lib/x86_64-linux-gnu/libc.so.6:0\r\n```"}}