Re: segfaults with Python 2.3.x

Jacob Smullyan <[email protected]>
Newsgroups gmane.comp.web.skunkweb
Message-ID <[email protected]>
On Wed, Feb 11, 2004 at 05:05:07PM -0500, Jacob Smullyan wrote:
> DUH.  Patch now attached.
> 
> I may have jumped the gun in any case.  I'm not absolutely confident
> that this is an adequate solution; I just found a segfault on a server
> I thought I had patched.  More later.

I am now pretty sure that this patch is not a complete solution, but
my tests so far seem to indicate that skunkweb is segfaulting much
less than before -- over the sample tested today, an order of
magnitude fewer segfaults (but not none) on a complex site with
several other C extensions also loaded that could also be responsible
for problems.  That being said, it is quite possible that this is a
statistical fluke, or that other factors affected the results.

I'm attaching the patch I'm using at present, which turns off another
bulk memory management mechanism in mxDateTime.c.  Let me know if it
helps, or doesn't ....

js
egenix.diff (text/plain, 553 B)
*** mxDateTime.c	Wed Feb 11 22:17:15 2004
--- /home/smulloni/src/egenix-mx-base-2.1.0-real/mx/DateTime/mxDateTime/mxDateTime.c	Sat Aug  9 23:12:34 2003
***************
*** 77,86 ****
  
  /* Define these to have the module use free lists (saves malloc calls) */
  #define MXDATETIME_FREELIST
- /* modified by js Wed Feb 11 11:28:06 2004 */
- #undef MXDATETIME_FREELIST
  #define MXDATETIMEDELTA_FREELIST
- #undef MXDATETIMEDELTA_FREELIST
  
  /* Define this to enable the copy-protocol (__copy__, __deepcopy__) */
  #define COPY_PROTOCOL
--- 77,83 ----
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAKv6yuqamFyFXXLIRAglhAJ4511N5uEcAVeAIw7YVXfoiIcSypwCeM5lg
oRn6nTKQD0KtQLDo/5F3B08=
=/rMo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.