[Python-Dev] segmentation fault with python2.3a0 from cvs
Neal Norwitz
neal@metaslash.com
Tue, 8 Oct 2002 17:27:15 -0400
On Mon, Oct 07, 2002 at 08:03:56PM +0200, Gerson Kurz wrote:
> Zack Weinberg wrote:
>
> > For what it's worth, this may be system-specific. I was able to
> > import your test case under both 2.2.1 and 2.3a0 with no problem, on
> > linux. The 2.3 compiler is a lot faster, which is nice.
>
> It seems like that. I compiled with DevStudio 6, and the import works (at
> least in the debug build, but thats the only one I checked). I recompiled
> python unter cygwin using "--with-pydebug", but to the same effect: cygwins'
> python.exe raises a segmentation fault. So maybe, just maybe, its a fault of
> cygwin ?
>
> $ uname -a
> CYGWIN_NT-5.0 DREIZEHN 1.3.12(0.54/3/2) 2002-07-06 02:16 i686 unknown
This may be relevant, from Lib/test/test_b1.py:
# Note: This test is expected to SEGV under Cygwin 1.3.12 or
# earlier due to a newlib bug. See the following mailing list
# thread for the details:
# http://sources.redhat.com/ml/newlib/2002/msg00369.html
In Cygwin, malloc() was treating the size as signed which caused a
crash. Perhaps you are experiencing something similar? Have you
tried with the latest Cygwin?
Neal