Description of problem: mythbackend and mythtv-setup both segfault on Mageia2 # systemctl status mythbackend.service mythbackend.service - MythTV backend service Loaded: loaded (/lib/systemd/system/mythbackend.service; enabled) Active: failed (Result: signal) since Wed, 23 May 2012 23:03:59 +0100; 2min 21s ago Process: 2167 ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv/ (code=killed, signal=SEGV) CGroup: name=systemd:/system/mythbackend.service May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.245634 N Setting Log Level to LOG_INFO May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.245783 I Added logging to the console May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.245892 I Added logging to /var/log/mythtv/mythbackend.20120...67.log May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.245919 I Added database logging to table logging May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.246114 N Setting up SIGHUP handler May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.246533 N Using runtime prefix = /usr May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.246957 N Read conf dir = @syscondir@/mythtv May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.247014 N Using configuration directory = @syscondir@/mythtv May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.247343 I Assumed character encoding: en_GB.UTF-8 May 23 23:03:59 mail.localdomain mythbackend[2167]: 2012-05-23 23:03:59.247734 E Unable to read configuration file mysql.txt Note it is trying to find the configuration file in @syscondir@/mythtv No matter where I put the config files ( /var/lib/mythtv or /root) they are not found.
I managed to get mythbackend to read the config files by editing /lib/systemd/system/mythbackend.service [Service] Type=simple Environment=MYTHCONFDIR=/var/lib/mythtv But it still segfaults :-(
Today I tried mythbackend out in an x86_64 Virtualbox and it worked OK. Then tried with i586 mythtv packages in an x86_64 Virtualbox and it seg faulted. The myth server I originally had the problem with was a clean i586 installation. I reinstalled the server as x86_64 and now mythbackend works without seg faulting and without having to edit anything to make it read the correct configuration file. I shall try again in a fresh i586 virtual box just in case it is an i586 specific issue.
Hardware: x86_64 => i586
Tried mythbackend and myth-setup on a clean install i586 in a vbox. Initialised database with mysql -u root -p < /usr/share/mythtv/initialdb/mc.sql # urpmi mythtv-setup Package mythtv-setup-0.25-20120418.3.mga2.tainted.i586 is already installed [root@mageia2 mythtv]# mythtv-setup 2012-05-31 21:09:31.199912 C mythtv-setup version: [0.25-20120418.3.mga2.tainted] www.mythtv.org 2012-05-31 21:09:31.199937 N Enabled verbose msgs: general 2012-05-31 21:09:31.199960 N Setting Log Level to LOG_INFO 2012-05-31 21:09:31.199996 I Added logging to the console 2012-05-31 21:09:31.200006 I Added database logging to table logging 2012-05-31 21:09:31.200110 N Setting up SIGHUP handler 2012-05-31 21:09:31.200182 N Using runtime prefix = /usr 2012-05-31 21:09:31.200195 N Using configuration directory = /root/.mythtv 2012-05-31 21:09:31.200311 I Assumed character encoding: en_GB.UTF-8 2012-05-31 21:09:31.200674 E Unable to read configuration file mysql.txt 2012-05-31 21:09:31.200816 N Empty LocalHostName. 2012-05-31 21:09:31.200821 I Using localhost value of mageia2.localdomain cannot find libcec.solibcec.so: cannot open shared object file: No such file or directory Segmentation fault # mythbackend --user=mythtv 2012-05-31 21:10:10.248936 C mythbackend version: [0.25-20120418.3.mga2.tainted] www.mythtv.org 2012-05-31 21:10:10.248963 N Enabled verbose msgs: general 2012-05-31 21:10:10.248989 N Setting Log Level to LOG_INFO 2012-05-31 21:10:10.249028 I Added logging to the console 2012-05-31 21:10:10.249034 I Added database logging to table logging 2012-05-31 21:10:10.249139 N Setting up SIGHUP handler 2012-05-31 21:10:10.249207 N Using runtime prefix = /usr 2012-05-31 21:10:10.249220 N Using configuration directory = /var/lib/mythtv/.mythtv 2012-05-31 21:10:10.249327 I Assumed character encoding: en_GB.UTF-8 2012-05-31 21:10:10.266123 E Unable to read configuration file mysql.txt 2012-05-31 21:10:10.266345 N Empty LocalHostName. 2012-05-31 21:10:10.266352 I Using localhost value of mageia2.localdomain 2012-05-31 21:10:10.282527 N Setting QT default locale to en_GB 2012-05-31 21:10:10.282555 I Current locale en_GB 2012-05-31 21:10:10.282609 N Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml 2012-05-31 21:10:10.282901 E SaveSettingOnHost('FreqTable') - No database yet 2012-05-31 21:10:10.282909 E SaveSettingOnHost('ISO639Language0') - No database yet 2012-05-31 21:10:10.282914 E SaveSettingOnHost('ISO639Language1') - No database yet 2012-05-31 21:10:10.282918 E SaveSettingOnHost('TVFormat') - No database yet 2012-05-31 21:10:10.282923 E SaveSettingOnHost('VbiFormat') - No database yet 2012-05-31 21:10:10.282928 E SaveSettingOnHost('prefDupMethod') - No database yet 2012-05-31 21:10:10.282936 E SaveSettingOnHost('Country') - No database yet 2012-05-31 21:10:10.282939 E SaveSettingOnHost('DateFormat') - No database yet 2012-05-31 21:10:10.282939 E SaveSettingOnHost('EnableMHEG') - No database yet 2012-05-31 21:10:10.282939 E SaveSettingOnHost('Language') - No database yet 2012-05-31 21:10:10.282939 E SaveSettingOnHost('MythArchiveVideoFormat') - No database yet 2012-05-31 21:10:10.282939 E SaveSettingOnHost('ShortDateFormat') - No database yet 2012-05-31 21:10:10.282940 E SaveSettingOnHost('TimeFormat') - No database yet 2012-05-31 21:10:10.284132 E Error preparing query: SELECT data FROM settings WHERE value = :VALUE AND hostname = :HOSTNAME 2012-05-31 21:10:10.284152 E Driver error was [2/1146]: QMYSQL3: Unable to prepare statement Database error was: Table 'mythconverg.settings' doesn't exist 2012-05-31 21:10:10.284598 E Error preparing query: SELECT data FROM settings WHERE value = :VALUE AND hostname = :HOSTNAME 2012-05-31 21:10:10.284610 E Driver error was [2/1146]: QMYSQL3: Unable to prepare statement Database error was: Table 'mythconverg.settings' doesn't exist 2012-05-31 21:10:10.284787 I No current database version? 2012-05-31 21:10:10.285643 I Database appears to be empty/new! 2012-05-31 21:10:10.285682 C MythTV database schema is old. Waiting to see if DB is being upgraded. Segmentation fault So far the only environment where mythtv has worked for me is x86_64 in both vbox and real hardware.
Colin I think this is probably a duplicate of Bug 5716 so marking as RESOLVED DUPLICATE I just tried mythtv-backend-0.25-20120602.0.1.mga2 and both mythbackend and mythtv-setop no longer segfault on i586 *** This bug has been marked as a duplicate of bug 5716 ***
CC: (none) => mageiaStatus: NEW => RESOLVEDResolution: (none) => DUPLICATE