[mythtv-users] [SOLVED] mythtv-setup crashes with segmentation fault or Illegal Instruction

Mark Knecht markknecht at gmail.com
Sun May 24 19:56:50 UTC 2009


On Sat, May 23, 2009 at 9:27 PM, Jarom McDonald <jlmcdonald at gmail.com> wrote:
>
>
> On Sat, May 23, 2009 at 10:13 PM, Mark Knecht <markknecht at gmail.com> wrote:
>>
>> On Sat, May 23, 2009 at 9:00 PM, Michael T. Dean
>> <mtdean at thirdcontact.com> wrote:
>> > On 05/23/2009 06:01 PM, Mark Knecht wrote:
>> >>
>> >> On my new server I got past the mysql access problems and ONE time it
>> >> allowed me to run mythtv-setup. However now am seeing both
>> >> mythtv-setup and mythfrontend crash with a segmentation fault message,
>> >> and sometimes a message that just says 'Illegal Instruction'. I've
>> >> done simple things like restarting daemons and rebooting, etc. but
>> >> nothing so far has solved it.
>> >
>> > Illegal instruction generally means the program was compiled for a
>> > similar,
>> > but not quite right, architecture--for example, compiled for i686 but
>> > executed on an i486 (sorry, I can't give PowerPC equivalents because I
>> > don't
>> > know the family).  Sounds like a compile issue.
>> >
>> > Mike
>>
>> Yeah, that was my thought also. Since this little Gentoo brick hadn't
>> been updated in 6 months there was a gcc upgrade so I took the
>> opportunity to do an emerge -e world and start rebuilding the complete
>> machine. I figure it should be close to done when I get up tomrrow
>> morning or hopefully by noon. Maybe that will help.
>>
>> More interesting came from some Googling while this got started. Seems
>> this is a very common problem and at least some people fixed it by
>> downgrading mesa from 7.3 to 7.2, so I'l likely try that tomorrow if
>> this rebuild doesn't fix it. The problem I had there was emerge
>> started complaining about revisions and that might mean downgrading
>> all of X or something. (It's a mistake that mythtv-setup is a GUI. It
>> would be nicer if it was a small script that ran in a console window
>> for pure server apps.)
>>
>> I'm not a developer type so I'm reticent to do it but if it's still
>> broken I'll investigate how to get a backtrace and if successful then
>> I'll try and get that to the Myth devs. This problem has been going on
>> one way or another for 4-5 years it seems. I find similar messages
>> going back to 2004/2005.
>>
>> Don't worry about not understanding PowerPC. It seems very few do
>> anymore. I was shocked when I looked at the Gentoo PPC-users list
>> archives and found that other than me there had only been 2 or 3 other
>> people ask questions since I built this thing 6 months ago! The
>> architecture is truly dead, but I'm hopeful that this little box has
>> enough horse power to control a couple of HDHR's and writing data to 1
>> or 2 external 1394 drives. It might just be useful, if I can ever get
>> it to work!
>>
>> Again, thanks for the help.
>>
>> Cheers,
>> Mark
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
> I don't think it's related to the PPC archive, as I've been experiencing the
> same thing on my Gentoo x86 box. It started happening about April, following
> an xorg-server upgrade. I was forced to completely remove everything having
> do to with X and then re-emerge with a downgraded version.
>
> Since you have another server, you could always set up X11-forwarding and
> run mythtv-setup remotely. Once you get it configured, hopefully most of the
> regular maintenance can be done through mythweb.
>
> Jarom

Jarom,
   It's not PPC. It's mesa. After Googling around a bit and reading a
number of threads there is apparently a bug introduced in the 7.3
version of mesa which has been identified as the root cause of this
problem. Math triggers something in a library which triggers the
problem in mesa.

   There is reportedly a fix in the higher 7.4 and 7.5 revisions but
that ended up being difficult for me to install at this time so I
rolled back to 7.2 for now which fixed it also. I am now able to at
least start mythtv-setup and run mythfrontend successfully which is a
first on this machine.

   This is with xorg-server-1.5 so if you wanted to try moving forward
