Skip to content

Instantly share code, notes, and snippets.

@ebernhardson
Created February 25, 2014 00:28
Show Gist options
  • Save ebernhardson/9200212 to your computer and use it in GitHub Desktop.
Save ebernhardson/9200212 to your computer and use it in GitHub Desktop.
vagrant@mediawiki-vagrant:~/fastcgi$ sudo gdb /usr/bin/hhvm
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/hhvm...done.
Unsupported JIT protocol version in descriptor!
(gdb) set args --config /etc/hhvm/server.hdf --user www-data --mode server
(gdb) run
Starting program: /usr/bin/hhvm --config /etc/hhvm/server.hdf --user www-data --mode server
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe8bdd700 (LWP 11217)]
[Thread 0x7fffe8bdd700 (LWP 11217) exited]
[New Thread 0x7fffe13ff700 (LWP 11218)]
[New Thread 0x7fffe8bdd700 (LWP 11219)]
[Thread 0x7fffe13ff700 (LWP 11218) exited]
[New Thread 0x7fffe0bff700 (LWP 11220)]
[New Thread 0x7fffdefff700 (LWP 11228)]
[New Thread 0x7fffde7ff700 (LWP 11229)]
[New Thread 0x7fffcffff700 (LWP 11230)]
[New Thread 0x7fffcb3ff700 (LWP 11233)]
[New Thread 0x7fffc63ff700 (LWP 11239)]
[New Thread 0x7fffc1bff700 (LWP 11240)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffc1bff700 (LWP 11240)]
0x0000000000fe86f7 in std::_Hashtable<HPHP::StringData*, std::pair<HPHP::StringData* const, HPHP::Eval::PhpFile*>, std::allocator<std::pair<HPHP::StringData* const, HPHP::Eval::PhpFile*> >, std::_Select1st<std::pair<HPHP::StringData* const, HPHP::Eval::PhpFile*> >, HPHP::string_data_same, HPHP::string_data_hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, true, false, true>::find(HPHP::StringData* const&) ()
(gdb) bt
#0 0x0000000000fe86f7 in std::_Hashtable<HPHP::StringData*, std::pair<HPHP::StringData* const, HPHP::Eval::PhpFile*>, std::allocator<std::pair<HPHP::StringData* const, HPHP::Eval::PhpFile*> >, std::_Select1st<std::pair<HPHP::StringData* const, HPHP::Eval::PhpFile*> >, HPHP::string_data_same, HPHP::string_data_hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, true, false, true>::find(HPHP::StringData* const&) ()
#1 0x0000000000fd2ed6 in HPHP::VMExecutionContext::lookupPhpFile(HPHP::StringData*, char const*, bool*) ()
#2 0x0000000000fd3754 in HPHP::VMExecutionContext::evalInclude(HPHP::StringData*, HPHP::StringData const*, bool*) ()
#3 0x0000000000fd3b17 in HPHP::VMExecutionContext::opReq() ()
#4 0x00000000011570cc in HPHP::JIT::interpOneReq(HPHP::ActRec*, HPHP::TypedValue*, int) ()
#5 0x00000000048087aa in ?? ()
#6 0x00000000012cbd8e in enterTCHelper ()
#7 0x00000000011652a8 in HPHP::JIT::TranslatorX64::enterTC(unsigned char*, void*) ()
#8 0x0000000000fdf383 in HPHP::VMExecutionContext::enterVM(HPHP::TypedValue*, HPHP::ActRec*) ()
#9 0x0000000000fdf594 in HPHP::VMExecutionContext::reenterVM(HPHP::TypedValue*, HPHP::ActRec*, HPHP::TypedValue*) ()
#10 0x0000000000fdfc20 in HPHP::VMExecutionContext::invokeFunc(HPHP::TypedValue*, HPHP::Func const*, HPHP::Variant const&, HPHP::ObjectData*, HPHP::Class*, HPHP::VarEnv*, HPHP::StringData*, HPHP::VMExecutionContext::InvokeFlags) ()
#11 0x0000000000b51263 in HPHP::AutoloadHandler::invokeHandler(HPHP::String const&, bool) ()
#12 0x0000000000f94847 in HPHP::Unit::loadClass(HPHP::NamedEntity const*, HPHP::StringData const*) ()
#13 0x0000000000ff7ac5 in void HPHP::VMExecutionContext::dispatchImpl<2>(int) ()
#14 0x0000000000fdefd3 in HPHP::VMExecutionContext::dispatchBB() ()
#15 0x000000000116534e in HPHP::JIT::TranslatorX64::enterTC(unsigned char*, void*) ()
#16 0x0000000000fdf0f1 in HPHP::VMExecutionContext::enterVMWork(HPHP::ActRec*) ()
#17 0x0000000000fdf2e4 in HPHP::VMExecutionContext::enterVM(HPHP::TypedValue*, HPHP::ActRec*) ()
#18 0x0000000000fdfda4 in HPHP::VMExecutionContext::invokeFunc(HPHP::TypedValue*, HPHP::Func const*, HPHP::Variant const&, HPHP::ObjectData*, HPHP::Class*, HPHP::VarEnv*, HPHP::StringData*, HPHP::VMExecutionContext::InvokeFlags) ()
#19 0x0000000000fe0af5 in HPHP::VMExecutionContext::invokeUnit(HPHP::TypedValue*, HPHP::Unit*) ()
#20 0x0000000000b4eed1 in HPHP::invoke_file(HPHP::String const&, bool, char const*) ()
#21 0x0000000000b4f382 in HPHP::include_impl_invoke(HPHP::String const&, bool, char const*) ()
#22 0x0000000000b31754 in HPHP::hphp_invoke(HPHP::ExecutionContext*, std::string const&, bool, HPHP::Array const&, HPHP::VRefParamValue const&, std::string const&, std::string const&, bool&, std::string&, bool, bool, bool) ()
#23 0x0000000000f1eb0c in HPHP::HttpRequestHandler::executePHPRequest(HPHP::Transport*, HPHP::RequestURI&, HPHP::SourceRootInfo&, bool) ()
#24 0x0000000000f20110 in HPHP::HttpRequestHandler::handleRequest(HPHP::Transport*) ()
#25 0x0000000000f6ac63 in HPHP::ServerWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::FastCGITransportTraits>::doJobImpl(std::shared_ptr<HPHP::FastCGIJob>, bool) ()
#26 0x0000000000f6aee8 in HPHP::ServerWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::FastCGITransportTraits>::doJob(std::shared_ptr<HPHP::FastCGIJob>) ()
#27 0x0000000000f6891b in HPHP::JobQueueWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::Server*, true, false, HPHP::JobQueueDropVMStack>::start() ()
#28 0x00000000015ae007 in HPHP::AsyncFuncImpl::threadFuncImpl() ()
#29 0x00000000015ae1ab in HPHP::AsyncFuncImpl::ThreadFunc(void*) ()
#30 0x00007ffff1f7fe9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#31 0x00007ffff149accd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#32 0x0000000000000000 in ?? ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment