[mythtv-users] .28/fixes mythfrontend seg fault

Kevin Calvert kevin at eleventhree.com
Mon Apr 3 05:21:43 UTC 2017


BT created. Hopefully you guys have more luck reading this than I do.

On Sun, Apr 2, 2017 at 12:56 PM Paul Harrison <mythtv at sky.com> wrote:

> On 02/04/17 15:25, Kevin Calvert wrote:
> > Any idea on debugging this? I get a segmentation fault when launching
> > myhtfrontend on the latest pull from the .28/fixes branch.
> >
> > lr at lr:~$ mythfrontend  --loglevel=debug > frontend.log
> >
> > Handling Segmentation fault
> >
> > Segmentation fault (core dumped)
> >
> >
> > Attached is the frontend.log. There's really no details in it, though.
> >
> > It's a weird one. Nothing changed, knowingly. I also tried trashing the
> > partitions and starting over again only to wind up with the same results.
> >
> >
> > On the other frontends in my house, everything is still working fine.
> > Unfortunately this is the frontend for my main tv so it's the most
> > noticeable. I have a script that does apt-get upgrade's and also does a
> > git pull on mythtv, before actually launch mythfrontend, when the
> > frontend restarts--and this happened after the latest restart.
> >
> >
> > I haven't restarted the other frontends yet to kick off this same
> > process, so I guess there's a possibility that something with the
> > apt-get (I'm running a plain vanilla xubuntu 16.04.2 install on the
> > frontends) upgrades and/or the mythtv pull is causing it not to play
> nice.
> >
> >
> > Any help is obviously greatly appreciated.
> >
>
> If you can get a backtrace showing where the crash is happening then
> someone may be able to help you.
>
> Since you appear to have core dump you may be able to create a BT from
> that using the instructions in 'Using Core Files' here:-
> https://www.mythtv.org/wiki/Debugging
>
> Paul H.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20170403/4ceb42f2/attachment.html>
-------------- next part --------------
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from mythfrontend...done.
[New LWP 31454]
[New LWP 31455]
[New LWP 31462]
[New LWP 31460]
[New LWP 31457]
[New LWP 31456]
[New LWP 31461]
[New LWP 31459]
[New LWP 31458]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `mythfrontend'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f22e0c984d5 in std::_Rb_tree<double, std::pair<double const, short>, std::_Select1st<std::pair<double const, short> >, std::less<double>, std::allocator<std::pair<double const, short> > >::_M_move_data (this=0xd7bf38, __x=...)
    at /usr/include/c++/5/bits/stl_tree.h:1346
1346	      _M_root()->_M_parent = _M_end();
[Current thread is 1 (Thread 0x7f22c9f278c0 (LWP 31454))]
(gdb) set pagination off
(gdb) thread apply all bt

Thread 9 (Thread 0x7f22c583f700 (LWP 31458)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007f22dec2f996 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f22e110af8e in LoggerThread::run (this=0xce8cf0) at logging.cpp:399
#3  0x00007f22e1036e70 in MThreadInternal::run (this=0xcdac80) at mthread.cpp:79
#4  0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f22de9736ba in start_thread (arg=0x7f22c583f700) at pthread_create.c:333
#6  0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f22b7fff700 (LWP 31459)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007f22dec2f996 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f22e117223a in MythSystemLegacyManager::run (this=0xcd9030) at mythsystemunix.cpp:283
#3  0x00007f22e1036e70 in MThreadInternal::run (this=0xcd81f0) at mthread.cpp:79
#4  0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f22de9736ba in start_thread (arg=0x7f22b7fff700) at pthread_create.c:333
#6  0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f22b6ffd700 (LWP 31461)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f22dec2fa5b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f22e1170f9d in MythSystemLegacyIOHandler::run (this=0xd0c110) at mythsystemunix.cpp:102
#3  0x00007f22e1036e70 in MThreadInternal::run (this=0xcd5780) at mthread.cpp:79
#4  0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f22de9736ba in start_thread (arg=0x7f22b6ffd700) at pthread_create.c:333
#6  0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f22c6841700 (LWP 31456)):
#0  0x00007f22dddfcb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f22d45b538c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f22d45b549c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f22dee657eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f22dee0cb4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f22dec29834 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f22e1036ec6 in MThreadInternal::exec (this=0xcda890) at mthread.cpp:85
#7  0x00007f22e1036554 in MThread::exec (this=0xcd9970) at mthread.cpp:327
#8  0x00007f22e11181f1 in LogServerThread::run (this=0xcd9960) at loggingserver.cpp:865
#9  0x00007f22e1036e70 in MThreadInternal::run (this=0xcda890) at mthread.cpp:79
#10 0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f22de9736ba in start_thread (arg=0x7f22c6841700) at pthread_create.c:333
#12 0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f22c6040700 (LWP 31457)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007f22dec2f996 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f22e1118d0f in LogForwardThread::run (this=0x7f22b8003880) at loggingserver.cpp:1173
#3  0x00007f22e1036e70 in MThreadInternal::run (this=0x7f22b8003b30) at mthread.cpp:79
#4  0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f22de9736ba in start_thread (arg=0x7f22c6040700) at pthread_create.c:333
#6  0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f22b77fe700 (LWP 31460)):
#0  0x00007f22de97cc1d in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f22e11744d7 in MythSystemLegacySignalManager::run (this=0xcf0b40) at mythsystemunix.cpp:515
#2  0x00007f22e1036e70 in MThreadInternal::run (this=0xcd5da0) at mthread.cpp:79
#3  0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f22de9736ba in start_thread (arg=0x7f22b77fe700) at pthread_create.c:333
#5  0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f22b67fc700 (LWP 31462)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f22dec2fa5b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f22e1170f9d in MythSystemLegacyIOHandler::run (this=0xd1c1e0) at mythsystemunix.cpp:102
#3  0x00007f22e1036e70 in MThreadInternal::run (this=0xcd7f50) at mthread.cpp:79
#4  0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f22de9736ba in start_thread (arg=0x7f22b67fc700) at pthread_create.c:333
#6  0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f22c7465700 (LWP 31455)):
#0  0x00007f22dddfcb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f22d1b96c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f22d1b988d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f22c9b80629 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f22dec2e7be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f22de9736ba in start_thread (arg=0x7f22c7465700) at pthread_create.c:333
#6  0x00007f22dde0882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f22c9f278c0 (LWP 31454)):
#0  0x00007f22e0c984d5 in std::_Rb_tree<double, std::pair<double const, short>, std::_Select1st<std::pair<double const, short> >, std::less<double>, std::allocator<std::pair<double const, short> > >::_M_move_data (this=0xd7bf38, __x=...) at /usr/include/c++/5/bits/stl_tree.h:1346
#1  0x00007f22e0c973e1 in std::_Rb_tree<double, std::pair<double const, short>, std::_Select1st<std::pair<double const, short> >, std::less<double>, std::allocator<std::pair<double const, short> > >::operator=(std::_Rb_tree<double, std::pair<double const, short>, std::_Select1st<std::pair<double const, short> >, std::less<double>, std::allocator<std::pair<double const, short> > >&&) (this=0xd7bf38, __x=<unknown type in /usr/local/lib/libmythui-0.28.so.0, CU 0x7b21cd, DIE 0x7d70eb>) at /usr/include/c++/5/bits/stl_tree.h:1394
#2  0x00007f22e0c96e07 in std::map<double, short, std::less<double>, std::allocator<std::pair<double const, short> > >::operator=(std::map<double, short, std::less<double>, std::allocator<std::pair<double const, short> > >&&) (this=0xd7bf38) at /usr/include/c++/5/bits/stl_map.h:96
#3  0x00007f22e0c96e33 in DisplayResScreen::operator=(DisplayResScreen&&) (this=0xd7bf38) at DisplayResScreen.h:24
#4  0x00007f22e0d4111b in std::swap<DisplayResScreen> (__a=..., __b=...) at /usr/include/c++/5/bits/move.h:186
#5  0x00007f22e0d40c15 in std::iter_swap<__gnu_cxx::__normal_iterator<DisplayResScreen*, std::vector<DisplayResScreen, std::allocator<DisplayResScreen> > >, __gnu_cxx::__normal_iterator<DisplayResScreen*, std::vector<DisplayResScreen, std::allocator<DisplayResScreen> > > > (__a=..., __b=...) at /usr/include/c++/5/bits/stl_algobase.h:148
#6  0x00007f22e0d40463 in std::__unguarded_partition<__gnu_cxx::__normal_iterator<DisplayResScreen*, std::vector<DisplayResScreen, std::allocator<DisplayResScreen> > >, __gnu_cxx::__ops::_Iter_less_iter> (__first=..., __last=..., __pivot=..., __comp=...) at /usr/include/c++/5/bits/stl_algo.h:1904
#7  0x00007f22e0d3fb60 in std::__unguarded_partition_pivot<__gnu_cxx::__normal_iterator<DisplayResScreen*, std::vector<DisplayResScreen, std::allocator<DisplayResScreen> > >, __gnu_cxx::__ops::_Iter_less_iter> (__first=..., __last=..., __comp=...) at /usr/include/c++/5/bits/stl_algo.h:1918
#8  0x00007f22e0d3f0a8 in std::__introsort_loop<__gnu_cxx::__normal_iterator<DisplayResScreen*, std::vector<DisplayResScreen, std::allocator<DisplayResScreen> > >, long, __gnu_cxx::__ops::_Iter_less_iter> (__first=..., __last=..., __depth_limit=6, __comp=...) at /usr/include/c++/5/bits/stl_algo.h:1948
#9  0x00007f22e0d3e113 in std::__sort<__gnu_cxx::__normal_iterator<DisplayResScreen*, std::vector<DisplayResScreen, std::allocator<DisplayResScreen> > >, __gnu_cxx::__ops::_Iter_less_iter> (__first=..., __last=..., __comp=...) at /usr/include/c++/5/bits/stl_algo.h:1963
#10 0x00007f22e0d3d4d5 in std::sort<__gnu_cxx::__normal_iterator<DisplayResScreen*, std::vector<DisplayResScreen, std::allocator<DisplayResScreen> > > > (__first=..., __last=...) at /usr/include/c++/5/bits/stl_algo.h:4698
#11 0x00007f22e0d3c21c in DisplayResX::GetVideoModes (this=0xdd10e0) at DisplayResX.cpp:193
#12 0x00007f22e0c93e3c in DisplayRes::Initialize (this=0xdd10e0) at DisplayRes.cpp:111
#13 0x00007f22e0d3ac29 in DisplayResX::DisplayResX (this=0xdd10e0) at DisplayResX.cpp:19
#14 0x00007f22e0c93422 in DisplayRes::GetDisplayRes (lock=false) at DisplayRes.cpp:26
#15 0x00007f22e0bf60af in MythUIHelperPrivate::GetPixelAspectRatio (this=0xced390) at mythuihelper.cpp:385
#16 0x00007f22e0bf5cd9 in MythUIHelperPrivate::StoreGUIsettings (this=0xced390) at mythuihelper.cpp:372
#17 0x00007f22e0bf36c2 in MythUIHelperPrivate::Init (this=0xced390) at mythuihelper.cpp:207
#18 0x00007f22e0bf643b in MythUIHelper::Init (this=0xcd9b50, cbs=...) at mythuihelper.cpp:429
#19 0x00007f22e06458bc in MythContextPrivate::Init (this=0xcea210, gui=true, promptForBackend=false, noPrompt=false, ignoreDB=false) at mythcontext.cpp:326
#20 0x00007f22e064da0f in MythContext::Init (this=0xc81f90, gui=true, promptForBackend=false, disableAutoDiscovery=false, ignoreDB=false) at mythcontext.cpp:1182
#21 0x000000000046e68b in main (argc=1, argv=0x7fff0fa0d9b8) at main.cpp:1778
(gdb) quit


More information about the mythtv-users mailing list