Skip to content

Instantly share code, notes, and snippets.

@jonleighton
Created November 9, 2011 21:25
Show Gist options
  • Save jonleighton/1353096 to your computer and use it in GitHub Desktop.
Save jonleighton/1353096 to your computer and use it in GitHub Desktop.
*** glibc detected *** /home/turnip/bin/phantomjs: malloc(): memory corruption: 0x00007ffff0404010 ***
[Thread 0x7fffeb799700 (LWP 16393) exited]
^C
Program received signal SIGINT, Interrupt.
__lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:100
100 2: movl %edx, %eax
(gdb) bt
#0 __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:100
#1 0x00000038bd27cb31 in _L_lock_9745 () from /lib64/libc.so.6
#2 0x00000038bd27aaf2 in __GI___libc_malloc (bytes=243694916064) at malloc.c:3657
#3 0x00000038bce0ca1f in _dl_map_object_deps (map=0x7ffff7fd64c8, preloads=<optimized out>, npreloads=<optimized out>, trace_mode=0, open_mode=-2147483648) at dl-deps.c:506
#4 0x00000038bce12015 in dl_open_worker (a=0x7fffffffac10) at dl-open.c:263
#5 0x00000038bce0e146 in _dl_catch_error (objname=0x7fffffffac58, errstring=0x7fffffffac60, mallocedp=0x7fffffffac6f, operate=0x38bce11ea0 <dl_open_worker>, args=0x7fffffffac10) at dl-error.c:178
#6 0x00000038bce1273a in _dl_open (file=0x38bd3592d9 "libgcc_s.so.1", mode=-2147483647, caller_dlopen=0x0, nsid=-2, argc=3, argv=<optimized out>, env=0x7fffffffde78) at dl-open.c:569
#7 0x00000038bd31b5c0 in do_dlopen (ptr=0x7fffffffae10) at dl-libc.c:86
#8 0x00000038bce0e146 in _dl_catch_error (objname=0x7fffffffae28, errstring=0x7fffffffae30, mallocedp=0x7fffffffae3f, operate=0x38bd31b580 <do_dlopen>, args=0x7fffffffae10) at dl-error.c:178
#9 0x00000038bd31b67a in dlerror_run (args=0x7fffffffae10, operate=0x38bd31b580 <do_dlopen>) at dl-libc.c:47
#10 __GI___libc_dlopen_mode (name=<optimized out>, mode=<optimized out>) at dl-libc.c:160
#11 0x00000038bd2f41a5 in init () at ../sysdeps/ia64/backtrace.c:53
#12 0x00000037b5a0c980 in pthread_once () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S:104
#13 0x00000038bd2f42c4 in __GI___backtrace (array=<optimized out>, size=64) at ../sysdeps/ia64/backtrace.c:104
#14 0x00000038bd270bdf in __libc_message (do_abort=2, fmt=0x38bd35c5e8 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:178
#15 0x00000038bd27703a in malloc_printerr (action=3, str=0x38bd35a4f7 "malloc(): memory corruption", ptr=<optimized out>) at malloc.c:6283
#16 0x00000038bd278ad0 in _int_malloc (av=0x38bd5951e0, bytes=402) at malloc.c:4396
#17 0x00000038bd27ab00 in __GI___libc_malloc (bytes=402) at malloc.c:3660
#18 0x0000000001596d68 in QString::QString(QChar const*, int) ()
#19 0x00000000007b89d2 in JSC::Bindings::convertValueToQVariant(JSC::ExecState*, JSC::JSValue, QMetaType::Type, int*, WTF::HashSet<JSC::JSObject*, WTF::PtrHash<JSC::JSObject*>, WTF::HashTraits<JSC::JSObject*> >*, int) ()
#20 0x00000000007baf02 in JSC::Bindings::convertValueToQVariant(JSC::ExecState*, JSC::JSValue, QMetaType::Type, int*) ()
#21 0x00000000007bb995 in JSC::Bindings::QtRuntimeMetaMethod::call(JSC::ExecState*, JSC::JSObject*, JSC::JSValue, JSC::ArgList const&) ()
#22 0x0000000000e593f1 in cti_op_call_NotJSFunction ()
#23 0x00007ffff03e0076 in ?? ()
#24 0x00007fffffffcc90 in ?? ()
#25 0x00007fffebfe7c40 in ?? ()
#26 0xffff00000000000e in ?? ()
#27 0x00007fff00000002 in ?? ()
#28 0x00007fff00000003 in ?? ()
#29 0x0000000000000010 in ?? ()
#30 0x00007fffffffcce0 in ?? ()
#31 0x00000037b6203ebb in __GI_clock_gettime (clock_id=-250554896, tp=0x7fffffffcd00) at ../sysdeps/unix/clock_gettime.c:100
#32 0x00007ffff0404510 in ?? ()
#33 0x00007ffff10752a0 in ?? ()
#34 0x0000000001ec65d0 in JSC::ExecutableAllocator::pageSize ()
#35 0x00007ffff1073a00 in ?? ()
#36 0x00007ffff0404000 in ?? ()
#37 0x0000000001ec65d0 in JSC::ExecutableAllocator::pageSize ()
#38 0x00007ffff029dee0 in ?? ()
#39 0x0000000001f508b8 in ?? ()
#40 0x00007ffff0404058 in ?? ()
#41 0x00007ffff102b268 in ?? ()
#42 0x0000000000e4412f in JSC::Interpreter::execute(JSC::FunctionExecutable*, JSC::ExecState*, JSC::JSFunction*, JSC::JSObject*, JSC::ArgList const&, JSC::ScopeChainNode*, JSC::JSValue*) ()
#43 0x0000000000e8a007 in JSC::JSFunction::call(JSC::ExecState*, JSC::JSValue, JSC::ArgList const&) ()
#44 0x0000000000e67a22 in JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
#45 0x00000000004c677c in WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) ()
#46 0x000000000052711c in WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener, 1ul>&) ()
#47 0x000000000052727e in WebCore::EventTarget::fireEventListeners(WebCore::Event*) ()
#48 0x0000000000527358 in WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) ()
#49 0x0000000000e069a9 in WebCore::WebSocket::didReceiveMessage(WebCore::String const&) ()
#50 0x0000000000e154fd in WebCore::WebSocketChannel::didReceiveData(WebCore::SocketStreamHandle*, char const*, int) ()
#51 0x0000000000e1b0cd in WebCore::SocketStreamHandlePrivate::socketReadyRead() ()
#52 0x0000000000e1b900 in WebCore::SocketStreamHandlePrivate::qt_metacall(QMetaObject::Call, int, void**) ()
#53 0x000000000161eb37 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
#54 0x000000000150b86f in QAbstractSocketPrivate::canReadNotification() ()
---Type <return> to continue, or q <return> to quit---
#55 0x00000000014fc721 in QReadNotifier::event(QEvent*) ()
#56 0x0000000000fa1bf4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
#57 0x0000000000fa615f in QApplication::notify(QObject*, QEvent*) ()
#58 0x000000000160e89c in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
#59 0x000000000162e9ba in QEventDispatcherUNIX::activateSocketNotifiers() ()
#60 0x000000000162f720 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) ()
#61 0x000000000162fad3 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#62 0x000000000101971f in QEventDispatcherX11::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#63 0x000000000160de52 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#64 0x000000000160e058 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
#65 0x00000000016115b7 in QCoreApplication::exec() ()
#66 0x0000000000411e82 in main ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment