Opened 7 years ago

Closed 7 years ago

#10889 closed Bug Report - Crash (Fixed)

Segfault every morning...

Reported by: JYA Owned by: beirdo
Priority: minor Milestone: 0.26
Component: MythTV - MythSystem Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

(lldb) thread backtrace all 
  thread #1: tid = 0x1e03, 0x00007fff92551686 libsystem_kernel.dylib`mach_msg_trap + 10
    frame #0: 0x00007fff92551686 libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff92550c42 libsystem_kernel.dylib`mach_msg + 70
    frame #2: 0x00007fff8d49df23 CoreFoundation`__CFRunLoopServiceMachPort + 195
    frame #3: 0x00007fff8d4a3606 CoreFoundation`__CFRunLoopRun + 1078
    frame #4: 0x00007fff8d4a2dd2 CoreFoundation`CFRunLoopRunSpecific + 290
    frame #5: 0x00007fff90e24774 HIToolbox`RunCurrentEventLoopInMode + 209
    frame #6: 0x00007fff90e24512 HIToolbox`ReceiveNextEventCommon + 356
    frame #7: 0x00007fff90e243a3 HIToolbox`BlockUntilNextEventMatchingListInMode + 62
    frame #8: 0x00007fff8f84f1d3 AppKit`_DPSNextEvent + 685
    frame #9: 0x00007fff8f84ea92 AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
    frame #10: 0x00007fff8f845e33 AppKit`-[NSApplication run] + 517
    frame #11: 0x00000001056e4900 QtGui`QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1824
    frame #12: 0x00000001052a1094 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
    frame #13: 0x00000001052a1444 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
    frame #14: 0x00000001052a3b2c QtCore`QCoreApplication::exec() + 188
    frame #15: 0x000000010000f4b8 mythfrontend`main + 15992 at main.cpp:1758
    frame #16: 0x000000010000b614 mythfrontend`start + 52

  thread #2: tid = 0x3103, 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #0: 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #1: 0x00007fff8f0aee26 libdispatch.dylib`_dispatch_mgr_invoke + 883
    frame #2: 0x00007fff8f0aea2a libdispatch.dylib`_dispatch_mgr_thread + 54

  thread #5: tid = 0x3403, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x00007fff8d4e2bf6 CoreFoundation`__CFSocketManager + 1302
    frame #2: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #3: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #6: tid = 0x3503, 0x00007fff8be5cf7d libsystem_c.dylib`OSSpinLockLock$VARIANT$mp + 13
    frame #0: 0x00007fff8be5cf7d libsystem_c.dylib`OSSpinLockLock$VARIANT$mp + 13
    frame #1: 0x00007fff8be652c9 libsystem_c.dylib`__disk_stack_logging_log_stack + 1180
    frame #2: 0x00007fff8be87898 libsystem_c.dylib`free + 151
    frame #3: 0x00000001051e0f68 QtCore`QString::free(QString::Data*) + 168
    frame #4: 0x0000000102075640 libmythbase-0.26.0.dylib`MythSystem::~MythSystem() [inlined] QString::~QString() + 352 at qstring.h:880
    frame #5: 0x0000000102075608 libmythbase-0.26.0.dylib`MythSystem::~MythSystem() [inlined] QMap<QString, bool>::~QMap() + 209 at qstring.h:880
    frame #6: 0x0000000102075537 libmythbase-0.26.0.dylib`MythSystem::~MythSystem() + 87 at mythsystem.cpp:143
    frame #7: 0x0000000102100ab6 libmythbase-0.26.0.dylib`LoggerThread::launchLogServer() + 534 at logging.cpp:496
    frame #8: 0x0000000102100d3b libmythbase-0.26.0.dylib`LoggerThread::checkHeartBeat() + 91 at logging.cpp:463
    frame #9: 0x00000001052b68e1 QtCore`QObject::event(QEvent*) + 1073
    frame #10: 0x000000010572b93d QtGui`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189
    frame #11: 0x0000000105731dc4 QtGui`QApplication::notify(QObject*, QEvent*) + 1060
    frame #12: 0x00000001052a217c QtCore`QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
    frame #13: 0x00000001052a35a0 QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 736
    frame #14: 0x00000001052d7502 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 66
    frame #15: 0x00000001052a3c4e QtCore`QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>, int) + 94
    frame #16: 0x00000001020ffb62 libmythbase-0.26.0.dylib`LoggerThread::run() + 1394 at logging.cpp:376
    frame #17: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #18: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #19: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #7: tid = 0x3603, 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #0: 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000102ddc8ee libmythzmq.1.dylib`zmq::kqueue_t::loop() + 302
    frame #2: 0x0000000102ddc795 libmythzmq.1.dylib`zmq::kqueue_t::worker_routine(void*) + 21
    frame #3: 0x0000000102df0a20 libmythzmq.1.dylib`thread_routine + 272
    frame #4: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #5: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #8: tid = 0x3703, 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #0: 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000102ddc8ee libmythzmq.1.dylib`zmq::kqueue_t::loop() + 302
    frame #2: 0x0000000102ddc795 libmythzmq.1.dylib`zmq::kqueue_t::worker_routine(void*) + 21
    frame #3: 0x0000000102df0a20 libmythzmq.1.dylib`thread_routine + 272
    frame #4: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #5: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #9: tid = 0x3803, 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #0: 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000102ddc8ee libmythzmq.1.dylib`zmq::kqueue_t::loop() + 302
    frame #2: 0x0000000102ddc795 libmythzmq.1.dylib`zmq::kqueue_t::worker_routine(void*) + 21
    frame #3: 0x0000000102df0a20 libmythzmq.1.dylib`thread_routine + 272
    frame #4: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #5: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #10: tid = 0x3903, 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #0: 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000102ddc8ee libmythzmq.1.dylib`zmq::kqueue_t::loop() + 302
    frame #2: 0x0000000102ddc795 libmythzmq.1.dylib`zmq::kqueue_t::worker_routine(void*) + 21
    frame #3: 0x0000000102df0a20 libmythzmq.1.dylib`thread_routine + 272
    frame #4: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #5: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #11: tid = 0x3a03, 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #0: 0x00007fff92553d16 libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000102ddc8ee libmythzmq.1.dylib`zmq::kqueue_t::loop() + 302
    frame #2: 0x0000000102ddc795 libmythzmq.1.dylib`zmq::kqueue_t::worker_routine(void*) + 21
    frame #3: 0x0000000102df0a20 libmythzmq.1.dylib`thread_routine + 272
    frame #4: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #5: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #13: tid = 0x3c03, 0x00007fff92553386 libsystem_kernel.dylib`__semwait_signal + 10
    frame #0: 0x00007fff92553386 libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff8bef8828 libsystem_c.dylib`nanosleep + 163
    frame #2: 0x000000010214fe25 libmythbase-0.26.0.dylib`MythSystemManager::run() + 405 at system-unix.cpp:272
    frame #3: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #4: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #5: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

* thread #14: tid = 0x3d03, 0x00000001052b9100 QtCore`QMetaObject::addGuard(QObject**) + 128, stop reason = EXC_BAD_ACCESS (code=13, address=0x0)
    frame #0: 0x00000001052b9100 QtCore`QMetaObject::addGuard(QObject**) + 128
    frame #1: 0x00000001021567fa libmythbase-0.26.0.dylib`QList<QPointer<MythSystemUnix> >::takeFirst() [inlined] QPointer<MythSystemUnix>::QPointer(QPointer<MythSystemUnix> const&) + 90 at qpointer.h:62
    frame #2: 0x00000001021567ec libmythbase-0.26.0.dylib`QList<QPointer<MythSystemUnix> >::takeFirst() [inlined] QList<QPointer<MythSystemUnix> >::first() + 66 at qpointer.h:62
    frame #3: 0x00000001021567aa libmythbase-0.26.0.dylib`QList<QPointer<MythSystemUnix> >::takeFirst() + 10 at qlist.h:490
    frame #4: 0x00000001021519d9 libmythbase-0.26.0.dylib`MythSystemSignalManager::run() + 425 at system-unix.cpp:502
    frame #5: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #6: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #7: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #15: tid = 0x3e03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da60 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 304
    frame #3: 0x000000010214ec81 libmythbase-0.26.0.dylib`MythSystemIOHandler::run() + 1201 at system-unix.cpp:100
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #16: tid = 0x3f03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da60 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 304
    frame #3: 0x000000010214ec81 libmythbase-0.26.0.dylib`MythSystemIOHandler::run() + 1201 at system-unix.cpp:100
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #17: tid = 0x4003, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102051b84 libmythbase-0.26.0.dylib`MythSignalingTimer::run() + 324 at mythsignalingtimer.cpp:80
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #18: tid = 0x4103, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x00000001052d2dc5 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 389
    frame #2: 0x00000001052d70a3 QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 435
    frame #3: 0x00000001052d7572 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 178
    frame #4: 0x00000001052a1094 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
    frame #5: 0x00000001052a1444 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
    frame #6: 0x0000000105189f08 QtCore`QThread::exec() + 312
    frame #7: 0x000000010235c816 libmythui-0.26.0.dylib`non-virtual thunk to AppleRemote::run() + 22 at AppleRemote.cpp:122
    frame #8: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #9: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #10: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #21: tid = 0x4403, 0x00007fff92553386 libsystem_kernel.dylib`__semwait_signal + 10
    frame #0: 0x00007fff92553386 libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff8bef8828 libsystem_c.dylib`nanosleep + 163
    frame #2: 0x00007fff8bef86b2 libsystem_c.dylib`sleep + 61
    frame #3: 0x0000000104fab12a QtScript`QTWTF::TCMalloc_PageHeap::scavengerThread() + 42
    frame #4: 0x0000000104fab1b9 QtScript`QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) + 9
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #22: tid = 0x4503, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x0000000101f11091 libmythupnp-0.26.0.dylib`SSDP::run() + 433 at ssdp.cpp:292
    frame #2: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #3: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #4: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #23: tid = 0x4603, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518c223 QtCore`thread_sleep(timespec*) + 99
    frame #3: 0x000000010518c383 QtCore`QThread::msleep(unsigned long) + 147
    frame #4: 0x0000000101f1753a libmythupnp-0.26.0.dylib`TaskQueue::run() + 298 at taskqueue.cpp:150
    frame #5: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #6: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #7: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #24: tid = 0x4703, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x00000001052d2dc5 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 389
    frame #2: 0x00000001052d70a3 QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 435
    frame #3: 0x00000001052d7572 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 178
    frame #4: 0x00000001052a1094 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
    frame #5: 0x00000001052a1444 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
    frame #6: 0x0000000105189f08 QtCore`QThread::exec() + 312
    frame #7: 0x000000010200dc52 libmythbase-0.26.0.dylib`MThread::run() [inlined] MThreadInternal::QThreadRun() + 34 at mthread.cpp:80
    frame #8: 0x000000010200dc4d libmythbase-0.26.0.dylib`MThread::run() + 29 at mthread.cpp:321
    frame #9: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #10: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #11: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #25: tid = 0x4803, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x00000001052d2dc5 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 389
    frame #2: 0x00000001052d70a3 QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 435
    frame #3: 0x00000001052d7572 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 178
    frame #4: 0x00000001052a1094 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
    frame #5: 0x00000001052a1444 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
    frame #6: 0x0000000105189f08 QtCore`QThread::exec() + 312
    frame #7: 0x000000010200dc52 libmythbase-0.26.0.dylib`MThread::run() [inlined] MThreadInternal::QThreadRun() + 34 at mthread.cpp:80
    frame #8: 0x000000010200dc4d libmythbase-0.26.0.dylib`MThread::run() + 29 at mthread.cpp:321
    frame #9: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #10: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #11: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #26: tid = 0x4903, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #27: tid = 0x4a03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #28: tid = 0x4b03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #29: tid = 0x4c03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #30: tid = 0x4d03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #31: tid = 0x4e03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #32: tid = 0x4f03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #33: tid = 0x5003, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #34: tid = 0x5103, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x00000001052d2dc5 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 389
    frame #2: 0x00000001052d70a3 QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 435
    frame #3: 0x00000001052d7572 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 178
    frame #4: 0x00000001052a1094 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
    frame #5: 0x00000001052a1444 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
    frame #6: 0x0000000105189f08 QtCore`QThread::exec() + 312
    frame #7: 0x000000010200dc52 libmythbase-0.26.0.dylib`MThread::run() [inlined] MThreadInternal::QThreadRun() + 34 at mthread.cpp:80
    frame #8: 0x000000010200dc4d libmythbase-0.26.0.dylib`MThread::run() + 29 at mthread.cpp:321
    frame #9: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #10: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #11: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #35: tid = 0x5203, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102012438 libmythbase-0.26.0.dylib`MPoolThread::run() + 168 at mthreadpool.cpp:71
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #36: tid = 0x5303, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x0000000102025290 libmythbase-0.26.0.dylib`MythSocketThread::run() + 3888 at mythsocketthread.cpp:263
    frame #2: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #3: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #4: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #37: tid = 0x5403, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da60 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 304
    frame #3: 0x0000000102089e6a libmythbase-0.26.0.dylib`MythDownloadManager::run() + 1866 at mythdownloadmanager.cpp:281
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #41: tid = 0x5803, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x00000001052d2dc5 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 389
    frame #2: 0x00000001052d70a3 QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 435
    frame #3: 0x00000001052d7572 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 178
    frame #4: 0x00000001052a1094 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
    frame #5: 0x00000001052a1444 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
    frame #6: 0x0000000105189f08 QtCore`QThread::exec() + 312
    frame #7: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #8: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #9: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #42: tid = 0x5903, 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #0: 0x00007fff92553322 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
    frame #1: 0x00000001052d2dc5 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 389
    frame #2: 0x00000001052d70a3 QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 435
    frame #3: 0x00000001052d7572 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 178
    frame #4: 0x00000001052a1094 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
    frame #5: 0x00000001052a1444 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
    frame #6: 0x0000000105189f08 QtCore`QThread::exec() + 312
    frame #7: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #8: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #9: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

  thread #173: tid = 0xdc03, 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x00007fff925530fa libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8be72fc9 libsystem_c.dylib`_pthread_cond_wait + 869
    frame #2: 0x000000010518da40 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 272
    frame #3: 0x0000000102051b84 libmythbase-0.26.0.dylib`MythSignalingTimer::run() + 324 at mythsignalingtimer.cpp:80
    frame #4: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #5: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #6: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

