[Zope-Perl] SegFault on `import perl'
Gisle Aas
gisle@ActiveState.com
13 Feb 2001 10:34:04 -0800
Alexander Klimov <ask@wisdom.weizmann.ac.il> writes:
> I downloaded pyperl-1.0.beta7 and install perl module from it.
> Now I try
> python setup.py install -- it is OK, but tests failed with sigfault and
> even
> python -c 'import perl'
> fault.
>
> perl -v
> This is perl, v5.6.0 built for sun4-solaris
>
> python
> Python 2.0 (#1, Jan 25 2001, 13:09:30)
> [GCC 2.95.2 19991024 (release)] on sunos5
>
> Stacktrace from GDB:
> Program received signal SIGSEGV, Segmentation fault.
> 0xef445d50 in _malloc_unlocked () from /usr/lib/libc.so.1
> (gdb) where
> #0 0xef445d50 in _malloc_unlocked () from /usr/lib/libc.so.1
> #1 0xef445f98 in realloc () from /usr/lib/libc.so.1
> #2 0xef384eac in Perl_sv_grow () from /usr/local/lib/python2.0/site-packages/perl2.so
[...]
> perl -V
> Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
> Platform:
> osname=solaris, osvers=2.6, archname=sun4-solaris
> uname='sunos iridium 5.6 generic_105181-20 sun4u sparc sunw,ultra-5_10
> '
> config_args='-des -Dcc=gcc'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef use5005threads=undef useithreads=undef
You want to enable ithreads if you are to use it with Zope, but that
should not really be related to this error.
> alignbytes=8, usemymalloc=y, prototype=define
Perhaps you have better luck with usemymalloc=n? I would believe that
Perl_sv_grow should invoke perl's realloc replacement (since your perl
is configured with usemymalloc=y) and not something from libc.so.
I'll try to build this version of pyperl on one of Solaris boxes at
ActiveState later today...
--Gisle