From nobody@FreeBSD.org  Mon Jun 26 17:08:28 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F407416A400
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jun 2006 17:08:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 16DB74626E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jun 2006 16:11:01 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k5QGB0Wu068072
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jun 2006 16:11:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k5QGAxU2068071;
	Mon, 26 Jun 2006 16:10:59 GMT
	(envelope-from nobody)
Message-Id: <200606261610.k5QGAxU2068071@www.freebsd.org>
Date: Mon, 26 Jun 2006 16:10:59 GMT
From: rachid achellal <rachid@in.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Segmentation fault python bij building from ports
X-Send-Pr-Version: www-2.3

>Number:         99496
>Category:       ports
>Synopsis:       Segmentation fault lang/python building from ports
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    perky
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 26 17:10:24 GMT 2006
>Closed-Date:    Sat Aug 12 03:58:20 GMT 2006
>Last-Modified:  Sat Aug 12 03:58:20 GMT 2006
>Originator:     rachid achellal
>Release:        6.1
>Organization:
IN bvba - IN nederland
>Environment:
FreeBSD cpanel-01.smsgedicht.nl 6.1-STABLE FreeBSD 6.1-STABLE #0: Mon Jun 26 13:44:34 CEST 2006     root@cpanel-01.smsgedicht.nl:/usr/obj/usr/src/sys/bas  i386
>Description:
When i run portupgrade -aO and want's to upgrade python to version python-2.4.2. Then i get the follow error:

/usr/ports/lang/python/work/Python-2.4.3/Modules/nismodule.c: In function `nis_cat':
/usr/ports/lang/python/work/Python-2.4.3/Modules/nismodule.c:165: warning: assignment from incompatible pointer type
cc -shared -pthread -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 build/temp.freebsd-6.1-STABLE-i386-2.4/nismodule.o -L/usr/local/lib -o build/lib.freebsd-6.1-STABLE-i386-2.4/nis.so
building '_curses' extension
cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -fPIC -fno-strict-aliasing -I. -I/usr/ports/lang/python/work/Python-2.4.3/./Include -I/usr/local/include -I/usr/ports/lang/python/work/Python-2.4.3/Include -I/usr/ports/lang/python/work/Python-2.4.3 -c /usr/ports/lang/python/work/Python-2.4.3/Modules/_cursesmodule.c -o build/temp.freebsd-6.1-STABLE-i386-2.4/_cursesmodule.o
cc -shared -pthread -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 build/temp.freebsd-6.1-STABLE-i386-2.4/_cursesmodule.o -L/usr/local/lib -lncursesw -o build/lib.freebsd-6.1-STABLE-i386-2.4/_curses.so
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/ports/lang/python/work/Python-2.4.3.
*** Error code 1

Stop in /usr/ports/lang/python.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade75066.20 make
** Fix the problem and try again.


** Listing the failed packages (*:skipped / !:failed)
        ! lang/python (python-2.4.2)    (new compiler error)

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->perky 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jul 3 20:38:26 UTC 2006 
Responsible-Changed-Why:  
Make this a ports PR and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99496 

From: Hye-Shik Chang <perky@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/99496: Segmentation fault lang/python building from ports
Date: Wed, 5 Jul 2006 00:34:33 +0900

 Can you show me a backtrace for the core dump?  The build log says
 nothing but it segfaulted.
 
 Hye-Shik

From: Xiao-Yong Jin <xj2106@columbia.edu>
To: bug-followup@FreeBSD.org, rachid@in.nl
Cc:  
Subject: Re: ports/99496: Segmentation fault lang/python building from ports
Date: Thu, 27 Jul 2006 02:36:56 -0400

 I got the same seg fault:
 
 Segmentation fault (core dumped)
 *** Error code 139
 
 It happens when you have devel/ncurses installed.
 
 I don't know how to get a backtrace from that.  I simply repeated the compilation
 commands before the seg fault, and they work without problem.
 -- 
 Xiao-Yong
State-Changed-From-To: open->closed 
State-Changed-By: perky 
State-Changed-When: Sat Aug 12 03:57:56 GMT 2006 
State-Changed-Why:  
Fixed.  Thank you for the reporting! 

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