Skip to content

Can't run Flutter on NFS (flock reports "Bad file descriptor") #6549

@droundy

Description

@droundy

Steps to Reproduce

I expect you may have difficulty reproducing this, but I run into the following error when running flutter:

$ flutter
flock: 3: Bad file descriptor

The error happens at line 35 of the flutter shell script, which tries to take a lock using the flock utility. This is on a debian stable computer, and I have no experience using flock with bash, and haven't been able to debug it. I can make flutter work fine by changing the preceding line such that the if statement fails and a lock is not taken.

I presume file descriptor 3 is supposed to be created by line 50, which reads:

) 3< $PROG_NAME

but don't care to learn enough bash to figure out why it is not working, particularly as I have a workaround. But it does seem worth fixing, to make flutter work for folks who aren't comfortable editing a bash script.

Logs

Can't do this since flutter fails. Unless I disable the lock, in which case it works fine.

Flutter Doctor

Again, not relevant.

Metadata

Metadata

Assignees

Labels

toolAffects the "flutter" command-line tool. See also t: labels.waiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions