This is the mail archive of the
mailing list for the Cygwin project.
Re: gawk: Bad File Descriptor error with concurrent readonly access to a network file
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 25 Sep 2015 18:58:57 +0200
- Subject: Re: gawk: Bad File Descriptor error with concurrent readonly access to a network file
- Authentication-results: sourceware.org; auth=none
- References: <AB495CE313664A489959F8DEF45069A90188AA0710 at EXSRV01 dot avt-imst dot local>
On 25/09/2015 18:31, Vermessung AVT - Wolfgang Rieger wrote:
We let thousands of tiles undergo the same time consuming processing tasks. We use a multi core Windows 7 workstation running several tiles simultaneously in separate shell windows (parallel processing). A batch script controls the work flow of the task with gawk interpreting a number of setup / definition files at run time for each tile / working step. From time to time we get "Bad File Descriptor" errors in gawk (and, e.g., cat, head, tail) when accessing these setup files (they are only read). The full error line reads similar to:
(With job.awk and first access to datafile.txt at gawk source line 31:)
"gawk: job.awk:31: fatal: error reading input file `datafile.txt': Bad file descriptor"
(With inline gawk scripts typically:)
"gawk: fatal: error reading input file `datafile.txt': Bad file descriptor"
(With something like "cat datafile.txt > destination":)
"cat: datafile.txt: Bad file descriptor"
We use MS-Windows shell cmd.exe with batch scripts executing the gawk and other commands.
I tried to use gawk's BEGINFILE rule in order to trap that error. However, the BEGINFILE block is never entered, rather, gawk immediately crashes with the "Bad File Descriptor" error.
"Bad file descriptor" just arose recently in another problem
Have you by chance some potential suspect like usual ones
On your cygcheck output I notice nothing strange.
Can you provide the type of network disk with
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple