[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Straw-devel] Re: segfault when starting - prob with mxDateTime ?
From: |
Marc Thoben |
Subject: |
[Straw-devel] Re: segfault when starting - prob with mxDateTime ? |
Date: |
Sat, 27 Sep 2003 04:34:34 -0000 |
User-agent: |
Mutt/1.5.3i |
On 27th of September 2003 at 2:54:28, Marc Thoben wrote:
> Hi everybody,
>
> I just went through the pain to fulfill all dependencies ;) but
> straw isn't working...:
>
> address@hidden:~> straw
> Segmentation fault
>
> ..
Okey, I got it. After...
address@hidden:~/testing> cat python_mx_check.py
#!/usr/bin/python
import mx.DateTime.mxDateTime.mxDateTime
address@hidden:~/testing> ./python_mx_check.py
Segmentation fault
I poked around in mxDateTime a little.
With this patch it works for me:
--- egenix-mx-base-2.0.5/mx/DateTime/mxDateTime/mxDateTime.c.orig
2001-12-10 11:15:49.000000000 +0100
+++ egenix-mx-base-2.0.5/mx/DateTime/mxDateTime/mxDateTime.c
2003-09-27 06:24:36.000000000 +0200
@@ -325,6 +325,7 @@
{
mxDateTimeObject *datetime;
+/*
#ifdef MXDATETIME_FREELIST
if (mxDateTime_FreeList) {
datetime = mxDateTime_FreeList;
@@ -334,6 +335,7 @@
}
else
#endif
+*/
{
datetime = PyObject_NEW(mxDateTimeObject,&mxDateTime_Type);
if (datetime == NULL)
-------------------------------------------------------------------
Seems like MXDATETIME_FREELIST is not such a good idea (at least
here ;). I'm also going to let the folks at
address@hidden know about this.
>
> Regards,
> Marc
>
>
> PS: Please cc: me, because I'm not yet subscribed to this ML.