Front page | perl.perl5.porters |
Postings from June 2011
[perl #93428] potential race condition when mixing signals and select()
From:
E R
Date:
June 24, 2011 01:55
Subject:
[perl #93428] potential race condition when mixing signals and select()
Message ID:
rt-3.6.HEAD-16080-1308857259-624.93428-75-0@perl.org
# New Ticket Created by E R
# Please include the string: [perl #93428]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=93428 >
This is a bug report for perl from pc88mxer@gmail.com
generated with the help of perlbug 1.39 running under perl 5.12.1.
-----------------------------------------------------------------
[Please describe your issue here]
>From this discussion on perlmonks:
http://perlmonks.com/?node_id=908535
it seems there is a race condition when mixing signals and select().
A solution is to use pselect() instead of select() when available.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl 5.12.1:
Configured by pc88mxer at Wed Aug 4 11:52:39 CDT 2010.
Summary of my perl5 (revision 5 version 12 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.32-24-generic-pae, archname=i686-linux
uname='linux pc88mxer-laptop 2.6.32-24-generic-pae #38-ubuntu smp
mon jul 5 10:54:21 utc 2010 i686 gnulinux '
config_args='-des -Dprefix=/home/pc88mxer/apps/perl-5.12'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.11.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.11.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'
-
[perl #93428] potential race condition when mixing signals and select()
by E R