Opened 20 years ago

Closed 20 years ago

#271 closed defect (fixed)

SEGFAULT on MythTV exit w/MythPhone plugin

Reported by: danielk Owned by: Isaac Richards
Priority: critical Milestone: 0.19
Component: mythphone Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

(gdb) thread apply all bt

Thread 6 (Thread -1246995536 (LWP 25131)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb6fd1956 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x4225280c in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#3  0x082fd180 in ?? ()
#4  0x424205c8 in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#5  0x00000ad1 in ?? ()
#6  0xb4433133 in ?? () from /usr/local/lib/mythtv/plugins/libmythphone.so
#7  0x41da791c in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#8  0x082767c0 in ?? ()
#9  0x00000000 in ?? ()
#10 0xb5ac5bb0 in ?? ()
#11 0xb5ac5438 in ?? ()
#12 0xb7efc170 in _dl_runtime_resolve () at dl-runtime.c:199
#13 0xb44b08be in vxmlParser::vxmlThreadWorker (this=0x82767c0) at vxml.cpp:173
#14 0xb44b08be in vxmlParser::vxmlThreadWorker (this=0x8289c28) at vxml.cpp:173
#15 0xb44b081f in vxmlParser::vxmlThread (p=0x8289c28) at vxml.cpp:162
#16 0xb6fcfaba in start_thread (arg=0xb5ac5bb0) at pthread_create.c:261
#17 0xb6e991ee in clone () from /lib/tls/libc.so.6

Thread 5 (Thread -1255388240 (LWP 25130)):
#0  0x0829de04 in ?? ()
#1  0x42251f60 in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#2  0x082f47b8 in ?? ()
#3  0xb45039c8 in ?? () from /usr/local/lib/mythtv/plugins/libmythphone.so
#4  0xb52c4368 in ?? ()
#5  0xb447c33b in SipThread::CheckUIEvents (this=0xb469f71c, sipFsm=0xb44e5ada) at sipfsm.cpp:350
#6  0xb447c33b in SipThread::CheckUIEvents (this=0x82fab80, sipFsm=0x8289b60) at sipfsm.cpp:350
#7  0xb447c070 in SipThread::SipThreadWorker (this=0x82fab80) at sipfsm.cpp:303
#8  0xb447bde5 in SipThread::run (this=0x82fab80) at sipfsm.cpp:270
#9  0x41f69e0d in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#10 0x082fab80 in ?? ()
#11 0x41f69e2c in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#12 0x082fa1b0 in ?? ()
#13 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#14 0x41f69e2c in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#15 0x082fa1b0 in ?? ()
#16 0xb6ed1001 in res_thread_freeres () at res_init.c:587
#17 0xb6fcfaba in start_thread (arg=0xb52c4bb0) at pthread_create.c:261
#18 0xb6e991ee in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1234594080 (LWP 22294)):
#0  0xb482dbd0 in ?? () from /usr/local/lib/mythtv/plugins/libmythmusic.so
#1  0xb48f29c7 in __tcf_1 () at smartplaylist.cpp:33
#2  0xb6e10341 in *__GI_exit (status=0) at exit.c:54
#3  0xb6dfb0a4 in __libc_start_main (main=0x806ebf2 <main>, argc=1, ubp_av=0xbfe049d4,
    init=0x811cb98 <__libc_csu_init>, fini=0xb7f06c80 <_rtld_local_ro>, rtld_fini=0x4,
    stack_end=0xbfe049cc) at libc-start.c:243
#4  0x0806a591 in _start () at start.S:119
#0  0x0829de04 in ?? ()

Change History (1)

comment:1 Changed 20 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [7178]) Append the plugin api to add a destroy function, and add one for mythphone so it can properly shut down its threads.

Should fix #271.

Note: See TracTickets for help on using tickets.