one of these days on xorg-server be careful about which version of
mesa you choose:

MacMini ~ # emerge -p xorg-server mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-7.2
[ebuild   R   ] x11-base/xorg-server-1.5.3-r6
MacMini ~ #

   Hope this helps. Additional info attached in case someone else runs
into this in the future.

Cheers,
Mark

MacMini ~ # uname -a
Linux MacMini 2.6.24-gentoo-r3 #1 SMP Sat Apr 19 15:19:59 PDT 2008 ppc
7447A, altivec supported PowerMac10,2 GNU/Linux
MacMini ~ #

MacMini ~ # lsmod
Module                  Size  Used by
ipv6                  266356  12
usbhid                 31780  0
snd_aoa_codec_toonie     2820  2
snd_aoa_fabric_layout    12392  0
snd_aoa                17728  2 snd_aoa_codec_toonie,snd_aoa_fabric_layout
snd_aoa_i2sbus         21124  1
ehci_hcd               33452  0
snd_pcm                83240  1 snd_aoa_i2sbus
ohci1394               35184  0
snd_timer              22792  1 snd_pcm
ohci_hcd               33284  0
snd_page_alloc          9224  1 snd_pcm
ieee1394               92624  1 ohci1394
snd                    52456  6
snd_aoa_codec_toonie,snd_aoa_fabric_layout,snd_aoa,snd_aoa_i2sbus,snd_pcm,snd_timer
soundcore               7240  1 snd
snd_aoa_soundbus        6020  2 snd_aoa_fabric_layout,snd_aoa_i2sbus
usbcore               149464  4 usbhid,ehci_hcd,ohci_hcd
ssb                    32484  0
uninorth_agp            9644  1
agpgart                33344  1 uninorth_agp
MacMini ~ #


mark at MacMini ~ $ mythtv-setup --geometry 800x600
2009-05-24 12:56:23.837 Using runtime prefix = /usr
2009-05-24 12:56:23.859 DPMS is active.
2009-05-24 12:56:23.860 Unable to read configuration file mysql.txt
2009-05-24 12:56:23.861 Empty LocalHostName.
2009-05-24 12:56:23.861 Using localhost value of MacMini
2009-05-24 12:56:23.883 New DB connection, total: 1
2009-05-24 12:56:23.889 Connected to database 'mythconverg' at host: localhost
2009-05-24 12:56:23.891 Closing DB connection named 'DBManager0'
2009-05-24 12:56:23.899 Primary screen 0.
2009-05-24 12:56:23.901 Connected to database 'mythconverg' at host: localhost
2009-05-24 12:56:23.904 Using screen 0, 1280x1024 at 0,0
2009-05-24 12:56:23.927 Overriding GUI, width=800, height=600 at 0,0
2009-05-24 12:56:23.930 New DB connection, total: 2
2009-05-24 12:56:23.932 Connected to database 'mythconverg' at host: localhost
2009-05-24 12:56:23.935 Current Schema Version: 1214
2009-05-24 12:56:24.088 No theme dir: /home/mark/.mythtv/themes/G.A.N.T
2009-05-24 12:56:24.091 Switching to square mode (G.A.N.T)
2009-05-24 12:56:24.143 Using the Qt painter
2009-05-24 12:56:24.144 JoystickMenuClient Error: Joystick disabled -
Failed to read /home/mark/.mythtv/joystickmenurc
2009-05-24 12:56:25.159 Loading from: /usr/share/mythtv/themes/G.A.N.T/base.xml
2009-05-24 12:56:25.420 Loading from: /usr/share/mythtv/themes/default/base.xml
2009-05-24 12:56:27.013 No theme dir: /home/mark/.mythtv/themes/G.A.N.T
2009-05-24 12:56:31.275 Connecting to backend server:
192.168.1.61:6543 (try 1 of 5)
2009-05-24 12:56:31.277 Using protocol version 40
2009-05-24 12:56:31.283 Received a remote 'Clear Cache' request
mark at MacMini ~ $


More information about the mythtv-users mailing list