Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2007 08:43:12 -0500
From:      Eric Schuele <e.schuele@computer.org>
To:        Anton Berezin <tobez@tobez.org>, Eric Schuele <e.schuele@computer.org>, freebsd-current@freebsd.org
Subject:   Re: Perl_mallloc() segfault (v5.8.8)....
Message-ID:  <46F12770.30807@computer.org>
In-Reply-To: <20070919125029.GB45191@heechee.tobez.org>
References:  <46E98E44.2070808@computer.org> <20070919125029.GB45191@heechee.tobez.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigDFA721CEA6F7939081101D4F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 09/19/2007 07:50, Anton Berezin wrote:
> On Thu, Sep 13, 2007 at 02:23:48PM -0500, Eric Schuele wrote:
>> Hello,
>>
>> I seem to have a perl problem.  Not much of a perl person so not sure =
if
>> the problem is me or not.  I'm not even sure I should be posting to
>> freebsd-current@, but since it worked in 6.2... I'm assuming its perl+=
7.0.
>>
>> Running current i386, and using perl 5.8.8, I get the following back
>> trace on an app that attempts to use perl for an add-on script.
>>
>> #0  0x2972726c in Perl_malloc ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #1  0x297d75dc in PerlIO_allocate ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #2  0x297dc257 in PerlIO_stdstreams ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #3  0x297dc2c2 in Perl_PerlIO_stderr ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #4  0x297280b0 in Perl_malloc ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #5  0x297d75dc in PerlIO_allocate ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #6  0x297dc257 in PerlIO_stdstreams ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #7  0x297dc2c2 in Perl_PerlIO_stderr ()
>>    from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
>> #8  0x297280b0 in Perl_malloc ()
>>
>> Note that this app was working, as well as its add-on script a few day=
s
>> back when I was running 6.2-STABLE.  I backed-up everything, formatted=

>> my disk, installed 7.0 (snapshot), cvsup'd to most recent (sunday
>> evening)... reinstalled the app in question from package, then from
>> ports.  It however always results in the above bt.  If I remove the
>> script from the add-ons (its the only script I have) the app runs fine=
=2E
>=20
> What is the script?

Its called OnJoin for xchat.  Performs actions when ppl join.

> What's the output of ldd `which perl`?

% ldd `which perl`
/usr/bin/perl:
        libperl.so =3D> /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
(0x2807c000)
        libm.so.5 =3D> /lib/libm.so.5 (0x28182000)
        libcrypt.so.4 =3D> /lib/libcrypt.so.4 (0x28197000)
        libutil.so.7 =3D> /lib/libutil.so.7 (0x281b0000)
        libc.so.7 =3D> /lib/libc.so.7 (0x281bd000)

> What's the output of ldd /path/to/xchat  (assuming "app" is "xchat", it=
's

% ldd `which xchat`
/usr/local/bin/xchat:
        libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x2810b000)
        libiconv.so.3 =3D> /usr/local/lib/libiconv.so.3 (0x28114000)
        libgtkspell.so.0 =3D> /usr/local/lib/libgtkspell.so.0 (0x28202000=
)
        libaspell.so.16 =3D> /usr/local/lib/libaspell.so.16 (0x28208000)
        libgtk-x11-2.0.so.0 =3D> /usr/local/lib/libgtk-x11-2.0.so.0
(0x282bf000)
        libgdk-x11-2.0.so.0 =3D> /usr/local/lib/libgdk-x11-2.0.so.0
(0x28605000)
        libatk-1.0.so.0 =3D> /usr/local/lib/libatk-1.0.so.0 (0x28689000)
        libgdk_pixbuf-2.0.so.0 =3D> /usr/local/lib/libgdk_pixbuf-2.0.so.0=

(0x286a3000)
        libpangocairo-1.0.so.0 =3D> /usr/local/lib/libpangocairo-1.0.so.0=

(0x286ba000)
        libXinerama.so.1 =3D> /usr/local/lib/libXinerama.so.1 (0x286c3000=
)
        libXi.so.6 =3D> /usr/local/lib/libXi.so.6 (0x286c6000)
        libXrandr.so.2 =3D> /usr/local/lib/libXrandr.so.2 (0x286ce000)
        libXext.so.6 =3D> /usr/local/lib/libXext.so.6 (0x286d4000)
        libXcursor.so.1 =3D> /usr/local/lib/libXcursor.so.1 (0x286e2000)
        libXfixes.so.3 =3D> /usr/local/lib/libXfixes.so.3 (0x286eb000)
        libcairo.so.2 =3D> /usr/local/lib/libcairo.so.2 (0x286f0000)
        libpng.so.5 =3D> /usr/local/lib/libpng.so.5 (0x28765000)
        libXrender.so.1 =3D> /usr/local/lib/libXrender.so.1 (0x28789000)
        libpangoft2-1.0.so.0 =3D> /usr/local/lib/libpangoft2-1.0.so.0
