Opened 15 years ago

Closed 15 years ago

#5924 closed defect (fixed)

Revision 19133 segfault on startup while loading the main menu

Reported by: anonymous Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

possibly a race-condition handling the theme-cache? The frontend doesn't crash if the cache is cleaned first with:

rm -rf ~/.mythtv/themecache/*

...nor does it crash if started from gdb. A gdb-backtrace from a generated corefile shows:

(gdb) thr app all bt

Thread 8 (process 10479): #0 0xb80e8424 in kernel_vsyscall () #1 0xb65173a2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb570d6cc in QWaitCondition::wait () from /usr/lib/libQtCore.so.4 #3 0xb6d5f337 in CEvent::WaitForEvent? () from /opt/myth/lib/libmythupnp-0.22.so.0 #4 0xb6d603da in WorkerThread::run () from /opt/myth/lib/libmythupnp-0.22.so.0 #5 0xb570c6ae in ?? () from /usr/lib/libQtCore.so.4 #6 0xb651350f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #7 0xb55147ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 7 (process 10480): #0 0xb80e8424 in kernel_vsyscall () #1 0xb65173a2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb570c0b9 in ?? () from /usr/lib/libQtCore.so.4 #3 0xb570c1eb in QThread::msleep () from /usr/lib/libQtCore.so.4 #4 0xb6d4f334 in TaskQueue::run () from /opt/myth/lib/libmythupnp-0.22.so.0 #5 0xb570c6ae in ?? () from /usr/lib/libQtCore.so.4 #6 0xb651350f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #7 0xb55147ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 6 (process 10481): #0 0xb80e8424 in kernel_vsyscall () #1 0xb550cc01 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb6d4b77c in SSDP::run () from /opt/myth/lib/libmythupnp-0.22.so.0 #3 0xb570c6ae in ?? () from /usr/lib/libQtCore.so.4 #4 0xb651350f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb55147ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (process 10489): #0 0xb80e8424 in kernel_vsyscall () #1 0xb550cc01 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb68f1a91 in MythSocketThread::run () from /opt/myth/lib/libmythdb-0.22.so.0 #3 0xb570c6ae in ?? () from /usr/lib/libQtCore.so.4 #4 0xb651350f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb55147ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (process 10487): #0 0xb80e8424 in kernel_vsyscall () #1 0xb6517075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb570d6f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4 #3 0xb6b117a0 in MythContext::waitPrivRequest () from /opt/myth/lib/libmyth-0.22.so.0 #4 0x080654cb in ?? () #5 0xb651350f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb55147ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (process 10488): #0 0xb80e8424 in kernel_vsyscall () #1 0xb550cc01 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb6a3806d in LircThread::run () from /opt/myth/lib/libmythui-0.22.so.0 #3 0xb570c6ae in ?? () from /usr/lib/libQtCore.so.4 #4 0xb651350f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb55147ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (process 10490): #0 0xb80e8424 in kernel_vsyscall () #1 0xb550cc01 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb57dc150 in ?? () from /usr/lib/libQtCore.so.4 #3 0xb570c6ae in ?? () from /usr/lib/libQtCore.so.4 #4 0xb651350f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb55147ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (process 10478): #0 0xb5bc0646 in QImage::numBytes () from /usr/lib/libQtGui.so.4 #1 0xb698e59b in MythUIHelper::CacheImage? () from /opt/myth/lib/libmythui-0.22.so.0 #2 0xb698f865 in MythUIHelper::LoadCacheImage? () from /opt/myth/lib/libmythui-0.22.so.0 #3 0xb69a53ac in MythUIImage::Load () from /opt/myth/lib/libmythui-0.22.so.0 #4 0xb69a6bec in MythUIImage::Finalize () from /opt/myth/lib/libmythui-0.22.so.0 #5 0xb6976877 in XMLParseBase::ParseUIType () from /opt/myth/lib/libmythui-0.22.so.0 #6 0xb6976282 in XMLParseBase::ParseUIType () from /opt/myth/lib/libmythui-0.22.so.0 #7 0xb69b26b4 in MythUIStateType::ParseElement? () from /opt/myth/lib/libmythui-0.22.so.0 #8 0xb6975eac in XMLParseBase::ParseUIType () from /opt/myth/lib/libmythui-0.22.so.0 #9 0xb6977eae in XMLParseBase::ParseChildren? () from /opt/myth/lib/libmythui-0.22.so.0 #10 0xb697965d in XMLParseBase::doLoad () from /opt/myth/lib/libmythui-0.22.so.0 #11 0xb697a59d in XMLParseBase::LoadWindowFromXML () from /opt/myth/lib/libmythui-0.22.so.0 #12 0xb69bb8d7 in MythThemedMenuState::Create () from /opt/myth/lib/libmythui-0.22.so.0 #13 0xb69c2198 in MythThemedMenu::Init () from /opt/myth/lib/libmythui-0.22.so.0 #14 0xb69c22dd in MythThemedMenu::MythThemedMenu? () from /opt/myth/lib/libmythui-0.22.so.0 #15 0x080661a3 in ?? () #16 0x0806d35a in ?? () #17 0xb5449685 in libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #18 0x080601d1 in ?? () (gdb)

Change History (2)

comment:1 Changed 15 years ago by Anduin Withers

Owner: changed from Isaac Richards to Anduin Withers
Status: newassigned

comment:2 Changed 15 years ago by Anduin Withers

Resolution: fixed
Status: assignedclosed

(In [19134]) Closes #5924

Changes image cache to make space before cache insertion. Previously it was possible for the image just added to the cache to be removed (when the contents of the 20MB cache contain only items added within the same second) with later references to the removed item (the item being added to the cache) causing a crash (sometimes).

Note: See TracTickets for help on using tickets.