Bug 7726 - Mythtv-setup Segfaults
Summary: Mythtv-setup Segfaults
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: i586 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-07 01:57 CEST by Mark Adams
Modified: 2013-11-23 16:15 CET (History)
0 users

See Also:
Source RPM: mythtv-setup-0.25-20120418.3.mga2.tainted
CVE:
Status comment:


Attachments

Description Mark Adams 2012-10-07 01:57:37 CEST
Description of problem:
I upgraded my HTPC system to Mageia 2 and installed MythTV. All went well, but
MythTV will not run setup (or any other mythtv-related application for that
matter).

Trying to run it initially produces this:
$ mythtv-setup
2012-10-06 10:58:23.779603 C  mythtv-setup version: 
[0.25-20120418.3.mga2.tainted] www.mythtv.org
2012-10-06 10:58:23.779634 N  Enabled verbose msgs:  general
2012-10-06 10:58:23.779673 N  Setting Log Level to LOG_INFO
2012-10-06 10:58:23.779758 I  Added logging to the console
2012-10-06 10:58:23.779771 I  Added database logging to table logging
2012-10-06 10:58:23.779889 N  Setting up SIGHUP handler
2012-10-06 10:58:23.780178 N  Using runtime prefix = /usr
2012-10-06 10:58:23.780209 N  Using configuration directory =
/home/<user>/.mythtv
2012-10-06 10:58:23.780491 I  Assumed character encoding: en_US.UTF-8
Segmentation fault

I get the same thing running as user or root.


GDB shows me this:
gdb mythtv-setup -x gdbcommands > gdb_mythtv-setup.txt

****************************************************
 WARNING: -l has been removed as of MythTV 0.25
          This option has been removed as part of rewrite of the logging
interface. Please update your init scripts to use --syslog to interface wi
th your system's existing system logging daemon, or --logpath to specify a
dirctory for MythTV to write its logs to.
****************************************************

mythtv-setup version:  [0.25-20120418.3.mga2.tainted] www.mythtv.org

Mythtv-setup is the setup application for the backend server. It is
used to configure the backend, and manage tuner cards and storage.
Most settings will require a restart of the backend before they take
effect.


[ I DELETED THE REST OF MYTHTV-SETUP'S HELP SCREEN HERE. IT'S IRRELEVANT. ]

cat gdb_mythtv-setup.txt shows:

GNU gdb (GDB) 7.3.50.20110722-4.mga2 (Mageia release 2)
Copyright (C) 2011 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 "i586-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/mythtv-setup...(no debugging symbols
found)...done.
Function "qFatal" not defined.
Breakpoint 1 (qFatal) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i686/libthread_db.so.1".
[Inferior 1 (process 20528) exited with code 0204]


The end of an strace on mythtv-setup shows this:

read(10, "R\0\0\0\n5.5.25-MariaDB\0\n\0\0\0B\\,b*Iq{"..., 16384) = 86
brk(0x9a69000)                          = 0x9a69000
stat64("/usr/share/mysql/charsets/Index.xml", {st_mode=S_IFREG|0644,
st_size=18261, ...}) = 0
open("/usr/share/mysql/charsets/Index.xml", O_RDONLY|O_LARGEFILE) = 11
read(11, "<?xml version='1.0' encoding=\"ut"..., 18261) = 18261
close(11)                               = 0
futex(0xaccfeb24, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(10,
"^\0\0\1\215\242\17\0\0\0\0@\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 98)
= 98
read(10, "\7\0\0\2\0\0\0\2\0\0\0", 16384) = 11
poll([{fd=10, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(10, "\f\0\0\0\2mythconverg", 16)  = 16
read(10, "\7\0\0\1\0\0\0\2\0\0\0", 16384) = 11
poll([{fd=10, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(10, "\17\0\0\0\3SET NAMES utf8", 19) = 19
read(10, "\7\0\0\1\0\0\0\2\0\0\0", 16384) = 11
poll([{fd=10, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(10, "\353\0\0\0\3SELECT COUNT(          INFO"..., 239) = 239
read(10, "\1\0\0\1\1S\0\0\2\3def\0\0\0=COUNT(         "..., 16384) = 117
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10} (Segmentation fault)
---
+++ killed by SIGSEGV +++



Environment:
uname -a
Linux pvr 3.3.8-desktop586-2.mga2 #1 SMP Mon Jul 30 21:35:45 UTC 2012 i686 i686
i386 GNU/Linux

(All packages installed via RPM)

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-mageia-linux-gnu/4.6.3/lto-wrapper
Target: i586-mageia-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
--with-slibdir=/lib --with-bugurl=http://bugs.mageia.org/
--mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release
--enable-languages=c,c++,ada,fortran,objc,obj-c++,java --enable-linker-build-id
--build=i586-mageia-linux-gnu --host=i586-mageia-linux-gnu --with-cpu=generic
--with-system-zlib --enable-threads=posix --enable-shared --enable-objc-gc
--enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-clocale=gnu --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo
--disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror
--with-ppl --with-cloog --with-python-dir=/lib/python2.7/site-packages
--enable-lto
Thread model: posix
gcc version 4.6.3 (GCC)


vim gdbcommands

handle SIGPIPE nostop noprint
handle SIG33 nostop noprint
set logging on
set pagination off
set breakpoint pending on
break qFatal
set args -l myth.log -v record,channel,siparser
run
thread apply all bt full
set logging off


Version-Release number of selected component (if applicable):

MythTV ver 0.25


How reproducible:

Unavoidable - I am unable to run MythTV-setup which means I am unable to run MythTV.

Steps to Reproduce:
1. Install MythTV via rpm
2. Attempt to run mythtv-setup from KDE menu or command line (as root, or as user)
Manuel Hiebel 2012-10-07 10:58:57 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=7418
Assignee: bugsquad => mageia

Comment 1 Manuel Hiebel 2013-10-22 12:19:32 CEST
This message is a reminder that Mageia 2 is nearing its end of life.
Approximately one month from now Mageia will stop maintaining and issuing updates for Mageia 2. At that time this bug will be closed as WONTFIX (EOL) if it remains open with a Mageia 'version' of '2'.

Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Mageia version prior to Mageia 2's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Mageia 2 is end of life.  If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Mageia release includes newer upstream software that fixes bugs or makes them obsolete.

-- 
The Mageia Bugsquad
Comment 2 Manuel Hiebel 2013-11-23 16:15:59 CET
Mageia 2 changed to end-of-life (EOL) status on ''22 November''. Mageia 2 is no
longer maintained, which means that it will not receive any further security or
bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.