Page MenuHomePhabricator

exception in atexit
Closed, ResolvedPublic

Description

There is a bug somewhere in the shutdown routines. It looks like the assumption is that info() exists and is callable, and sometimes on 2.6 at least it isnt always a safe bet to make.

https://travis-ci.org/wikimedia/pywikibot-core/jobs/39409037

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/opt/python/2.6.9/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/opt/python/2.6.9/lib/python2.6/multiprocessing/util.py", line 258, in _exit_function
    info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/opt/python/2.6.9/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/opt/python/2.6.9/lib/python2.6/multiprocessing/util.py", line 258, in _exit_function
    info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/opt/python/2.6.9/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/opt/python/2.6.9/lib/python2.6/multiprocessing/util.py", line 258, in _exit_function
    info('process shutting down')
TypeError: 'NoneType' object is not callable

Version: core-(2.0)
Severity: minor
URL: https://www.google.com/search?q=%22_run_exitfuncs%22+%22process%20shutting%20down%22+site%3Atravis-ci.org

Details

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:45 AM
bzimport set Reference to bz72699.
bzimport added a subscriber: Unknown Object (????).

I know that this error has happened many times in the past.

It would be great to find which travis logs include this error, to triage it better.

This shows many other similar logs
https://www.google.com/search?q="_run_exitfuncs"+"process%20shutting%20down"+site%3Atravis-ci.org

But adding search term "pywikibot" and there are zero results.

Most of the travis logs from other projects are python 2.7, so it likely also happens under python 2.7

Here is the same error on py27, in the shutdown after install Pillow
https://travis-ci.org/wikimedia/pywikibot-core/jobs/39760334

jayvdb triaged this task as Low priority.Dec 6 2014, 2:45 AM
jayvdb removed a project: Pywikibot-General.
jayvdb set Security to None.
jayvdb removed a subscriber: Unknown Object (????).

Change 234195 had a related patch set uploaded (by John Vandenberg):
Work around traceback in atexit

https://gerrit.wikimedia.org/r/234195

Change 234195 merged by jenkins-bot:
Work around traceback in atexit

https://gerrit.wikimedia.org/r/234195

Change 243346 had a related patch set uploaded (by John Vandenberg):
Work around traceback in atexit

https://gerrit.wikimedia.org/r/243346

Change 243346 merged by jenkins-bot:
Work around traceback in atexit

https://gerrit.wikimedia.org/r/243346

jayvdb claimed this task.