Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2006 13:10:24 -0800
From:      Micah <micahjon@ywave.com>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        gnome@freebsd.org
Subject:   Re: ports/105589: Firefox 2.0 segfaults when saving more than one file per session
Message-ID:  <457F1AC0.50504@ywave.com>
In-Reply-To: <1165946926.96178.10.camel@shumai.marcuscom.com>
References:  <200612061930.kB6JUJVA038980@freefall.freebsd.org>	 <1165476509.74826.14.camel@shumai.marcuscom.com>	 <4578AB25.2020504@ywave.com>	 <1165565003.15396.7.camel@shumai.marcuscom.com>	 <4579C00E.2040905@ywave.com> <4579C125.3040106@marcuscom.com>	 <4579C1E0.6000703@ywave.com> <4579CF70.3070703@marcuscom.com>	 <4579D39E.1020904@ywave.com> <4579D75A.1010009@marcuscom.com>	 <457CC9FA.8090802@ywave.com> <1165946926.96178.10.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Joe Marcus Clarke wrote:
> On Sun, 2006-12-10 at 19:01 -0800, Micah wrote:
>> I've installed a complete Gnome system for further testing. I have 
>> confirmed that gedit, eog, and epiphany (and probably any gnome based 
>> app) all show the bug when launched from KDE. GIMP, PAN2, and OOo do not 
>> show the bug. This was all tested from a freshly created user account 
>> with an initially empty home directory. The bug does not show up while 
>> in a Gnome session (not sure how Indigo managed a crash - maybe he was 
>> running some KDE software in his Gnome session?) It appears to be a 
>> general Gnome/KDE incompatibility and has nothing to do with the Gecko 
>> applications directly.
> 
> I have isolated the cause of the crash.  The problem stems from KDE
> setting XDG_DATA_DIRS in the environment.  It sets a value with two
> instances of /usr/local/share.  This seems to cause memory corruption,
> and leads to a crash.  If you reset XDG_DATA_DIRS
> to :/usr/share:/usr/local/share:/usr/X11R6/share:/usr/X11R6/share/gnome:/usr/local/share/gnome Firefox will no longer crash.
> 
> This is a two-part bug.  KDE is clearly setting a bad value.  It should
> be adding /usr/local/share/gnome to the XDG_DATA_DIRS, but instead it
> duplicates an element.  Even so, XDG should not add a duplicate element.
> 
> Joe

Wow! Thanks for keeping at this!

Running from an environment with XDG_DATA_DIRS set properly does seem to 
fix both firefox and gedit.

So my question now is what next? Do I (or someone) need to file a PR 
against kde-xdg-env? And I'm not clear on "XDG should not add a 
duplicate element," who has responsibility for fixing that? (I'm having 
trouble tracking down XDG as anything other than the former name of 
freedesktop.org)

Thanks!
Micah



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?457F1AC0.50504>