Opened 4 years ago

Last modified 4 years ago

#57865 new defect

mpbb fails parsing command line options if disk is full

Reported by: ryandesign (Ryan Schmidt) Owned by: admin@…
Priority: Normal Milestone:
Component: buildbot/mpbb Version:
Keywords: Cc:


If the disk is full, mpbb fails while parsing command line options:

/opt/bblocal/var/buildworker/ports/build/mpbb/functions: line 46: cannot create temp file for here document: No space left on device
/opt/bblocal/var/buildworker/ports/build/mpbb/functions: line 20: validopts[@]: unbound variable

Would be great if mpbb cleanup at least could work even if the disk is full, since this failure leaves the builder in a wedged state with no disk space available, causing subsequent builds to fail, requiring some manual cleanup and rescheduling of the failed builds.

Lines 46-47 of functions are:

    IFS=, read -ra validopts <<<"$1"
    readonly validopts=("${validopts[@]/#/--}")

Apparently a here document (<<<) requires a temporary file. Could the options be parsed successfully without a heredoc?

Change History (1)

comment:1 Changed 4 years ago by ryandesign (Ryan Schmidt)

Or maybe it is unreasonable to accommodate a full disk, and we should instead focus on preventing that from occurring; #57869 is an idea for that.

Note: See TracTickets for help on using tickets.