Skip site navigation (1)Skip section navigation (2)
Date:      3 Dec 2002 20:08:24 -0000
From:      wright <wright@pair.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45972: Perl system() calls will hang if the process has other forked children.
Message-ID:  <20021203200824.22890.qmail@pit24.pair.com>

next in thread | raw e-mail | index | archive | help

>Number:         45972
>Category:       ports
>Synopsis:       Perl system() calls will hang if the process has other forked children.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 03 12:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     wright@pair.com
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
pair Networks, Inc.
>Environment:
System: FreeBSD pair.com 4.5-STABLE FreeBSD 4.5-STABLE #8: Mon Apr 15 10:23:48 EDT 2002 root@pair.com:/usr/src/sys/compile/PAIRk i386

This bug is known to happen consistently on the following FreeBSD / Perl version combinations:

FreeBSD 4.5-STABLE / Perl 5.8.0 (vfork enabled)
FreeBSD 4.5-STABLE / Perl 5.8.0 (vfork disabled)
FreeBSD 4.6-STABLE / Perl 5.6.0 
FreeBSD 4.6-STABLE / Perl 5.6.1
FreeBSD 4.6-STABLE / Perl 5.005_03

The bug does not occur on the following FreeBSD / Perl combination:

FreeBSD 2.2.7-STABLE / Perl 5.005_02
FreeBSD 2.2.7-STABLE / Perl 5.6.1

>Description:

  While using Perl in FreeBSD, if the SIG CHLD handler is set to 'IGNORE' and a child process is forked, then all subsequent system() calls made in the parent process will hang until the previously forked child has exited. 

>How-To-Repeat:

perl -e '$SIG{CHLD} = "IGNORE"; fork or sleep 0xbeef; system "echo chamber";'


>Fix:

 ???


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021203200824.22890.qmail>