[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-porters
Subject:    5.8.x usemymalloc failures
From:       "Jerry D. Hedden" <jdhedden () cpan ! org>
Date:       2008-01-30 19:13:46
Message-ID: 1ff86f510801301113g7b049622jc7794a4d25cd3977 () mail ! gmail ! com
[Download RAW message or body]

Based on discussions on this list that hinted that Perl's
malloc was faster than the system's, I changed how I was
building Perl (under Cygwin on Windows) and removed the
-Uusemymalloc flag from my Configure args.  This worked fine
for blead and 5.10.x, but for 5.8.x it leads to a couple of
failures in the test suite:

t/op/goto...................................FAILED--non-zero wait status: 139

t/op/loopctl................................FAILED--non-zero wait status: 139

Or more fully:

> ./perl -Ilib t/op/goto.t
...
ok 57 - goto &foo in warn
not ok 58 # TODO [perl #43403] goto() from an if to an else doesn't
undo local () changes
# Failed at t/op/goto.t line 458
#      got 'modified'
# expected 'unmodified'
Segmentation fault (core dumped)

> ./perl -Ilib t/op/loopctl.t
...
ok 47 - bug 27725: reverse with empty slots bug
Hangup

Both failures occur at the very end of the test file.

I tested this back to change 32985 (for 5.8.x) and it still
occurs.  (Sorry, I currently can't test any further back to
see when the problem first occurs.)

Is this a known issue with 5.8.x, or did I uncover something
new?


> ./perl -Ilib -V
Summary of my perl5 (revision 5 version 8 subversion 8 patch 33111)
configuration:
  Platform:
    osname=cygwin, osvers=1.5.25(0.15642), archname=cygwin-thread-multi-64int
    uname='cygwin_nt-5.1 pn100-02-2-356p 1.5.25(0.15642) 2007-12-14
19:21 i686 cygwin '
    config_args='-de -Duse64bitint -Dusethreads -Uusemallocwrap
-Dinc_version_list=none -Dnoextensions=attrs IPC/SysV Sys/Syslog
Devel/DProf Devel/Peek re Text/Soundex XS/APItest XS/Typemap -A
append:ccflags= -DNO_MATHOMS -DPERL_DONT_CREATE_GVSV -A
define:optimize=-Os -pipe -funit-at-a-time -march=pentium4
-mfpmath=sse -mieee-fp -mmmx -msse -msse2'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__
-DNO_MATHOMS -DPERL_DONT_CREATE_GVSV -fno-strict-aliasing -pipe',
    optimize='-Os -pipe -funit-at-a-time -march=pentium4 -mfpmath=sse
-mieee-fp -mmmx -msse -msse2',
    cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -DNO_MATHOMS
-DPERL_DONT_CREATE_GVSV -fno-strict-aliasing -pipe'
    ccversion='', gccversion='3.4.4 (cygming special, gdc 0.12, using
dmd 0.125)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='g++', ldflags =' -Wl,--enable-auto-import
-Wl,--export-all-symbols -Wl,--stack,8388608
-Wl,--enable-auto-image-base -Wl,--enable-auto-import -s
-L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-ldl -lcrypt
    perllibs=-ldl -lcrypt
    libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
    cccdlflags=' ', lddlflags=' --shared  -Wl,--enable-auto-import
-Wl,--export-all-symbols -Wl,--stack,8388608
-Wl,--enable-auto-image-base -Wl,--enable-auto-import -s
-L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY MYMALLOC NO_MATHOMS
                        PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
                        PERL_USE_SAFE_PUTENV USE_64_BIT_INT USE_ITHREADS
                        USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
        MAINT32984
  Built under cygwin
  Compiled at Jan 30 2008 10:45:32
  %ENV:
    PERLIO="perlio"
    CYGWIN="ntsec"
  @INC:
    lib
    /usr/lib/perl5/5.8/cygwin
    /usr/lib/perl5/5.8
    .
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic