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

[perl #119719] Coredump when assigning a glob to a thread-shared array

Thread Next
From:
slaven @ rezic . de
Date:
September 11, 2013 17:08
Subject:
[perl #119719] Coredump when assigning a glob to a thread-shared array
Message ID:
rt-3.6.HEAD-1873-1378919314-928.119719-75-0@perl.org
# New Ticket Created by  slaven@rezic.de 
# Please include the string:  [perl #119719]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119719 >



This is a bug report for perl from slaven@rezic.de,
generated with the help of perlbug 1.39 running under perl 5.18.1.


-----------------------------------------------------------------
The following script segfaults:

#!/usr/bin/perl -w

use strict;
use threads;
use threads::shared;

my @foo :shared;
push @foo, *STDOUT;

__END__

I reproduced the problem on a FreeBSD 9.0 system with
perl 5.18.1 (this one), same system with 5.16.1, and
on a Debian/squeeze box with system perl.

Actually I don't expect that anything useful happens here, it
just shouldn't segfault.

Regards,
    Slaven

-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
    module=threads::shared
---
Site configuration information for perl 5.18.1:

Configured by eserte at Mon Aug 19 07:57:03 CEST 2013.

Summary of my perl5 (revision 5 version 18 subversion 1) configuration:
   
  Platform:
    osname=freebsd, osvers=9.0-release, archname=amd64-freebsd-thread-multi
    uname='freebsd cvrsnica.herceg.de 9.0-release freebsd 9.0-release #0: tue jan 3 07:46:30 utc 2012 root@farrell.cse.buffalo.edu:usrobjusrsrcsysgeneric amd64 '
    config_args='-D usethreads=define -D useshrplib=true -Dprefix=/usr/perl5.18.1t -Dprefix=/usr/perl5.18.1t -Dusemymalloc=n -D cc=ccache cc -Dgccansipedantic -de'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='ccache cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O2 -pipe',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 20070831 patched [FreeBSD]', 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='ccache cc', ldflags ='-pthread -Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt
    perllibs=-lm -lcrypt
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,-R/usr/perl5.18.1t/lib/5.18.1/amd64-freebsd-thread-multi/CORE'
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.18.1:
    /usr/perl5.18.1t/lib/site_perl/5.18.1/amd64-freebsd-thread-multi
    /usr/perl5.18.1t/lib/site_perl/5.18.1
    /usr/perl5.18.1t/lib/5.18.1/amd64-freebsd-thread-multi
    /usr/perl5.18.1t/lib/5.18.1
    .

---
Environment for perl 5.18.1:
    HOME=/home/e/eserte
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=de_DE.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/e/eserte/bin/freebsd9.0:/home/e/eserte/bin/sh:/home/e/eserte/bin:/usr/games:/home/e/eserte/devel
    PERLDOC=-MPod::Perldoc::ToTextOverstrike
    PERL_BADLANG (unset)
    PERL_HTML_DISPLAY_CLASS=HTML::Display::Mozilla
    SHELL=/usr/local/bin/zsh


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