develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #120019] an example in load_module would be helpful

Thread Next
From:
Ruslan Zakirov
Date:
September 27, 2013 11:49
Subject:
[perl #120019] an example in load_module would be helpful
Message ID:
rt-3.6.HEAD-31239-1380192945-687.120019-75-0@perl.org
# New Ticket Created by  Ruslan Zakirov 
# Please include the string:  [perl #120019]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=120019 >


This is a bug report for perl from Ruslan.Zakirov@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.16.1.


-----------------------------------------------------------------
[Please describe your issue here]

load_module decrements ref counter on arguments, so it was confusing
when I got warnings after calling it with mortalized SVs. An example
with newSVpvs() would have rised my attention to memory management
aspects of the function.

I know doc mentions that ref counters are decremented, but I didn't
get to the line :)

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=docs
    severity=low
---
Site configuration information for perl 5.16.1:

Configured by ruz at Tue Sep 11 03:03:12 MSK 2012.

Summary of my perl5 (revision 5 version 16 subversion 1) configuration:
   
  Platform:
    osname=darwin, osvers=12.1.0, archname=darwin-2level
    uname='darwin macbook-ruslan.local 12.1.0 darwin kernel version 12.1.0: tue aug 14 13:29:55 pdt 2012; root:xnu-2050.9.2~1release_x86_64 x86_64 '
    config_args='-de -Duserelocatableinc -Dprefix=/Users/ruz/perl5/perlbrew/perls/perl-5.16.1 -DDEBUGGING -Aeval:scriptdir=/Users/ruz/perl5/perlbrew/perls/perl-5.16.1/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include',
    optimize='-O3 -g',
    cppflags='-fno-common -DPERL_DARWIN -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include'
    ccversion='', gccversion='4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/opt/local/lib'
    libpth=/opt/local/lib /usr/lib
    libs=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/opt/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.16.1:
    /Users/ruz/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1/darwin-2level
    /Users/ruz/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1
    /Users/ruz/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/darwin-2level
    /Users/ruz/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1
    .

---
Environment for perl 5.16.1:
    DYLD_LIBRARY_PATH=/opt/oracle/instantclient-11.2.0.3.0-macosx-x64:
    HOME=/Users/ruz
    LANG=ru_RU.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/Users/ruz/perl5/perlbrew/bin:/Users/ruz/perl5/perlbrew/perls/perl-5.16.1/bin:/Users/ruz/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
    PERLBREW_BASHRC_VERSION=0.66
    PERLBREW_HOME=/Users/ruz/.perlbrew
    PERLBREW_MANPATH=/Users/ruz/perl5/perlbrew/perls/perl-5.16.1/man
    PERLBREW_PATH=/Users/ruz/perl5/perlbrew/bin:/Users/ruz/perl5/perlbrew/perls/perl-5.16.1/bin
    PERLBREW_PERL=perl-5.16.1
    PERLBREW_ROOT=/Users/ruz/perl5/perlbrew
    PERLBREW_VERSION=0.66
    PERL_BADLANG (unset)
    SHELL=/opt/local/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About