Closed Bug 1429114 Opened 6 years ago Closed 2 years ago

Intermittent Exception in thread ProcessReaderStdout: ... ValueError: I/O operation on closed file

Categories

(Testing :: Mozbase, defect, P3)

ARM
Android
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: aryx, Assigned: gbrown)

Details

(Keywords: intermittent-failure)

https://treeherder.mozilla.org/logviewer.html#?job_id=154986082&repo=mozilla-central

[task 2018-01-09T10:57:51.082Z] 10:57:51     INFO -  'TASK_ID': 'ayqBfCGXTCejUvM2K2QyZQ',
[task 2018-01-09T10:57:51.082Z] 10:57:51     INFO -  'TERM': 'xterm',
[task 2018-01-09T10:57:51.082Z] 10:57:51     INFO -  'TINDERBOX_OUTPUT': '1',
[task 2018-01-09T10:57:51.083Z] 10:57:51     INFO -  'TOOLTOOL_CACHE': '/builds/worker/tooltool-cache',
[task 2018-01-09T10:57:51.083Z] 10:57:51     INFO -  'USER': 'worker',
[task 2018-01-09T10:57:51.083Z] 10:57:51     INFO -  '_': '/usr/bin/python2.7'}
[task 2018-01-09T10:57:51.311Z] 10:57:51     INFO -   0:00.17 /usr/bin/make -C /builds/worker/workspace/build/src/obj-firefox -j8 -s backend
[task 2018-01-09T10:57:51.348Z] 10:57:51     INFO -   0:00.20 /usr/bin/make -C config -j8 -s export
[task 2018-01-09T10:57:51.354Z] 10:57:51     INFO -  Exception in thread ProcessReaderStdout:
[task 2018-01-09T10:57:51.355Z] 10:57:51    ERROR -  Traceback (most recent call last):
[task 2018-01-09T10:57:51.355Z] 10:57:51     INFO -    File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
[task 2018-01-09T10:57:51.355Z] 10:57:51     INFO -      self.run()
[task 2018-01-09T10:57:51.355Z] 10:57:51     INFO -    File "/usr/lib/python2.7/threading.py", line 754, in run
[task 2018-01-09T10:57:51.356Z] 10:57:51     INFO -      self.__target(*self.__args, **self.__kwargs)
[task 2018-01-09T10:57:51.356Z] 10:57:51     INFO -    File "/builds/worker/workspace/build/src/testing/mozbase/mozprocess/mozprocess/processhandler.py", line 942, in _read_stream
[task 2018-01-09T10:57:51.356Z] 10:57:51     INFO -      line = stream.readline()
[task 2018-01-09T10:57:51.356Z] 10:57:51     INFO -  ValueError: I/O operation on closed file
[task 2018-01-09T10:57:51.387Z] 10:57:51     INFO -   0:00.24 /usr/bin/make -j8 -s buildid.h
[task 2018-01-09T10:57:51.405Z] 10:57:51     INFO -   0:00.26 buildid.h
[task 2018-01-09T10:57:51.507Z] 10:57:51     INFO -   0:00.36 Your build was successful!
Component: General Automation → Mozbase
Product: Release Engineering → Testing
QA Contact: catlee
This seems to be Android only.
OS: Unspecified → Android
Hardware: Unspecified → ARM
Component: Mozbase → Build Config & IDE Support
Product: Testing → Firefox for Android
(In reply to Henrik Skupin (:whimboo) from comment #3)
> This seems to be Android only.

This may be _exposed_ by Android jobs (builds and/or tests), but this looks to me like a mozharness (really, mozprocess) error.  It seems like the code that monitors stdout is trying to read after stdout has closed, which suggests a race between process death and the reader code.

It would be better to close this than to put it in Firefox for Android :: Build Config & IDE Support, 'cuz it almost certainly has nothing to do with Android-specific build configuration.
Component: Build Config & IDE Support → Mozbase
Priority: -- → P3
Product: Firefox for Android → Testing
Severity: normal → S3
Assignee: nobody → gbrown
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.