Perl

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • DynaLoader corrupts %ENV

    1 answers - 1329 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    la 28.06.2006 11:32 Rafael Garcia-Suarez via RT skribis:
    occitan (AT) t-online (DOT) de wrote:

    >Using Term::ReadLine::Gnu the assignment to ENV gives:
    >>

    >$ perl -MTerm::ReadLine -e 'new Term::ReadLine; $ENV{GG} = "fffff"'
    >of memory!
    >
    >

    I don't reproduce this on linux, either with 5.8.7, 5.8.8 or bleadperl,
    with a similar configuration (no threads, usemymalloc=n) with and
    without Term::ReadLine::Gnu installed. Maybe I missed something.
    Nor do I, only on Solaris. IIRC, when building perl myself many years
    ago, I was given a choice of DynaLoad mechanisms and had a hard time to
    get it running. Since the contents of the loaded library decide whether
    this happens or not, maybe there is some memory overwriting happening,
    the effect of which depends on the precise layout of the library -- and
    probably on the dl mechanism.
    I also forgot to mention that I trussed (that's strace for Linuxers) the
    programm, and no system calls were failing (besides a few irrelevant
    ENENTs while searching for files). So that would suggest that an
    internal malloc wrapper is failing.
    coralament / best Gtens / liebe Ge / best regards / elkorajn salutojn
    Daniel Pfeiffer
  • No.1 | | 636 bytes | |

    28/06/06, Daniel Pfeiffer <dapfy (AT) t-online (DOT) dewrote:
    I also forgot to mention that I trussed (that's strace for Linuxers) the
    programm, and no system calls were failing (besides a few irrelevant
    ENENTs while searching for files). So that would suggest that an
    internal malloc wrapper is failing.

    But your perl uses the system's malloc. (like mine)
    You could try to compile a perl configured with -Dusemymalloc to see
    if you have the same problem with perl's builtin malloc.

    coralament / best G / liebe G / best regards / elkorajn salutojn

    Cordialement,
    --

Re: DynaLoader corrupts %ENV


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Perl"

EMSDN.COM