mythfrontend.real crashed with SIGSEGV in pthread_join()

Bug #1000771 reported by Aaron
44
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
High
Unassigned
libcec (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Fix Released
Undecided
Thomas Mashos
Quantal
Won't Fix
Undecided
Unassigned
Raring
Invalid
Undecided
Unassigned

Bug Description

64 bit Mythbuntu remote front end crashes constantly.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: mythtv-frontend 2:0.25.0+fixes.20120517.ec51a97-0ubuntu0mythbuntu4 [modified: usr/share/mythtv/mythfrontend.sh] [origin: LP-PPA-mythbuntu-0.25]
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
.var.log.mythtv.mythavtest.log:

.var.log.mythtv.mythbackend.log:

.var.log.mythtv.mythccextractor.log:

.var.log.mythtv.mythcommflag.log:

.var.log.mythtv.mythfilldatabase.log:

.var.log.mythtv.mythjobqueue.log:

.var.log.mythtv.mythlcdserver.log:

.var.log.mythtv.mythmediaserver.log:

.var.log.mythtv.mythmetadatalookup.log:

.var.log.mythtv.mythpreviewgen.log:

.var.log.mythtv.mythshutdown.log:

.var.log.mythtv.mythtranscode.log:

.var.log.mythtv.mythtv.setup.log:

.var.log.mythtv.mythutil.log:

.var.log.mythtv.mythwelcome.log:

ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
CrashCounter: 1
CrashDB: mythbuntu
Date: Thu May 17 10:10:35 2012
ExecutablePath: /usr/bin/mythfrontend.real
InstallationMedia: Mythbuntu 12.04 "Precise Pangolin" - Release amd64 (20120425)
Installed_mythtv_dbg: 2:0.25.0+fixes.20120517.ec51a97-0ubuntu0mythbuntu4
MythTVDirectoryPermissions:
 total 8
 drwxrwsr-x 2 mythtv mythtv 4096 Apr 25 12:26 bare-client
 drwxrwsr-x 2 mythtv mythtv 4096 Apr 10 05:49 videos
ProcCmdline: /usr/bin/mythfrontend.real --syslog local7
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x7f1d430a70b7 <pthread_join+39>: mov 0x2d0(%rdi),%eax
 PC (0x7f1d430a70b7) ok
 source "0x2d0(%rdi)" (0x690073006e033f) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: mythtv
StacktraceTop:
 pthread_join (threadid=<optimized out>, thread_return=0x7fff5696f9b8) at pthread_join.c:46
 CEC::CCECProcessor::~CCECProcessor() () from /usr/lib/libcec.so
 CEC::CCECProcessor::~CCECProcessor() () from /usr/lib/libcec.so
 CEC::CLibCEC::~CLibCEC() () from /usr/lib/libcec.so
 CEC::CLibCEC::~CLibCEC() () from /usr/lib/libcec.so
Title: mythfrontend.real crashed with SIGSEGV in pthread_join()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Aaron (fqn-uirin-x08) wrote :
Aaron (fqn-uirin-x08)
visibility: private → public
Revision history for this message
Mario Limonciello (superm1) wrote :

Thanks for the report. Are you actually using CEC suport? It looks like it's crashing in the destructor to me at a glance.

Could you elaborate what was going on when this crash happened?

Revision history for this message
Aaron (fqn-uirin-x08) wrote : Re: [Bug 1000771] Re: mythfrontend.real crashed with SIGSEGV in pthread_join()
Download full text (4.0 KiB)

Nope, no CEC, honestly not even sure what that is? I have 2 myth boxes, one
is the FE/BE and the other is just a FE. The problem started when I use
irexec to launch a script I wrote, but after a while it won't even launch
just using the links in the menu or via command line.

Script that irexec calls:
#!/bin/bash
# Test to see if MythTV is running first
if ps -ef | grep xbmc.bin | grep -v grep; then
killall -v -s9 xbmc.bin
fi
if ps -ef | grep mythfrontend.re | grep -v grep; then
# Do nothing
echo “MythTV already Running!”
else
# Startup MythTV
mythfrontend
fi
exit

I was constantly getting a 139 crash error, but just found out that was due
to timezone issues. Both FE and FE/BE are now synced with a local time
server so that error seems to be gone, but I can't get mythfrontend to
start now.

I use the same script on the FE/BE box, and it works flawlessly with no
segfaults.

On Thu, May 17, 2012 at 11:09 AM, Mario Limonciello <email address hidden>wrote:

> Thanks for the report. Are you actually using CEC suport? It looks
> like it's crashing in the destructor to me at a glance.
>
> Could you elaborate what was going on when this crash happened?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1000771
>
> Title:
> mythfrontend.real crashed with SIGSEGV in pthread_join()
>
> Status in Mythbuntu, Ubuntu derivative focused upon MythTV:
> New
>
> Bug description:
> 64 bit Mythbuntu remote front end crashes constantly.
>
> ProblemType: Crash
> DistroRelease: Ubuntu 12.04
> Package: mythtv-frontend
> 2:0.25.0+fixes.20120517.ec51a97-0ubuntu0mythbuntu4 [modified:
> usr/share/mythtv/mythfrontend.sh] [origin: LP-PPA-mythbuntu-0.25]
> ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
> Uname: Linux 3.2.0-24-generic x86_64
> NonfreeKernelModules: nvidia
> .var.log.mythtv.mythavtest.log:
>
> .var.log.mythtv.mythbackend.log:
>
> .var.log.mythtv.mythccextractor.log:
>
> .var.log.mythtv.mythcommflag.log:
>
> .var.log.mythtv.mythfilldatabase.log:
>
> .var.log.mythtv.mythjobqueue.log:
>
> .var.log.mythtv.mythlcdserver.log:
>
> .var.log.mythtv.mythmediaserver.log:
>
> .var.log.mythtv.mythmetadatalookup.log:
>
> .var.log.mythtv.mythpreviewgen.log:
>
> .var.log.mythtv.mythshutdown.log:
>
> .var.log.mythtv.mythtranscode.log:
>
> .var.log.mythtv.mythtv.setup.log:
>
> .var.log.mythtv.mythutil.log:
>
> .var.log.mythtv.mythwelcome.log:
>
> ApportVersion: 2.0.1-0ubuntu7
> Architecture: amd64
> CrashCounter: 1
> CrashDB: mythbuntu
> Date: Thu May 17 10:10:35 2012
> ExecutablePath: /usr/bin/mythfrontend.real
> InstallationMedia: Mythbuntu 12.04 "Precise Pangolin" - Release amd64
> (20120425)
> Installed_mythtv_dbg: 2:0.25.0+fixes.20120517.ec51a97-0ubuntu0mythbuntu4
> MythTVDirectoryPermissions:
> total 8
> drwxrwsr-x 2 mythtv mythtv 4096 Apr 25 12:26 bare-client
> drwxrwsr-x 2 mythtv mythtv 4096 Apr 10 05:49 videos
> ProcCmdline: /usr/bin/mythfrontend.real --syslog local7
> ProcEnviron:
> TERM=xterm
> PATH=(custom, no user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SegvAnalysis:
> Segfault happened at: 0x7f1d430a70b7 <pthread_join+39>: ...

Read more...

Revision history for this message
Aaron (fqn-uirin-x08) wrote :

Hmm, I just read about CEC. I do have it connected via HDMI.

Revision history for this message
Aaron (fqn-uirin-x08) wrote :

ahhh, finally solved, no more crashing!!!!

I compiled and installed libcec from here: http://libcec.pulse-eight.com/

I do not have a cec adapter, but now that libcec is laoded it detects there is no cec adapter and Mythfrontend loads without a segfault.

Revision history for this message
Robert Kulagowski (rkulagow-gmail) wrote :

Mario, it looks like
https://github.com/Pulse-Eight/libcec/commit/5806561ef938c6201adf4dccb3f80cebb1aa215b

fixes the issue, but the packaged version of libcec / libcec-dev is earlier than that.

This is affecting MythTV trunk and can cause segfaults, including in mythtv-setup.

Revision history for this message
Thomas Mashos (tgm4883) wrote :

Need to contact upstream and see if we can get a fix in debian and a sync/backport to precise & quantal

Changed in mythbuntu:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Thomas Mashos (tgm4883) wrote :

I've emailed the upstream maintainer and am waiting to hear back.

Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 pthread_join (threadid=<optimized out>, thread_return=0x7fff5696f9b8) at pthread_join.c:46
 ?? ()
 ?? ()
 ?? ()
 ?? ()

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in libcec (Ubuntu):
status: New → Invalid
Revision history for this message
Apport retracing service (apport) wrote : Crash report cannot be processed
Download full text (12.4 KiB)

Thank you for your report!

However, processing it in order to get sufficient information for the
developers failed (it does not generate a useful symbolic stack trace). This
might be caused by some outdated packages which were installed on your system
at the time of the report:

mythtv-frontend version 2:0.25.0+fixes.20120517.ec51a97-0ubuntu0mythbuntu4 required, but 2:0.25.2+fixes.20120802.46cab93-0ubuntu1 is available
libqtcore4 version 4:4.8.1-0ubuntu4.1 required, but 4:4.8.1-0ubuntu4.4 is available
libtiff4 version 3.9.5-2ubuntu1 required, but 3.9.5-2ubuntu1.4 is available
mountall version 2.36 required, but 2.36.4 is available
libldap-2.4-2 version 2.4.28-1.1ubuntu4 required, but 2.4.28-1.1ubuntu4.2 is available
libmagickcore4 version 8:6.6.9.7-5ubuntu3.1 required, but 8:6.6.9.7-5ubuntu3.2 is available
outdated debug symbol package for libmagickcore4: package version 8:6.6.9.7-5ubuntu3.2 dbgsym version 8:6.6.9.7-5ubuntu3
libqt4-sql-mysql version 4:4.8.1-0ubuntu4.1 required, but 4:4.8.1-0ubuntu4.4 is available
libxml-sax-perl version 0.99+dfsg-1 required, but 0.99+dfsg-1ubuntu0.1 is available
libk5crypto3 version 1.10+dfsg~beta1-2 required, but 1.10+dfsg~beta1-2ubuntu0.3 is available
libudev0 version 175-0ubuntu9 required, but 175-0ubuntu9.2 is available
outdated debug symbol package for libudev0: package version 175-0ubuntu9.2 dbgsym version 175-0ubuntu9
libproxy1 version 0.4.7-0ubuntu4 required, but 0.4.7-0ubuntu4.1 is available
outdated debug symbol package for libproxy1: package version 0.4.7-0ubuntu4.1 dbgsym version 0.4.7-0ubuntu4
libxcb-shm0 version 1.8.1-1 required, but 1.8.1-1ubuntu0.1 is available
libgail-3-0 version 3.4.1-0ubuntu1 required, but 3.4.2-0ubuntu0.5 is available
libqt4-opengl version 4:4.8.1-0ubuntu4.1 required, but 4:4.8.1-0ubuntu4.4 is available
libgstreamer-plugins-base0.10-0 version 0.10.36-1 required, but 0.10.36-1ubuntu0.1 is available
libavformat53 version 4:0.8.1-0ubuntu1 required, but 4:0.8.5-0ubuntu0.12.04.1 is available
python2.7 version 2.7.3-0ubuntu3 required, but 2.7.3-0ubuntu3.1 is available
libavutil51 version 4:0.8.1-0ubuntu1 required, but 4:0.8.5-0ubuntu0.12.04.1 is available
libv4l-0 version 0.8.6-1ubuntu1 required, but 0.8.6-1ubuntu2 is available
outdated debug symbol package for libv4l-0: package version 0.8.6-1ubuntu2 dbgsym version 0.8.5-3ubuntu2
libcups2 version 1.5.2-9ubuntu1 required, but 1.5.3-0ubuntu6 is available
shared-mime-info version 1.0-0ubuntu4 required, but 1.0-0ubuntu4.1 is available
libgtk-3-0 version 3.4.1-0ubuntu1 required, but 3.4.2-0ubuntu0.5 is available
perl version 5.14.2-6ubuntu2 required, but 5.14.2-6ubuntu2.2 is available
tzdata version 2012b-1 required, but 2012e-0ubuntu0.12.04.1 is available
dconf-service version 0.12.0-0ubuntu1 required, but 0.12.0-0ubuntu1.1 is available
libgl1-mesa-glx version 8.0.2-0ubuntu3 required, but 8.0.4-0ubuntu0.4 is available
sudo version 1.8.3p1-1ubuntu3.2 required, but 1.8.3p1-1ubuntu3.4 is available
libplymouth2 version 0.8.2-2ubuntu30 required, but 0.8.2-2ubuntu31 is available
outdated debug symbol package for libplymouth2: package version 0.8.2-2ubuntu31 dbgsym version 0.8.2-2ubuntu30
libswscale2 version 4:0.8.1-0ubuntu1 required, bu...

tags: removed: need-amd64-retrace
Revision history for this message
Rolf Leggewie (r0lf) wrote :

quantal has seen the end of its life and is no longer receiving any updates. Marking the quantal task for this ticket as "Won't Fix".

Changed in libcec (Ubuntu Quantal):
status: New → Won't Fix
Revision history for this message
Thomas Mashos (tgm4883) wrote :

Upstream fixed this by setting a minimum version of libcec, effectively disabling it in precise. This should be available via our updates repo shortly

Changed in libcec (Ubuntu Precise):
assignee: nobody → Thomas Mashos (tgm4883)
status: New → Fix Released
Changed in mythbuntu:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.