[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-12-12 Thread STINNER Victor

STINNER Victor added the comment:

I don't see this issue anymore on FreeBSD buildbots. It was probably fixed. The 
issue #19466 changed also the Python shutdown procedure.

--
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-08-24 Thread STINNER Victor

STINNER Victor added the comment:

It may be related to #18408 (changeset 5bd9db528aed) and #18664.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-08-17 Thread koobs

koobs added the comment:

I'm not sure if this issue is/was related, but it seems the commit addressing 
#18178 has taken care of the test_finalize_runnning_thread failure.

I note that your description specifies test_finalize_with_trace, perhaps 
suggesting your reproduction case may be something slightly different?

FWIW, I don't think I've seen the 'with_trace' test fail on my buildbots (but 
correct me if I'm wrong)

After the commit mentioned above, the FreeBSD 10 buildbot is now green on all 
branches.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-08-15 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +koobs

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-08-15 Thread STINNER Victor

New submission from STINNER Victor:

The following test fails on FreeBSD buildbot:

def test_finalize_with_trace(self):
# Issue1733757
# Avoid a deadlock when sys.settrace steps into threading._shutdown
assert_python_ok(-c, if 1:
import sys, threading

# A deadlock-killer, to prevent the
# testsuite to hang forever
def killer():
import os, time
time.sleep(2)
print('program blocked; aborting')
os._exit(2)
t = threading.Thread(target=killer)
t.daemon = True
t.start()

# This is the trace function
def func(frame, event, arg):
threading.current_thread()
return func

sys.settrace(func)
)

I ran it manually on my FreeBSD 9.1 VM, I get the following error. I don't know 
if it's the same error than the buildbot.

(...)
# clear builtins._
(...)
# restore sys.stderr
# cleanup __main__
# cleanup[1] _sysconfigdata
(...)
# cleanup[1] threading
Exception ignored in: function WeakSet.__init__.locals._remove at 
0x801b11058
Traceback (most recent call last):
  File /usr/home/haypo/prog/python/default/Lib/_weakrefset.py, line 38, in 
_remove
  File x.py, line 17, in func
AttributeError: 'NoneType' object has no attribute 'current_thread'
# cleanup[1] _weakrefset
(...)
# cleanup[3] _codecs
PyThreadState_Clear: warning: thread still has a frame


The weakref is probably threading._dangling.

IMO Py_Finalize() should first clear the trace function. Tracing Python 
exception while Python is dying (exiting) is insane. I'm surprised that it 
works :-)

--
messages: 195244
nosy: haypo, ncoghlan, pitrou
priority: normal
severity: normal
status: open
title: test_threading.test_finalize_with_trace() fails on FreeBSD buildbot
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-08-15 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file31299/finalize_clear_trace.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com