Skip site navigation (1)Skip section navigation (2)
Date:      25 Mar 2003 04:02:56 -0000
From:      reigncracks@hotmail.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tg@FreeBSD.org
Subject:   ports/50262: lang/py-mx-base (mxDateTime) is broke
Message-ID:  <20030325040256.59638.qmail@ns1.mezzweb.com>

next in thread | raw e-mail | index | archive | help

>Number:         50262
>Category:       ports
>Synopsis:       lang/py-mx-base (mxDateTime) is broke
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 24 20:00:25 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mezz
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD sysinfo.mezzweb.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Mar 13 13:54:37 CST 2003 mezz@sysinfo.mezzweb.com:/usr/src/sys/i386/compile/BSDROCKS i386

>Description:
I am trying to port Straw, but failed because of mxDateTime is broke. Straw is a python script and when I ran it. It will crash (seg fault) and dump a core file. 

>How-To-Repeat:
I have rebuilt the whole py-* again, but with the python2.2 compiled with --with-pydebug this time and got the better info.

Here's error msg from gdb following:

=============================
$ gdb python2.2
GNU gdb 5.2.1 (FreeBSD)

<snip copyright stuff>

(no debugging symbols found)...

(gdb) run /usr/X11R6/bin/straw
Starting program: /usr/local/bin/python2.2 /usr/X11R6/bin/straw	
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Adding parser accelerators ...
Done.
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x080580ab in _Py_ForgetReference ()

(gdb) bt
#0  0x080580ab in _Py_ForgetReference ()
#1  0x2907d156 in mxDateTime_Free (datetime=0x85b2ac0)
    at mx/DateTime/mxDateTime/mxDateTime.c:365
#2  0x08058112 in _Py_Dealloc ()
#3  0x08081985 in PyEval_EvalCode ()
#4  0x08084297 in PyEval_EvalCodeEx ()
#5  0x0807bad7 in PyEval_EvalCode ()
#6  0x080994e3 in PyImport_ExecCodeModuleEx ()
...
...
to (Do I need to copy the rest 1 to 73?)
#73 0x08052845 in _start ()
=============================

So, I decide to try re-install lang/py-mx-base and I caught the error msgs during the compile.

Here's error msg:
=============================
macros to undefine: []
running build_ext
building 'mx.DateTime.mxDateTime.mxDateTime' extension
creating build/temp.freebsd-5.0-CURRENT-i386-2.2
creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx
creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime
creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime
creating 
build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime
cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime 
-I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o 
build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o
-O -pipe -g -march=pentium3
mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New':
mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of
`_Py_NewReference' from incompatible pointer type
mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free':
mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of 
`_Py_ForgetReference' from incompatible pointer type
mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New':
mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of 
`_Py_NewReference' from incompatible pointer type
mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free':
mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of
`_Py_ForgetReference' from incompatible pointer type
=============================

>Fix:
No idea how to fix it at this moment. But, it looks someone need to take the look at mx/DateTime/mxDateTime/mxDateTime.c:365 line. Then, create a patch for it.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




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