(0x28791000)
        libfontconfig.so.1 =3D> /usr/local/lib/libfontconfig.so.1 (0x287b=
d000)
        libexpat.so.6 =3D> /usr/local/lib/libexpat.so.6 (0x287e8000)
        libfreetype.so.9 =3D> /usr/local/lib/libfreetype.so.9 (0x28809000=
)
        libz.so.4 =3D> /lib/libz.so.4 (0x2887b000)
        libpango-1.0.so.0 =3D> /usr/local/lib/libpango-1.0.so.0 (0x2888d0=
00)
        libm.so.5 =3D> /lib/libm.so.5 (0x288cb000)
        libX11.so.6 =3D> /usr/local/lib/libX11.so.6 (0x288e0000)
        libXau.so.6 =3D> /usr/local/lib/libXau.so.6 (0x289cc000)
        libXdmcp.so.6 =3D> /usr/local/lib/libXdmcp.so.6 (0x289cf000)
        librpcsvc.so.4 =3D> /usr/lib/librpcsvc.so.4 (0x289d4000)
        libgmodule-2.0.so.0 =3D> /usr/local/lib/libgmodule-2.0.so.0
(0x289dc000)
        libdbus-glib-1.so.2 =3D> /usr/local/lib/libdbus-glib-1.so.2
(0x289e0000)
        libdbus-1.so.3 =3D> /usr/local/lib/libdbus-1.so.3 (0x289fc000)
        libgobject-2.0.so.0 =3D> /usr/local/lib/libgobject-2.0.so.0
(0x28a38000)
        libgthread-2.0.so.0 =3D> /usr/local/lib/libgthread-2.0.so.0
(0x28a74000)
        libssl.so.5 =3D> /usr/lib/libssl.so.5 (0x28a79000)
        libcrypto.so.5 =3D> /lib/libcrypto.so.5 (0x28ab8000)
        libglib-2.0.so.0 =3D> /usr/local/lib/libglib-2.0.so.0 (0x28c04000=
)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x28c9a000)
        libc.so.7 =3D> /lib/libc.so.7 (0x28cac000)
        libstdc++.so.6 =3D> /usr/lib/libstdc++.so.6 (0x28da2000)
        libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x28e83000)

> What's the output of perl -V?

% perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=3Dfreebsd, osvers=3D7.0-current, archname=3Di386-freebsd-64int=

    uname=3D'freebsd freebsd.org 7.0-current freebsd 7.0-current #0: fri
aug 3 00:53:24 pdt 2007 kris@freebsd.org:usrsrcsysmagickernelpath i386 '
    config_args=3D'-sde -Dprefix=3D/usr/local
-Darchlib=3D/usr/local/lib/perl5/5.8.8/mach
-Dprivlib=3D/usr/local/lib/perl5/5.8.8
-Dman3dir=3D/usr/local/lib/perl5/5.8.8/perl/man/man3
-Dman1dir=3D/usr/local/man/man1
-Dsitearch=3D/usr/local/lib/perl5/site_perl/5.8.8/mach
-Dsitelib=3D/usr/local/lib/perl5/site_perl/5.8.8
-Dscriptdir=3D/usr/local/bin
-Dsiteman3dir=3D/usr/local/lib/perl5/5.8.8/man/man3
-Dsiteman1dir=3D/usr/local/man/man1 -Ui_malloc -Ui_iconv
-Uinstallusrbinperl -Dcc=3Dcc -Duseshrplib
-Dccflags=3D-DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.8.8/BSDPAN"
-Doptimize=3D-O1 -pipe  -Ud_dosuid -Ui_gdbm -Dusethreads=3Dn -Dusemymallo=
c=3Dy
-Duse64bitint'
    hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
    usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef
usemultiplicity=3Dundef
    useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine usesocks=3Du=
ndef
    use64bitint=3Ddefine use64bitall=3Dundef uselongdouble=3Dundef
    usemymalloc=3Dy, bincompat5005=3Dundef
  Compiler:
    cc=3D'cc', ccflags =3D'-DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.8.8/BS=
DPAN"
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include',
    optimize=3D'-O1 -pipe ',
    cppflags=3D'-DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.8.8/BSDPAN"
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include'
    ccversion=3D'', gccversion=3D'4.2.0 20070514 [FreeBSD]', gccosandvers=
=3D''
    intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D1=
2345678
    d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsiz=
e=3D12
    ivtype=3D'long long', ivsize=3D8, nvtype=3D'double', nvsize=3D8,
