Skip to content

Instantly share code, notes, and snippets.

@jmarrama
Created January 14, 2014 22:34
Show Gist options
  • Select an option

  • Save jmarrama/8427281 to your computer and use it in GitHub Desktop.

Select an option

Save jmarrama/8427281 to your computer and use it in GitHub Desktop.
HHVM fastcgi backtrace
(gdb) bt
#0 tcache_dalloc_small (binind=<optimized out>, ptr=0x7fffe5b9d800, tcache=0x7fffe4a10000) at include/jemalloc/internal/tcache.h:403
#1 arena_dalloc (try_tcache=true, ptr=0x7fffe5b9d800, chunk=<optimized out>, arena=0x7fffed0000c0) at include/jemalloc/internal/arena.h:956
#2 idalloc (ptr=0x7fffe5b9d800) at include/jemalloc/internal/jemalloc_internal.h:840
#3 iqalloc (ptr=0x7fffe5b9d800) at include/jemalloc/internal/jemalloc_internal.h:852
#4 free (ptr=0x7fffe5b9d800) at src/jemalloc.c:1212
#5 0x000000000350c29b in folly::IOBuf::operator delete (ptr=0x7fffe5b9d800) at /home/vagrant/hhvm/hphp/third_party/folly/folly/experimental/io/IOBuf.cpp:82
#6 0x0000000002b5c7d2 in std::default_delete<folly::IOBuf>::operator() (this=0x7fffe5b4f0e0, __ptr=0x7fffe5b9d800)
at /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../include/c++/4.8.1/bits/unique_ptr.h:67
#7 0x0000000002b5b07d in std::unique_ptr<folly::IOBuf, std::default_delete<folly::IOBuf> >::~unique_ptr (this=0x7fffe5b4f0e0, __in_chrg=<optimized out>)
at /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../include/c++/4.8.1/bits/unique_ptr.h:184
#8 0x0000000002b5a51a in folly::IOBufQueue::~IOBufQueue (this=0x7fffe5b4f0d0, __in_chrg=<optimized out>)
at /home/vagrant/hhvm/hphp/third_party/folly/folly/io/IOBufQueue.h:35
#9 0x0000000002b58185 in HPHP::FastCGIConnection::~FastCGIConnection (this=0x7fffe5b4ef80, __in_chrg=<optimized out>)
at /home/vagrant/hhvm/hphp/runtime/server/fastcgi/fastcgi-server.cpp:95
#10 0x0000000002b5822a in HPHP::FastCGIConnection::~FastCGIConnection (this=0x7fffe5b4ef80, __in_chrg=<optimized out>)
at /home/vagrant/hhvm/hphp/runtime/server/fastcgi/fastcgi-server.cpp:97
#11 0x0000000002b583bc in HPHP::FastCGIConnection::readEOF (this=0x7fffe5b4ef80) at /home/vagrant/hhvm/hphp/runtime/server/fastcgi/fastcgi-server.cpp:121
#12 0x00000000035572d7 in apache::thrift::async::TAsyncSocket::handleRead (this=0x7fffe58137c0)
at /home/vagrant/hhvm/hphp/third_party/thrift/lib/cpp/async/TAsyncSocket.cpp:1293
#13 0x0000000003556b3c in apache::thrift::async::TAsyncSocket::ioReady (this=0x7fffe58137c0, events=2)
at /home/vagrant/hhvm/hphp/third_party/thrift/lib/cpp/async/TAsyncSocket.cpp:1166
#14 0x000000000355abe5 in apache::thrift::async::TAsyncSocket::IoHandler::handlerReady (this=0x7fffe58138b0, events=2)
at /home/vagrant/hhvm/hphp/third_party/thrift/lib/cpp/async/TAsyncSocket.h:509
#15 0x00000000031cee01 in apache::thrift::async::TEventHandler::libeventCallback (fd=23, events=2, arg=0x7fffe58138b0)
at /home/vagrant/hhvm/hphp/third_party/thrift/lib/cpp/async/TEventHandler.cpp:152
#16 0x00007ffff2a86f56 in event_process_active (base=<optimized out>) at event.c:397
#17 event_base_loop (base=0x7fffecead400, flags=1) at event.c:549
#18 0x00000000031c59a2 in apache::thrift::async::TEventBase::loop (this=0x7fffecf7b1d8)
at /home/vagrant/hhvm/hphp/third_party/thrift/lib/cpp/async/TEventBase.cpp:212
#19 0x00000000031c624e in apache::thrift::async::TEventBase::loopForever (this=0x7fffecf7b1d8)
at /home/vagrant/hhvm/hphp/third_party/thrift/lib/cpp/async/TEventBase.cpp:276
#20 0x00000000031d43bb in facebook::proxygen::WorkerThread::runLoop (this=0x7fffecf7b1c0)
at /home/vagrant/hhvm/hphp/third_party/ti/proxygen/lib/workers/WorkerThread.cpp:126
#21 0x00000000031d3ade in facebook::proxygen::WorkerThread::__lambda1::operator() (__closure=0x7fffe5b9d1b0)
at /home/vagrant/hhvm/hphp/third_party/ti/proxygen/lib/workers/WorkerThread.cpp:33
#22 0x00000000031d5c10 in std::_Bind_simple<facebook::proxygen::WorkerThread::start()::__lambda1()>::_M_invoke<>(std::_Index_tuple<>) (this=0x7fffe5b9d1b0)
at /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../include/c++/4.8.1/functional:1732
#23 0x00000000031d5b5d in std::_Bind_simple<facebook::proxygen::WorkerThread::start()::__lambda1()>::operator()(void) (this=0x7fffe5b9d1b0)
at /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../include/c++/4.8.1/functional:1720
#24 0x00000000031d5af6 in std::thread::_Impl<std::_Bind_simple<facebook::proxygen::WorkerThread::start()::__lambda1()> >::_M_run(void) (this=0x7fffe5b9d198)
at /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../include/c++/4.8.1/thread:115
---Type <return> to continue, or q <return> to quit---
#25 0x00007ffff0cc6470 in ?? () from /usr/lib64/libstdc++.so.6
#26 0x00007ffff0f1d9d1 in start_thread () from /lib64/libpthread.so.0
#27 0x00007ffff04cab6d in clone () from /lib64/libc.so.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment