develooper Front page | perl.perl5.porters | Postings from August 2012

[perl #114618] Infinite recursion in overload causes SIGSEGV

Thread Previous
From:
GlitchMr
Date:
August 27, 2012 10:54
Subject:
[perl #114618] Infinite recursion in overload causes SIGSEGV
Message ID:
rt-3.6.HEAD-11172-1346090057-558.114618-75-0@perl.org
# New Ticket Created by  GlitchMr 
# Please include the string:  [perl #114618]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114618 >



This is a bug report for perl from glitchmr@myopera.com,
generated with the help of perlbug 1.39 running under perl 5.17.3.


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

Following code causes SIGSEGV. Neither changing package or blessed
object doesn't change this bug or make it disappear.

    use strict;
    use warnings;
    use overload '*' => sub {
        my ($a, $b) = @_;
        $a * $b;
    };
    # Causes infinite recursion on overload '*' and SIGSEGV.
    print 42 * bless [];


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

Configured by glitchmr at Mon Aug 20 11:56:56 CEST 2012.

Summary of my perl5 (revision 5 version 17 subversion 3) configuration:
  Derived from: ee982b091ce3fe08360cc0fff41cd8c3b39c9787
  Platform:
    osname=linux, osvers=3.2.0-29-generic, archname=x86_64-linux
    uname='linux strawberry 3.2.0-29-generic #46-ubuntu smp fri jul 27 17:03:23 utc 2012 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Dprefix=/home/glitchmr/perl-compile -Dusedevel -DEBUGGING -d'
    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 ='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.6.3', 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='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.15'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.17.3:
    /home/glitchmr/perl5/lib/perl5/x86_64-linux-gnu-thread-multi
    /home/glitchmr/perl-compile/bin
    /home/glitchmr/perl5/lib/perl5
    /home/glitchmr/perl-compile/lib/site_perl/5.17.3/x86_64-linux
    /home/glitchmr/perl-compile/lib/site_perl/5.17.3
    /home/glitchmr/perl-compile/lib/5.17.3/x86_64-linux
    /home/glitchmr/perl-compile/lib/5.17.3
    .

---
Environment for perl 5.17.3:
    HOME=/home/glitchmr
    LANG=pl_PL.UTF-8
    LANGUAGE=
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/glitchmr/perl-compile/bin:/home/glitchmr/parrot/bin:/home/glitchmr/util:/home/glitchmr/perl5/bin:/home/glitchmr/rakudo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/bin:/usr/games:/usr/bin
    PERL5LIB=/home/glitchmr/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:/home/glitchmr/perl-compile/bin:/home/glitchmr/perl5/lib/perl5
    PERL_BADLANG (unset)
    PERL_LOCAL_LIB_ROOT=/home/glitchmr/perl5
    PERL_MB_OPT=--install_base /home/glitchmr/perl5
    PERL_MM_OPT=INSTALL_BASE=/home/glitchmr/perl5
    SHELL=/usr/bin/fish


Thread Previous


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