Bug 99496 - Segmentation fault lang/python building from ports
Summary: Segmentation fault lang/python building from ports
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Hye-Shik Chang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-26 18:10 UTC by rachid achellal
Modified: 2006-08-12 04:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rachid achellal 2006-06-26 18:10:24 UTC
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)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-07-03 21:38:26 UTC
Responsible Changed
From-To: freebsd-i386->perky

Make this a ports PR and assign.
Comment 2 Hye-Shik Chang freebsd_committer freebsd_triage 2006-07-04 16:34:33 UTC
Can you show me a backtrace for the core dump?  The build log says
nothing but it segfaulted.

Hye-Shik
Comment 3 Xiao-Yong Jin 2006-07-27 07:36:56 UTC
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
Comment 4 Hye-Shik Chang freebsd_committer freebsd_triage 2006-08-12 04:57:56 UTC
State Changed
From-To: open->closed

Fixed.  Thank you for the reporting!