Bug 50138

Summary: Closing KDE apps generates a segfault (SIGSEGV)
Product: Ports & Packages Reporter: Nik Clayton <nik>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.dat none

Description Nik Clayton 2003-03-20 07:40:09 UTC
KDE starts fine with an 'exec startkde' line in ~/.xinitrc file.  However,
quitting any program ("File -> Exit", clicking the close button in the title
bar, etc) causes it to crash, bringing up the KDE Crash Handler.  The app
(Konq, kghostview, ark, ...) "crashed and caused the signal 11 (SIGSEGV)"
according to the crash handler.  Because KDE was built without -g, the 
backtrace is empty.

Fix: 

Unknown.
How-To-Repeat: 
Start a KDE app, close it.
Comment 1 nik freebsd_committer freebsd_triage 2003-03-21 11:13:28 UTC
Further digging has shown up a possible culprit.  I'm using the nVidia
supplied binary drivers for XFree86 (i.e., not the drivers shipped by
xfree86.org).

The drivers were installed *after* KDE, and supply their own GLX
libraries.

If I remove KDE, install the drivers, and then reinstall KDE (from
source) so that KDE links against the nVidia supplied drivers instead of
the XFree86 libs, the system becomes much more stable.  I've only been
running with this for a few hours, so it's too early to tell if this is
a complete fix or not.

N
-- 
FreeBSD: The Power to Serve      http://www.freebsd.org/               (__)
FreeBSD Documentation Project    http://www.freebsd.org/docproj/    \\\'',)
                                                                      \/  \ ^
   --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---         .\._/_)
Comment 2 Ceri Davies freebsd_committer freebsd_triage 2003-03-22 09:36:38 UTC
Adding to audit trail, from misfiled PR 50143:

Date: Thu, 20 Mar 2003 09:13:51 -0800
From: Will Andrews <will@csociety.org>
To: Nik Clayton <nik@crf-consulting.co.uk>
Cc: FreeBSD-gnats-submit@FreeBSD.org
In-Reply-To: <200303200735.h2K7ZtXj005914@clan.nothing-going-on.org>

 Are you using the NVIDIA binary drivers?
 
 Regards,
 -- 
 wca
Comment 3 Tilman Keskinoz freebsd_committer freebsd_triage 2003-03-22 20:43:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kde

Over to Maintainers
Comment 4 setantae 2003-03-24 13:07:12 UTC
Adding to audit trail.
Comment 5 Will Andrews 2003-03-24 13:33:54 UTC
On Mon, Mar 24, 2003 at 01:07:12PM +0000, Ceri Davies wrote:
> Date: Mon, 24 Mar 2003 12:34:46 -0000 (GMT)
> From: "Nik Clayton" <nik@freebsd.org>
> To: <ceri@FreeBSD.org>
> Subject: Re: ports/50138: Closing KDE apps generates a segfault (SIGSEGV)
> Importance: Normal
> X-Mailer: SquirrelMail (version 1.2.9)
> 
> >
> > Adding to audit trail, from misfiled PR 50143:
> >
> > Date: Thu, 20 Mar 2003 09:13:51 -0800
> > From: Will Andrews <will@csociety.org>
> > To: Nik Clayton <nik@crf-consulting.co.uk>
> > Cc: FreeBSD-gnats-submit@FreeBSD.org
> > In-Reply-To: <200303200735.h2K7ZtXj005914@clan.nothing-going-on.org>
> >
> >  Are you using the NVIDIA binary drivers?
> 
> Yes.  An earlier follow up from me said so -- it hadn't occured to me that
> it might be significant.
> 
> I'm still in the process of trying to track this down.  To ensure that
> I've got a clean platform for doing so I've
> 
> * pkg_delete'd everything on the box
> * Wiped /usr/local and /usr/X11R6 clean
> 
> and now I'm in the process of reinstalling the bare minimum necessary to
> test this.  Which is, in order, XFree86-4, nvidia-drivers, kdelibs3, and
> kdebase3.  The compilation is running right now.
> 
> If it *still* segfaults I'll remove kdebase3 and kdelibs3, and then
> reinstall them with debugging symbols, so that I can generate a backtrace
> and start debugging this in earnest.

Please note that we have already determined that there is some
sort of conflict between XFree86's Mesa and the nvidia drivers.
The reason it manifests itself in KDE is due to the fact that Qt
installs with OpenGL support by default.

So if you are still up for debugging, that should provide some
hints as to where to look.  Most KDE/nvidia users I've seen
prefer to rebuild qt without GL support (as it is not needed for
the majority of qt-based apps including KDE).

It may be a bug in Qt or KDE.. I haven't seen definitive evidence
to that end.

Regards,
-- 
wca
Comment 6 nik freebsd_committer freebsd_triage 2003-03-28 09:27:22 UTC
State Changed
From-To: open->closed

Fixed by building the beta KDE 3.1.1 port with WITHOUT_OPENGL=yes in 
/etc/make.conf. 

For the record, this involves removing KDE *and* the QT libraries, and 
then reinstalling.