Relevant thread:

* thread #14: tid = 0x3d03, 0x00000001052b9100 QtCore`QMetaObject::addGuard(QObject**) + 128, stop reason = EXC_BAD_ACCESS (code=13, address=0x0)
    frame #0: 0x00000001052b9100 QtCore`QMetaObject::addGuard(QObject**) + 128
    frame #1: 0x00000001021567fa libmythbase-0.26.0.dylib`QList<QPointer<MythSystemUnix> >::takeFirst() [inlined] QPointer<MythSystemUnix>::QPointer(QPointer<MythSystemUnix> const&) + 90 at qpointer.h:62
    frame #2: 0x00000001021567ec libmythbase-0.26.0.dylib`QList<QPointer<MythSystemUnix> >::takeFirst() [inlined] QList<QPointer<MythSystemUnix> >::first() + 66 at qpointer.h:62
    frame #3: 0x00000001021567aa libmythbase-0.26.0.dylib`QList<QPointer<MythSystemUnix> >::takeFirst() + 10 at qlist.h:490
    frame #4: 0x00000001021519d9 libmythbase-0.26.0.dylib`MythSystemSignalManager::run() + 425 at system-unix.cpp:502
    frame #5: 0x000000010518d5ba QtCore`QThreadPrivate::start(void*) + 298
    frame #6: 0x00007fff8be6e782 libsystem_c.dylib`_pthread_start + 327
    frame #7: 0x00007fff8be5b1c1 libsystem_c.dylib`thread_start + 13

