From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 25 23:03:42 2008 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8251106566B for ; Fri, 25 Jul 2008 23:03:42 +0000 (UTC) (envelope-from flagel@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id B41538FC17 for ; Fri, 25 Jul 2008 23:03:42 +0000 (UTC) (envelope-from flagel@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so4445861rvf.43 for ; Fri, 25 Jul 2008 16:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=1P8Hlh44SeOXIh3ZXdzBGaq+QFLUM4ij1ALBLJdGEtY=; b=LrmF1vJo1tm7+x1dGFeqPcAPfKNZv+W2qyNrABrMa7Xi11psshobCQ44viLJgL/fFs Tw3nh4fR1FrL73pknNFTOYu8YnbepJk3l58VTIVWCO/4DeTcRnkNxiDSHxwfu+gffzr3 z9PrMqzsJDZ3teVweLtQLuhDz9RHjCAeT7MKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=LvIhf3RsQCZXEnNsPCHcAsHobityaol436+QQKJRydWwfYGC5eUTawe7ZdgUTZLhtI a7HKOR6ajgBd4hf2yGIwn5P0yIs98WpCgKn7FtaA3KC3OjHcXqdqkkAxnAXfbhnJWnyt rs5mTY24FlK1a0aAng4A7fmreTMSG7Hx+FCWE= Received: by 10.141.87.13 with SMTP id p13mr1139425rvl.93.1217025310244; Fri, 25 Jul 2008 15:35:10 -0700 (PDT) Received: by 10.140.204.3 with HTTP; Fri, 25 Jul 2008 15:35:10 -0700 (PDT) Message-ID: Date: Sat, 26 Jul 2008 00:35:10 +0200 From: "Tanel Rebane" To: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: "Interrupted system call"-output with Bash 3.2.39(1)-release X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 23:03:42 -0000 Hello good people, I've come across a problem that I can't seem to find a solution to. It seems to me that this might be a bug. The following shell script: #!/usr/bin/env bash for (( q = 0 ; q < 10 ; q++ )); do while read -d '' z; do result+=("$z"); done < <(printf "%s\000\n" foo | grep -a 'foo') # Uncommenting sleep will fix the problem # sleep 1 done #printf "%s\n" "${result[@]}" Results in the following output: [22:43:09][flagel@rose ~/private/system] ./error.bash ./error.bash: line 9: /var/tmp//sh-np-4223088879: Interrupted system call ./error.bash: line 9: /var/tmp//sh-np-638574683: Interrupted system call ./error.bash: line 9: /var/tmp//sh-np-3418944767: Interrupted system call ./error.bash: line 9: /var/tmp//sh-np-57321729: Interrupted system call It seems that the number of "Interrupted system call"-outputs are approximately half of the iterations in the for-loop, this holds true with 5, 10, 20 and 30 iterations. Other than that it creates a lot of /var/tmp/sh-np-* files and leaves -/usr/local/bin/bash-processes running. The system in question is a 7.0-Stable box with GNU bash, version 3.2.39(1)-release from ports. For the moment this problem does not occur on my GNU/Linux Ubuntu 7.10-system. However, last time I tried the script (some months ago) it did produce the same output as on the FBSD-system. More info, code and a runnable script is found on http://qwqb.com/error.bash I am most thankful for any help or ideas you might give me. Thanks in advance! Yours faithfully, Tanel Rebane