Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266198 - media-tv/mythtv-0.21_p18314-r1 segmentation fault before displaying main window
Summary: media-tv/mythtv-0.21_p18314-r1 segmentation fault before displaying main window
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-15 05:49 UTC by no_return_address
Modified: 2009-08-03 01:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb backtrace (stuff.txt,3.14 KB, text/plain)
2009-04-15 05:51 UTC, no_return_address
Details
emerge --info (emerge.info,3.76 KB, text/plain)
2009-04-18 00:53 UTC, no_return_address
Details
Xorg.log from running "xinit -- :1" and then "mythtv" (Xorg.1.log,17.37 KB, text/plain)
2009-04-18 00:56 UTC, no_return_address
Details

Note You need to log in before you can comment on or make changes to this bug.
Description no_return_address 2009-04-15 05:49:13 UTC
media-tv/mythtv-0.21_p18314-r1 terminates in a segmentation fault.  This didn't happen until yesterday after an X11 upgrade (which caused a whole bunch of other problems, so this might well be X11's fault).  Before the upgrade the same executable would run just fine.

Reproducible: Always

Steps to Reproduce:
1. emerge --update world
2. Fix a bunch of X11 problems.  
3. Try to run MythTV

Actual Results:  
MythTV has a segmentation fault before displaying the main window.

Expected Results:  
MythTV doesn't crash.

I was previously running xorg-server-1.3.0.0-r6 and xf86-video-intel-2.1.1.  The upgrade that broke MythTV installed xorg-server-1.5.3-r5 and xf86-video-intel-2.6.3-r1.
Comment 1 no_return_address 2009-04-15 05:51:12 UTC
Created attachment 188382 [details]
gdb backtrace
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-17 23:27:47 UTC
Please post your `emerge --info', and attach the Xorg.log this problem occurs with.
Comment 3 Jesse Adelman 2009-04-18 00:19:15 UTC
I get a segfault with mythfrontend, myself, with the new X. I'm reconfiguring my system to provide good backtraces as I type, so hopefully I'll get better information to add to this bug. Note that my version of mythtv is 0.21_p19961-r1, however. mythbackend runs okay, though, so at least I'm not missing shows. :)
Comment 4 no_return_address 2009-04-18 00:53:02 UTC
Created attachment 188753 [details]
emerge --info
Comment 5 no_return_address 2009-04-18 00:56:41 UTC
Created attachment 188755 [details]
Xorg.log from running "xinit -- :1" and then "mythtv"
Comment 6 Jesse Adelman 2009-04-18 02:11:21 UTC
Perhaps this is related: http://svn.mythtv.org/trac/ticket/6442
Comment 7 Jesse Adelman 2009-04-18 03:59:59 UTC
For my setup, with a PVR-350, disabling glx allowed mythfronted to work again. Of course, any other OpenGL apps now fail, but I don't mind that.

Section "Modules"
   .
   .
   .
   Disable "glx"
EndSection
Comment 8 no_return_address 2009-04-18 14:36:58 UTC
Disabling glx also made the problem go away for me.  (The section name is "Module" for anyone else who wants to try.)
Comment 9 Tom Flair 2009-04-20 00:30:39 UTC
(In reply to comment #7)
> For my setup, with a PVR-350, disabling glx allowed mythfronted to work again.
> Of course, any other OpenGL apps now fail, but I don't mind that.
> 
> Section "Modules"
>    .
>    .
>    .
>    Disable "glx"
> EndSection
> 

This worked for me but I lost xv acceleration.   xvinfo doesn't show anything for my card with glx disabled.  :(
Comment 10 no_return_address 2009-04-20 02:33:12 UTC
(In reply to comment #9)
> This worked for me but I lost xv acceleration.

Perhaps I should add that when it "made the problem go away for me" it merely worked around this single bug.  The other problems the new video driver causes are still there, like bug 263414, and so I still can't actually watch anything in MythTV.
Comment 11 Anders Hellgren gentoo-dev 2009-04-26 21:46:53 UTC
OK, found a patch for mesa at https://bugs.freedesktop.org/show_bug.cgi?id=21053 that seems to solve this issue.

The crash happens at line 660 in glxcmds.c:

659    if (psc->driScreen->waitX != NULL)
660    	(*psc->driScreen->waitX)(pdraw);
Comment 12 ML Harrison 2009-07-02 16:17:42 UTC
My mythfrontend and mythtv-setup were both seg faulting until I removed the GLX as above but then mythtv just showed its background with no menus.

I finally got it all to work again by eselect'ing the nvidia opengl (I have a NVidia 5200FX):

rubberneck michael # eselect opengl list
Available OpenGL implementations:
  [1]   nvidia 
  [2]   xorg-x11 *
rubberneck michael # eselect opengl set 1

After this things went back to normal.
Comment 13 no_return_address 2009-07-21 21:41:27 UTC
After recently finding the courage to try upgrading again (the downgrade after this happened required several days of work) I've found that the crash no longer occurs.  Here's what I have installed now:

media-tv/mythtv-0.21_p18314-r1 
x11-base/xorg-server-1.5.3-r6 
x11-drivers/xf86-video-intel-2.7.1 
media-libs/mesa-7.3-r1 

It's still the same MythTV, so perhaps it was just an X11 problem.  I'll leave the bug open so that someone more knowledgable can decide whether or not it is resolved.
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2009-08-03 01:24:40 UTC
Several people have reported issues similar to this (across multiple distros) that are a result of issues in the open source Xorg driver stacks (i.e. DRI, mesa, and your specific driver). Make sure to use the latest versions of all those components and the problem should be resolved.