Off_t=3D'off_t', lseeksize=3D8
    alignbytes=3D4, prototype=3Ddefine
  Linker and Libraries:
    ld=3D'cc', ldflags =3D' -Wl,-E -L/usr/local/lib'
    libpth=3D/usr/lib /usr/local/lib
    libs=3D-lm -lcrypt -lutil
    perllibs=3D-lm -lcrypt -lutil
    libc=3D, so=3Dso, useshrplib=3Dtrue, libperl=3Dlibperl.so
    gnulibc_version=3D''
  Dynamic Linking:
    dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D'
-Wl,-R/usr/local/lib/perl5/5.8.8/mach/CORE'
    cccdlflags=3D'-DPIC -fPIC', lddlflags=3D'-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MYMALLOC PERL_MALLOC_WRAP USE_64_BIT_INT
                        USE_LARGE_FILES USE_PERLIO
  Locally applied patches:
        defined-or
  Built under freebsd
  Compiled at Aug  3 2007 08:00:20
  @INC:
    /usr/local/lib/perl5/5.8.8/BSDPAN
    /usr/local/lib/perl5/site_perl/5.8.8/mach
    /usr/local/lib/perl5/site_perl/5.8.8
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.8.8/mach
    /usr/local/lib/perl5/5.8.8
    .

> The contents of /etc/make.conf might also be useful

% cat /etc/make.conf
# Optimizations
CPUTYPE?=3Dpentium4
CFLAGS=3D -O -pipe
COPTFLAGS=3D -O -pipe

#
# General Items
#
NO_PROFILE=3D true
USA_RESIDENT=3D true
# Due to CUPS
NO_LPR=3D true
WITH_CUPS=3D yes
# Only build English Docs
DOC_LANG=3D en_US.ISO8859-1
# Make sure we are using Fedora Core as linuxulator
#  Is this still needed?
OVERRIDE_LINUX_BASE_PORT=3Dfc4

# mplayer-plugin and others
WITH_MOZILLA=3D firefox
WITH_GECKO=3D firefox

#
# Port Settings
#
##########################
# Pidgin
=2Eif ${.CURDIR:M*/net-im/libpurple}
WITH_GNUTLS=3Dyes
WITHOUT_NSS=3Dyes
WITH_GTKUI=3Dyes
=2Eendif
###########################
# CUPS
=2Eif ${.CURDIR:M*/print/cups-base}
  CUPS_OVERWRITE_BASE=3D yes
=2Eendif
=2Eif ${.CURDIR:M*/print/cups}
  CUPS_OVERWRITE_BASE=3D yes
=2Eendif
###########################
# LinuxPluginWrapper
=2Eif ${.CURDIR:M*/www/linuxpluginwrapper}
  WITH_REALPLAYER=3D yes
  WITH_ACROREAD=3D yes
=2Eendif
###########################
# MySQL
=2Eif ${.CURDIR:M*/databases/mysql50-server}
  WITH_LINUXTHREADS=3D yes
=2Eendif
###########################
# gnucash
=2Eif ${.CURDIR:M*/finance/gnucash2}
  #libltdl_cv_sys_dlopen_deplibs=3D yes
=2Eendif
=2Eif ${.CURDIR:M*/lang/guile}
  #libltdl_cv_sys_dlopen_deplibs=3D yes
=2Eendif
=2Eif ${.CURDIR:M*/devel/libltdl15}
  #libltdl_cv_sys_dlopen_deplibs=3D yes
=2Eendif
###########################

# <<<<< EOF >>>>> #

########################
# Obsolete ?
# I don't use these any more
#
# OO
#WITHOUT_JAVA=3D yes
#WITHOUT_MOZILLA=3D yes
# XMMS
#WITHOUT_SKINS=3D yes
# mplayer-plugin
#WITH_MOZILLA=3D firefox
# qemu option
#WITH_KQEMU=3D yes
# gnash
#WITH_FIREFOX=3D yes
# mplayer or mplayer-plugin
#WITHOUT_SKINS=3D yes
#
########################

# added by use.perl
PERL_VER=3D5.8.8
PERL_VERSION=3D5.8.8


>=20
>> Wondering if a bug report is warranted?  Should it be filed under xcha=
t,
>> perl, or what?
>=20
> Cheers,
> \Anton.

Also fwiw,
% uname -a
FreeBSD fangorn.nxdomain.org 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Mon Sep
10 13:47:41 CDT 2007 i386


Thanks for your interest.  :)

--=20
Regards,
Eric



--------------enigDFA721CEA6F7939081101D4F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFG8SdxngSDRM3IXUoRAr62AKCKvdoRJlprv2zwAm2CrF75Wdx98ACeKQb7
dewnwegOdppwbd4HiEpsJPA=
=17R2
-----END PGP SIGNATURE-----

--------------enigDFA721CEA6F7939081101D4F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46F12770.30807>