From jose@we.lc.ehu.es  Thu Feb  8 07:30:25 2001
Return-Path: <jose@we.lc.ehu.es>
Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43])
	by hub.freebsd.org (Postfix) with ESMTP id 0EB6B37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 Feb 2001 07:30:24 -0800 (PST)
Received: from v-ger.we.lc.ehu.es (v-ger [158.227.6.179])
	by polaris.we.lc.ehu.es (8.11.1/8.11.1) with ESMTP id f18FUJb20222
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 8 Feb 2001 16:30:19 +0100 (MET)
Received: (from jose@localhost)
	by v-ger.we.lc.ehu.es (8.11.1/8.11.1) id f18FUCH04599;
	Thu, 8 Feb 2001 16:30:12 +0100 (CET)
	(envelope-from jose)
Message-Id: <200102081530.f18FUCH04599@v-ger.we.lc.ehu.es>
Date: Thu, 8 Feb 2001 16:30:12 +0100 (CET)
From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
Reply-To: jose@we.lc.ehu.es
To: FreeBSD-gnats-submit@freebsd.org
Subject: kdebase2 fails to install when using qt-2.2.4
X-Send-Pr-Version: 3.2

>Number:         24952
>Category:       ports
>Synopsis:       kdebase2 fails to install when using qt-2.2.4
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kevlo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 08 07:40:01 PST 2001
>Closed-Date:    Tue Feb 27 14:33:05 PST 2001
>Last-Modified:  Tue Feb 27 14:33:15 PST 2001
>Originator:     Jose M. Alcaide
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Universidad del Pais Vasco - Dept. de Electricidad y Electronica
>Environment:

Recent 5.0-CURRENT:

FreeBSD defiant.we.lc.ehu.es 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Wed Feb  7 15:04:53 CET 2001     toor@defiant.we.lc.ehu.es:/usr/obj/usr/src/sys/DEFIANT  i386


>Description:

While trying to install the kdebase2 port (once it has been succesfully
built) a SIGSEGV is triggered when the kappfinder_install utility is executed
as part of the installation process. Backtracing with a debugger shows
some kind of problem in a Qt routine. This problem happens after
the qt2 port was updated to qt-2.2.4. I installed qt-2.2.3 (built
from the qt2 port as of Feb, 3, i.e., just before the update to 2.2.4),
and then I rebuilt and installed kdebase2 without any problems.

Here is an excerpt from the kdebase2 install log:

.....
Installing non-KDE applications
pwd=`pwd`; \
(cd . && $pwd/kappfinder_install "/usr/local/share/applnk")
Segmentation fault - core dumped
gmake[3]: *** [runkappfinder_yes] Error 139
.....

>How-To-Repeat:

Try to install kdebase2 and all of its dependencies (particularly qt2)
on a system with and up-to-date ports tree. I only tested this on
a -CURRENT system.

>Fix:

Downgrade the qt2 port back to version 2.2.3 until *the* fix is found.


>Release-Note:
>Audit-Trail:

From: Matthew Thyer <thyerm@camtech.net.au>
To: freebsd-gnats-submit@FreeBSD.org, jose@we.lc.ehu.es
Cc:  
Subject: Re: ports/24952: kdebase2 fails to install when using qt-2.2.4
Date: Sat, 10 Feb 2001 15:25:34 +1030

 I found yeasterday that I can install kdebase2 if I first:
 # ln -s aj /etc/malloc.conf
 so its probably the old "using a member of a structure that you have
 just freed" problem.
 
 
 Backtrace from my original email to freebsd-current:
 
 Program received signal SIGSEGV, Segmentation fault.
 0x28bc17c9 in strlen () from /usr/lib/libc.so.5
 (gdb) 
 (gdb) bt
 #0  0x28bc17c9 in strlen () from /usr/lib/libc.so.5
 #1  0xbfbff504 in ?? ()
 #2  0x2886c12e in QCString::length () from /usr/X11R6/lib/libqt2.so
 #3  0x284aba9f in QCString::resize () from /usr/X11R6/lib/libqt2.so
 #4  0x282a516f in printableToString (str=0x28f71298 "text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;\nEx"..., l=197) at /usr/X11R6/include/qt2/qcstring.h:284
 #5  0x282a71f7 in KConfigINIBackEnd::parseSingleConfigFile (this=0x804f300, rFile=@0xbfbff70c, pWriteBackMap=0x0, bGlobal=false) at kconfigbackend.cpp:308
 #6  0x282a5ecc in KConfigINIBackEnd::parseConfigFiles (this=0x804f300) at kconfigbackend.cpp:182
 #7  0x2828b5f9 in KConfigBase::parseConfigFiles (this=0xbfbff8c0) at kconfigbase.cpp:1292
 #8  0x282a3a48 in KDesktopFile::KDesktopFile (this=0xbfbff8c0, pFileName=@0x804edb8, bReadOnly=true, resType=0x804b1e6 "apps") at kdesktopfile.cpp:43
 #9  0x8049b84 in checkDesktopFile (templ=@0x804edb8, destDir=0xbfbff97c) at checker.cpp:58
 #10 0x80499da in main (argc=2, argv=0xbfbffa00) at main_install.cpp:52
 #11 0x804959d in _start ()
 (gdb) 
 
 
 The string at 0x28f71298 is:
 
 "text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;\nExec=emacs %f\nIcon=emacs\nTerminalOptions=\nPath=\nType=Application\nTerminal=0\nMapNotify=false\n"
 
Responsible-Changed-From-To: freebsd-ports->kevlo 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Feb 25 18:07:40 PST 2001 
Responsible-Changed-Why:  
Over to port's maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24952 
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Tue Feb 27 14:33:05 PST 2001 
State-Changed-Why:  
Fixed in newest KDE2 ports. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24952 
>Unformatted:
