checkbox always exits with an error

Bug #1155619 reported by Brendan Donegan
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Medium
Jeff Lane 

Bug Description

When running checkbox it currently gives this error on exit - at least in headless mode:

checkbox-qt
/usr/bin/checkbox-qt: line 18: 15802 I/O possible python3 $CHECKBOX_SHARE/run "$@" $CHECKBOX_SHARE/configs/$(basename $0).ini

Related branches

Daniel Manrique (roadmr)
Changed in checkbox-certification:
status: New → Confirmed
importance: Undecided → Medium
affects: checkbox-certification → checkbox
description: updated
summary: - checkbox-certification-server always exits with an error
+ checkbox always exits with an error
description: updated
Jeff Lane  (bladernr)
Changed in checkbox:
status: Confirmed → Triaged
Revision history for this message
Jeff Lane  (bladernr) wrote :

Working on this... this seems to be a race that always loses (so not a race?) I think what is happening is that since we never clear out the lock correctly, it's cleared out by garbage collection on exit, but that causes the handler to remain open on a bad filehandle. At least thats my guess.

I have a branch that implements a lock release that runs when BackendInfo.stop() is fired at the end when we exit checkbox-cli, however this introduced a different problem.

Now I'm getting some bad_fd errors caused by the FifoWriters created at the beginning losing their target fds :/

Exception OSError: (9, 'Bad file descriptor') in <bound method FifoReader.__del__ of <checkbox.lib.fifo.FifoReader object at 0xa7f1e6c>> ignored
Exception OSError: (9, 'Bad file descriptor') in <bound method FifoWriter.__del__ of <checkbox.lib.fifo.FifoWriter object at 0xa7f1dec>> ignored

These are the objects created at the beginning... so now I'm trying to figure out what is going on here (I think it's trying to delete the Fifos that don't exist)

Revision history for this message
Jeff Lane  (bladernr) wrote :

Branch to address the issues.

Changed in checkbox:
status: Triaged → In Progress
assignee: nobody → Jeff Lane (bladernr)
Jeff Lane  (bladernr)
information type: Proprietary → Public
Jeff Lane  (bladernr)
Changed in checkbox:
status: In Progress → Fix Committed
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.