<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>167963</bug_id>
          
          <creation_ts>2007-02-22 07:13 0000</creation_ts>
          <short_desc>x11-libs/libXrandr-1.2.0 causes mythfrontend/mythtv-setup to segfault</short_desc>
          <delta_ts>2007-08-24 15:35:37 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://svn.mythtv.org/trac/ticket/3401</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ginsu.squirrel@gmail.com</reporter>
          <assigned_to>cardoe@gentoo.org</assigned_to>
          <cc>jamesp@hisser.org</cc>
    
    <cc>sonni.norlov@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>ginsu.squirrel@gmail.com</who>
            <bug_when>2007-02-22 07:13:56 0000</bug_when>
            <thetext>Upon installing libXrandr-1.2.0, mythfrontend segfaulted on load.  After 1.2.0-r1 got committed I was able to recompile mythtv against 1.2.0 but it still segfaults on load.  Downgrading to 1.1.2 lets mythfrontend load.

Reproducible: Always

Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-02-22 08:29:44 0000</bug_when>
            <thetext>http://www.gentoo.org/proj/en/qa/backtraces.xml

Also post emerge --info.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ginsu.squirrel@gmail.com</who>
            <bug_when>2007-02-23 00:22:20 0000</bug_when>
            <thetext>Since the seg is occurring in libXrandr and not myth, I only recompiled libXrandr with debugging.

(gdb) bt
#0  0xa6d857f1 in _XRRGetScreenInfo (dpy=0x8269158, info=0x82683c8, window=84) at XrrConfig.c:226
#1  0xa6d85c98 in XRRGetScreenInfo (dpy=0x8269158, window=84) at XrrConfig.c:351
#2  0xa7014613 in ?? () from /usr/lib/libmyth-0.20.so.0
#3  0xa701488f in DisplayResX::GetVideoModes () from /usr/lib/libmyth-0.20.so.0
#4  0xa6fb5b29 in DisplayRes::Initialize () from /usr/lib/libmyth-0.20.so.0
#5  0xa7014d2a in DisplayResX::DisplayResX () from /usr/lib/libmyth-0.20.so.0
#6  0xa6fb413e in DisplayRes::GetDisplayRes () from /usr/lib/libmyth-0.20.so.0
#7  0xa6fb76d1 in GetVideoModes () from /usr/lib/libmyth-0.20.so.0
#8  0x080ce345 in ?? ()
#9  0x0805c5dd in ?? ()
#10 0x08068263 in ?? ()
#11 0x455c4823 in __libc_start_main () from /lib/libc.so.6

Portage 2.1.2-r10 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-ck1 i686)
=================================================================
System uname: 2.6.20-ck1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 22 Feb 2007 23:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.5-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=prescott -msse -msse2 -msse3 -mfpmath=sse -fomit-frame-pointer -ftracer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb /var/www/localhost/htdocs&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=prescott -msse -msse2 -msse3 -mfpmath=sse -fomit-frame-pointer -ftracer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--alphabetical&quot;
FEATURES=&quot;autoconfig distlocks noinfo parallel-fetch sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://mirror.espri.arizona.edu/gentoo/&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.us.gentoo.org/gentoo-portage&quot;
USE=&quot;X alsa apache2 bzip2 cups dbus expat gtk java jpeg lirc mad mmx mp3 mysql ncurses nptl opengl pcre perl png python readline sse sse2 ssl startup-notification truetype win32codecs x86 xinerama xslt xv xvid zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LIRC_DEVICES=&quot;devinput&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;mga&quot;
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2007-02-23 01:45:11 0000</bug_when>
            <thetext>recompile QT</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ginsu.squirrel@gmail.com</who>
            <bug_when>2007-02-23 02:00:32 0000</bug_when>
            <thetext>I just compiled the new qt 3.3.8 and I&apos;m still getting the same results.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2007-03-01 14:00:32 0000</bug_when>
            <thetext>It works for me on several machines. It&apos;s most likely related to your CFLAGS.

CFLAGS=&quot;-O2 -march=prescott -msse -msse2 -msse3 -mfpmath=sse
-fomit-frame-pointer -ftracer -pipe&quot;

If you read the gcc documentation, prescott implies -msse -msse2 and -msse3, so those are pointless.
-ftracer could be the source of your issue because of it&apos;s optimization
-fomit-frame-pointer is what&apos;s making your backtrace useless.
-mfpmath=sse could be the source of your problems as well. Why not let GCC choose if the FPU or SSE units are better for floating point math at that point.

All in all... remove the crap from your CFLAGS and recompile X and MythTV and I doubt you&apos;ll have an issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-24 16:04:41 0000</bug_when>
            <thetext>*** Bug 183054 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-24 16:05:29 0000</bug_when>
            <thetext>Eh, reopen...

https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/104262/comments/15</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2007-06-28 18:21:35 0000</bug_when>
            <thetext>Looks like a fix was commited per http://svn.mythtv.org/trac/ticket/3401, if it gets backported to -fixes as the anonymous posted asked. I&apos;ll make a new rev.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2007-08-10 15:58:22 0000</bug_when>
            <thetext>*** Bug 188354 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zkr@freemail.hu</who>
            <bug_when>2007-08-11 13:16:07 0000</bug_when>
            <thetext>Created an attachment (id=127746)
Utilize the xrandr useflag

Upstream has a config option for disabling xrandr, so a possible workaround is to make the ebuild utilize the xrandr useflag, then disable xrandr support through it.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2007-08-13 13:20:56 0000</bug_when>
            <thetext>Causes more harm then good to remove xrandr support since the issue is that in their code they assume that there&apos;s xrandr support. The flag isn&apos;t truly honored.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2007-08-20 13:59:12 0000</bug_when>
            <thetext>I&apos;ve have gotten upstream to address this in the 0.20 fixes branch as of revision 14223. So it will be in the next rev bump. You can also always copy the current MythTV ebuild into your own overlay and just rename it to 0.20_p14223 for the version.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2007-08-24 15:35:37 0000</bug_when>
            <thetext>fixed as of mythtv-0.20.2_p14282</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>127746</attachid>
            <date>2007-08-11 13:16 0000</date>
            <desc>Utilize the xrandr useflag</desc>
            <filename>mythtv-14146-xrandr.patch</filename>
            <type>text/plain</type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