[Zope-Perl] SegFault on `import perl'

Gisle Aas gisle@ActiveState.com
22 Feb 2001 12:50:36 -0800


Alexander Klimov <ask@wisdom.weizmann.ac.il> writes:

> I built two additional perls. First with usemymalloc=3Dn, i.e. use native
> malloc:

I think I know what your problem is.  Perl-5.6.0 need two patches to
be workable with pyperl.  You find them in the 'patches' directory of
pyperl:

   perl-method-G_EVAL
   perl-vcroak-null

If you use ActivePerl-5.6 or perl-5.6.1-TRIAL2 then no patching should
be needed.  I just built pyperl on Solaris on top of ActivePerl and
ActivePython with no problem=B9.  We are currently working on making it
possible to simply install 'pyperl' as a ppm package on Win32, Linux
and Solaris.


--Gisle


=B9) Well there was one problem.  The t/thr-conc.py tests failed because
   sleep() on Solaris 2.6 does not appear to work correctly when two
   threads calls it simultaneously.


> Segmentation Fault (core dumped)
>=20
> For both core dumps I get:
> (gdb) where
> #0  0xef424734 in strlen () from /usr/lib/libc.so.1
> #1  0xef273258 in Perl_vmess (my_perl=3D0xef490, pat=3D0x0,
> args=3D0xefffedd4) at util.c:1448
> #2  0xef273a70 in Perl_vcroak (my_perl=3D0xef490, pat=3D0x0,
> args=3D0xefffedd4) at util.c:1583

vcroak-NULL patch will fix this.

> #3  0xef274020 in Perl_croak (my_perl=3D0x0, pat=3D0x172ff8 "") at util.c=
:1649