Closed Bug 1598561 Opened 5 years ago Closed 5 years ago

[mozlog] AssertionError: assert not self._closed at File "/usr/lib64/python2.7/multiprocessing/queues.py", line 100, in put

Categories

(Testing :: web-platform-tests, defect, P2)

x86_64
Linux
defect

Tracking

(firefox73 fixed)

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: sg, Assigned: jgraham)

Details

Attachments

(1 file)

When running MOZ_ACCELERATED=1 MOZ_WEBRENDER=1 ./mach test wpt --headless testing/web-platform/tests/IndexedDB/key_valid.html, I get the following error output just before the "Overall Summary":

 2:24.87 INFO STDERR: Traceback (most recent call last):
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/logging/__init__.py", line 889, in emit
 2:24.87 INFO STDERR:     stream.write(fs % msg)
 2:24.87 INFO STDERR:   File "/home/simon/work/mozilla-unified/testing/mozbase/mozlog/mozlog/capture.py", line 52, in write
 2:24.87 INFO STDERR:     self.queue.put(data)
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/multiprocessing/queues.py", line 100, in put
 2:24.87 INFO STDERR:     assert not self._closed
 2:24.87 INFO STDERR: AssertionError
 2:24.87 INFO STDERR: Logged from file font.py, line 49
 2:24.87 INFO STDERR: Traceback (most recent call last):
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/logging/__init__.py", line 889, in emit
 2:24.87 INFO STDERR:     stream.write(fs % msg)
 2:24.87 INFO STDERR:   File "/home/simon/work/mozilla-unified/testing/mozbase/mozlog/mozlog/capture.py", line 52, in write
 2:24.87 INFO STDERR:     self.queue.put(data)
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/multiprocessing/queues.py", line 100, in put
 2:24.87 INFO STDERR:     assert not self._closed
 2:24.87 INFO STDERR: AssertionError
 2:24.87 INFO STDERR: Logged from file font.py, line 49
 2:24.87 INFO STDERR: Traceback (most recent call last):
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/logging/__init__.py", line 889, in emit
 2:24.87 INFO STDERR:     stream.write(fs % msg)
 2:24.87 INFO STDERR:   File "/home/simon/work/mozilla-unified/testing/mozbase/mozlog/mozlog/capture.py", line 52, in write
 2:24.87 INFO STDERR:     self.queue.put(data)
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/multiprocessing/queues.py", line 100, in put
 2:24.87 INFO STDERR:     assert not self._closed
 2:24.87 INFO STDERR: AssertionError
 2:24.87 INFO STDERR: Logged from file font.py, line 49
 2:24.87 INFO STDERR: Traceback (most recent call last):
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/logging/__init__.py", line 889, in emit
 2:24.87 INFO STDERR:     stream.write(fs % msg)
 2:24.87 INFO STDERR:   File "/home/simon/work/mozilla-unified/testing/mozbase/mozlog/mozlog/capture.py", line 52, in write
 2:24.87 INFO STDERR:     self.queue.put(data)
 2:24.87 INFO STDERR:   File "/usr/lib64/python2.7/multiprocessing/queues.py", line 100, in put
 2:24.87 INFO STDERR:     assert not self._closed
 2:24.87 INFO STDERR: AssertionError
 2:24.87 INFO STDERR: Logged from file font.py, line 49
 2:24.87 INFO STDERR: INFO:root:Removed font: Ahem.ttf
 2:24.87 INFO STDERR: INFO:root:Removed font: Ahem.ttf
Summary: AssertionError: assert not self._closed at File "/usr/lib64/python2.7/multiprocessing/queues.py", line 100, in put → [mozlog] AssertionError: assert not self._closed at File "/usr/lib64/python2.7/multiprocessing/queues.py", line 100, in put

I'm not sure, but I suspect the issue is not that mozlog asserts, but that the caller is logging after

(Oops.)

I'm not sure, but I suspect the issue is not that mozlog asserts, but that the caller is logging after the log is closed.

"Logged from file font.py, line 49" looks like:

https://searchfox.org/mozilla-central/rev/3483fb259b4edbe4594cfcc3911db97d5441b67d/testing/web-platform/tests/tools/wptrunner/wptrunner/font.py

Component: Mozbase → web-platform-tests

The priority flag is not set for this bug.
:jgraham, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(james)

This is the right thing to do, and prevents a race where we try to log
after the stdout capture queue is closed

Assignee: nobody → james
Flags: needinfo?(james)
Priority: -- → P2

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jgraham, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(james)
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/2a0e33dbb9c8 Use mozlog logger in FontInstaller, r=maja_zf
Flags: needinfo?(james)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/20997 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(james)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9a781a026409 [wpt PR 20997] - [Gecko Bug 1598561] Use mozlog logger in FontInstaller, a=testonly
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: