mythtv-backend crash: memory corruption

Bug #267274 reported by Jussi Saarinen
8
Affects Status Importance Assigned to Milestone
mythtv (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: mythtv

At least three crashes today; one crash occured while I was watching videos using a ps3 as a client. For some reason no crash file is generated to directory /var/crash so I try to report this manually.

jms% cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu intrepid (development branch)"

jms% apt-cache policy mythtv-backend
mythtv-backend:
  Installed: 0.21.0+fixes18207-0ubuntu6
  Candidate: 0.21.0+fixes18207-0ubuntu6
  Version table:
 *** 0.21.0+fixes18207-0ubuntu6 0
        500 http://mirrors.nic.funet.fi intrepid/multiverse Packages
        100 /var/lib/dpkg/status

jms% dpkg -l|grep myth
ii libgmyth0 1:0.7.1-1 GObject based library for accessing MythTV b
ii libgmythupnp0 0.7.1-1 The GObject based library for using a UPnP M
ii libmyth-0.21-0 0.21.0+fixes18207-0ubuntu6 Common library code for MythTV and add-on mo
ii libmyth-perl 0.21.0+fixes18207-0ubuntu6 A PERL library to access some MythTV feature
ii libmyth-python 0.21.0+fixes18207-0ubuntu6 A python library to access some MythTV featu
ii mythbrowser 0.21.0+fixes18207-0ubuntu4 A small web browser module for MythTV
ii mythexport 1.0.2-0ubuntu2 Export MythTV recording to portable media pl
ii mythgallery 0.21.0+fixes18207-0ubuntu4 Image gallery/slideshow add-on module for My
ii mythmusic 0.21.0+fixes18207-0ubuntu4 Music add-on module for MythTV
ii mythnews 0.21.0+fixes18207-0ubuntu4 An RSS feed news reader module for MythTV
ii mythtv 0.21.0+fixes18207-0ubuntu6 A personal video recorder application (clien
ii mythtv-backend 0.21.0+fixes18207-0ubuntu6 A personal video recorder application (serve
ii mythtv-common 0.21.0+fixes18207-0ubuntu6 A personal video recorder application (commo
ii mythtv-database 0.21.0+fixes18207-0ubuntu6 A personal video recorder application (datab
ii mythtv-frontend 0.21.0+fixes18207-0ubuntu6 A personal video recorder application (clien
ii mythtv-theme-glass-wide 0.20071107-0ubuntu1 The Glass MythTV theme (widescreen)
ii mythtv-theme-mythbuntu 0.20080421 default MythTV theme used in Mythbuntu
ii mythtv-theme-neon-wide 1:0.21.0-0ubuntu2 The Neon MythTV theme (widescreen)
ii mythtv-theme-projectgrayhem 1:0.21.0-0ubuntu1 The Project Grayhem MythTV theme
ii mythtv-theme-projectgrayhem-wide 1:0.21.0-0ubuntu1 The Project Grayhem MythTV theme (widescreen
ii mythtv-themes 0.21.0-0ubuntu2 Additional themes metapackage for MythTV
ii mythtv-transcode-utils 0.21.0+fixes18207-0ubuntu6 Utilities used for transcoding MythTV tasks
ii mythvideo 0.21.0+fixes18207-0ubuntu4 A generic video player frontend module for M
ii mythweb 0.21.0+fixes18207-0ubuntu4 Web interface add-on module for MythTV

Revision history for this message
Jussi Saarinen (jms) wrote :
Revision history for this message
Jussi Saarinen (jms) wrote :

Today backend has crashed with following in syslog:
[56280.301003] mythbackend[6502]: segfault at 6f004e0c ip b5ce9c32 sp b103d0c4 error 4 in libc-2.8.90.so[b5c7a000+158000]

Crash file was created and it is attached. There was nothing in /var/log/mythtv/mythbackend.log this time

Revision history for this message
Peter Silva (peter-bsqt) wrote :

mee too, it keeps crashing once or twice a day...

2008-11-20 20:34:40.902 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2008-11-20 20:34:40.986 Expiring 1044 MBytes for 1034 @ Wed Oct 29 19:00:00 2008 => Chaotic. Too many episodes, we only want to keep 9.
2008-11-20 20:34:41.015 Reschedule requested for id 0.
*** glibc detected *** /usr/bin/mythbackend: malloc(): memory corruption (fast): 0xab9f9b6f ***
======= Backtrace: =========

didn´t to that a few months ago.

Revision history for this message
Jason Diesel (jason-diesel) wrote :

I am just starting to get the same.

$cat /var/log/messages | grep myth
Dec 15 19:38:56 pacific kernel: [148418.947708] mythfilldatabas[14805] general protection ip:96bcb3a sp:b545080c error:0
Dec 17 20:06:54 pacific kernel: [70332.983297] mythbackend[6975]: segfault at 730071 ip b5cb3c92 sp b35777d4 error 4 in libc-2.8.90.so[b5c44000+158000]
Dec 18 22:30:01 pacific kernel: [165320.345609] mythbackend[8071]: segfault at 74657320 ip b5c68b56 sp b21fd348 error 4 in libc-2.8.90.so[b5bf0000+158000]

$ apt-cache policy mythtv-backend
mythtv-backend:
  Installed: 0.21.0+fixes18722-0ubuntu1
  Candidate: 0.21.0+fixes18722-0ubuntu1
  Version table:
 *** 0.21.0+fixes18722-0ubuntu1 0
        500 http://us.archive.ubuntu.com intrepid/multiverse Packages
        100 /var/lib/dpkg/status

Revision history for this message
Peter Silva (peter-bsqt) wrote : Re: [Bug 267274] Re: mythtv-backend crash: memory corruption

I'm running KDE 4, and plasma seems to have a memory leak. It looks like it
takes more and more memory, and then, I am guessing, a malloc fails in
mythtv and it dies.

On Fri, Dec 19, 2008 at 1:44 AM, Jason Diesel <email address hidden>wrote:

> I am just starting to get the same.
>
> $cat /var/log/messages | grep myth
> Dec 15 19:38:56 pacific kernel: [148418.947708] mythfilldatabas[14805]
> general protection ip:96bcb3a sp:b545080c error:0
> Dec 17 20:06:54 pacific kernel: [70332.983297] mythbackend[6975]: segfault
> at 730071 ip b5cb3c92 sp b35777d4 error 4 in libc-2.8.90.so
> [b5c44000+158000]
> Dec 18 22:30:01 pacific kernel: [165320.345609] mythbackend[8071]: segfault
> at 74657320 ip b5c68b56 sp b21fd348 error 4 in libc-2.8.90.so
> [b5bf0000+158000]
>
> $ apt-cache policy mythtv-backend
> mythtv-backend:
> Installed: 0.21.0+fixes18722-0ubuntu1
> Candidate: 0.21.0+fixes18722-0ubuntu1
> Version table:
> *** 0.21.0+fixes18722-0ubuntu1 0
> 500 http://us.archive.ubuntu.com intrepid/multiverse Packages
> 100 /var/lib/dpkg/status
>
> --
> mythtv-backend crash: memory corruption
> https://bugs.launchpad.net/bugs/267274
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
hamish archer (hamish-archer) wrote :

I'm getting segfaults on myth-backend every few hours. How do I start to debug this?

What info do I need to collect?

Revision history for this message
Kristian Haga Karstensen (kristianhk) wrote :

Plus one here.. Totally strange

Revision history for this message
Peter Silva (peter-bsqt) wrote :

for me it lasts many hours, but less than two days. so I have a cron to restart it at 5 am
every day... it seems to be mostly good enough now...

Revision history for this message
trogod (troy-goodson) wrote :
Download full text (8.4 KiB)

I've had three crashes of mythtbackend in the last month.

$ grep -A 1 -B 3 -Hn Backtrace /var/log/mythtv/mythbackend.log*
/var/log/mythtv/mythbackend.log-34128-2009-07-30 15:00:01.013 Finished recording Guiding Light: channel 1021
/var/log/mythtv/mythbackend.log-34129-2009-07-30 15:00:01.013 Finished recording Hawaii Five-0 "One Born Every Minute": channel 1561
/var/log/mythtv/mythbackend.log-34130-*** glibc detected *** /usr/bin/mythbackend: malloc(): memory corruption (fast): 0x000000000286212f ***
/var/log/mythtv/mythbackend.log:34131:======= Backtrace: =========
/var/log/mythtv/mythbackend.log-34132-/lib/libc.so.6[0x7f0438d28cb8]
--
/var/log/mythtv/mythbackend.log.1-19705-2009-07-13 06:01:03.386 AFD: codec AC3 has 2 channels
/var/log/mythtv/mythbackend.log.1-19706-2009-07-13 06:01:03.392 AFD: Opened codec 0xecd6f0, id(AC3) type(Audio)
/var/log/mythtv/mythbackend.log.1-19707-*** glibc detected *** /usr/bin/mythbackend: malloc(): memory corruption (fast): 0x00007f8b209c177f ***
/var/log/mythtv/mythbackend.log.1:19708:======= Backtrace: =========
/var/log/mythtv/mythbackend.log.1-19709-/lib/libc.so.6[0x7f8b31376cb8]
--
/var/log/mythtv/mythbackend.log.3-7270-2009-07-04 00:03:35.829 Reschedule requested for id 0.
/var/log/mythtv/mythbackend.log.3-7271-2009-07-04 00:03:35.841 Scheduled 1 items in 0.0 = 0.00 match + 0.01 place
/var/log/mythtv/mythbackend.log.3-7272-*** glibc detected *** /usr/bin/mythbackend: malloc(): memory corruption (fast): 0x00007fc72c2754af ***
/var/log/mythtv/mythbackend.log.3:7273:======= Backtrace: =========
/var/log/mythtv/mythbackend.log.3-7274-/lib/libc.so.6[0x7fc74b321cb8]

Some system info:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

$ apt-cache policy mythtv-backend
mythtv-backend:
  Installed: 0.21.0+fixes19961-0ubuntu8
  Candidate: 0.21.0+fixes19961-0ubuntu8
  Version table:
 *** 0.21.0+fixes19961-0ubuntu8 0
        500 http://us.archive.ubuntu.com jaunty/multiverse Packages
        100 /var/lib/dpkg/status

$ dpkg -l|grep myth
ii gtk2-engines-mythbuntu 0.4-0ubuntu2 Mythbuntu GTK+ 2.x Theme
ii libmyth-0.21-0 0.21.0+fixes19961-0ubuntu8 Common library code for MythTV and add-on mo
ii libmyth-perl 0.21.0+fixes19961-0ubuntu8 A PERL library to access some MythTV feature
ii libmyth-python 0.21.0+fixes19961-0ubuntu8 A python library to access some MythTV featu
ii mytharchive 0.21.0+fixes19556-0ubuntu8 create and burn DVD's from MythTV - binary f
ii mytharchive-data 0.21.0+fixes19556-0ubuntu8 create and burn DVD's from MythTV - data fil
ii mythbuntu-apple-trailers 0.2-0ubuntu1 Plugin providing Apple.com Movie Trailers fo
ii mythbuntu-artwork-usplash 0.8-0ubuntu2 mythbuntu artwork for usplash
ii mythbuntu-common 0.26-0ubuntu1 ...

Read more...

Revision history for this message
MarcRandolph (mrand) wrote :

Howdy! This ticket is quite old and the mythtv developers upstream have stopped focusing on 0.21 based reports in preparation for a 0.22 release later this year. Can you please try to see if this bug is reproducible on 0.22? If it is, we can try to forward this bug upstream to get the right eyes focused on it - otherwise we need to close it.

We have builds of mythtv 0.22 available on a PPA to test. Please follow the directions at http://mythbuntu.org/auto-builds to enable them.

WARNING: If you intend to revert back to 0.21 after testing, you will need to back up your database before upgrading.

    Thanks!

Changed in mythtv (Ubuntu):
status: New → Incomplete
Revision history for this message
MarcRandolph (mrand) wrote :

Howdy, we really do appreciate you opening this ticket to help improve Mythbuntu, but it needs to be closed for a number of reasons. The biggest one is that the MythTV developers have turned their efforts to the next version (0.22) and beyond and are no longer fixing bugs on 0.21.

The Mythbuntu team has builds of MythTV 0.22 available on a PPA if you are interested in upgrading. Please follow the directions at
http://mythbuntu.org/auto-builds to enable them. Please do not let the closing of this ticket dissuade you from opening a new ticket if this (or any other) problem occurs with 0.22.

WARNING: If you need to have the ability to revert back to 0.21, you will need to back up your database before upgrading since a 0.22
database can not be downgraded.

   Thanks!

Changed in mythtv (Ubuntu):
status: Incomplete → Won't Fix
Revision history for this message
Jussi Saarinen (jms) wrote :

Hi,
I have upgraded to current Karmic since reporting this issue - obviously this is not affecting 0.22.
I close this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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