Change History (7)

comment:1 Changed 7 years ago by beirdo

Component: MythTV - GeneralMythTV - MythSystem
Owner: set to beirdo
Status: newassigned
Version: UnspecifiedMaster Head

comment:2 Changed 7 years ago by beirdo

Type: Bug Report - GeneralBug Report - Crash

comment:3 Changed 7 years ago by Gavin Hurlbut <ghurlbut@…>

In 24da25f3f2be46f5b029c0d28a502f9cb0048cdc/mythtv:

Convert the MythSystemPrivate? classes to use RefCounters?

We were getting some odd race conditions caused by the timing of deletion of
the MythSystemPrivate? data (MythSystemUnix? in particular on Linux and OSX).
As we now have a common ReferenceCounter? class to use, I have converted this
over to use ReferenceCounter? to control the deletion. One reference is made
on creation, and a second when it is added to the process map. The second
reference is decremented when the MythSystemSignalThread? is done shutting it
down cleanly.

NOTE: I may have missed some dependency on the parent item which may have
been deleted already. If this happens, please let me know. It would most
likely crash hard in this case. I'll take another look over it in a bit.

Refs #10775. Refs #10889.

comment:4 Changed 7 years ago by beirdo

Milestone: unknown0.26
Status: assignedinfoneeded

Please retest with the latest. I think it should be fixed, and any segfaults in that area now will need fixing for sure still.

comment:5 Changed 7 years ago by JYA

I don't think it's related to the same crash, but it has crashed again this morning.

(gdb) bt
#0  0x00007fff910ed686 in mach_msg_trap ()
#1  0x00007fff910ecc42 in mach_msg ()
#2  0x00007fff9071df23 in __CFRunLoopServiceMachPort ()
#3  0x00007fff90723606 in __CFRunLoopRun ()
#4  0x00007fff90722dd2 in CFRunLoopRunSpecific ()
#5  0x00007fff8a113774 in RunCurrentEventLoopInMode ()
#6  0x00007fff8a113512 in ReceiveNextEventCommon ()
#7  0x00007fff8a1133a3 in BlockUntilNextEventMatchingListInMode ()
#8  0x00007fff8808afa3 in _DPSNextEvent ()
#9  0x00007fff8808a862 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#10 0x00007fff88081c03 in -[NSApplication run] ()
#11 0x00000001056d1900 in QEventDispatcherMac::processEvents ()
#12 0x000000010528e094 in QEventLoop::processEvents ()
#13 0x000000010528e444 in QEventLoop::exec ()
#14 0x0000000105290b2c in QCoreApplication::exec ()

comment:6 Changed 7 years ago by beirdo

doubt that's related (nor is it of much use to us, unfortunately)

comment:7 Changed 7 years ago by beirdo

Resolution: Fixed
Status: infoneededclosed

Since this seems to be solved, closing. Can always be reopened if it reoccurs.

Note: See TracTickets for help on using tickets.