[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2016-04-05 Thread skydoom
skydoom added the comment: I just update the title to be precise. Exception ignored in: in _shutdown, assert tlock.locked() AssertionError: -- title: Exception exceptions.AttributeError '_shutdown' in -> Exception ignored in: in _shutdown, assert tlock.loc

[issue26693] Exception exceptions.AttributeError '_shutdown' in

2016-04-05 Thread skydoom
skydoom added the comment: I print out the threading.__file__ and can see it's "${PYTHONHOME}/lib/python3.5/threading.py" . I don't have any other "threading.py" elsewhere. so what should I do? -- ___ Python tracker <rep...

[issue26693] Exception exceptions.AttributeError '_shutdown' in

2016-04-05 Thread skydoom
skydoom added the comment: sorry Martin, you are right, my original title was simply (and wrongly) copied over from the issue 1947. You get my identical error message in your post. -- ___ Python tracker <rep...@bugs.python.org>

[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2016-04-07 Thread skydoom
skydoom added the comment: It looks like there is a bug in the _shutdown function of threading.py, that it does not check whether the _main_thread.is_alive() or not. My temporary fix is to add the following checking in the beginning of _shutdown and it seems no more error message pop up

[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2016-04-07 Thread skydoom
skydoom added the comment: sorry typo above, is_active should be read as is_alive. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2016-04-05 Thread skydoom
skydoom added the comment: I quote the "issue 1947" just because I did a search in the db before I file this issue and find its output is similar to what I see, (except that it has "AttributeError" which mine does not have.) and because it's filed for 2.5 and I am not

[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2016-04-08 Thread skydoom
Changes by skydoom <skyd...@163.com>: -- nosy: +pitrou ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26693> ___ ___ Python

[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2016-04-11 Thread skydoom
skydoom added the comment: Hi Pitrou, would you be able to look at my issue and the proposed pathc? Thanks -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26693] Exception exceptions.AttributeError '_shutdown' in

2016-04-04 Thread skydoom
New submission from skydoom: I did a search and find the issue 1947, however it's set to "not a bug". In its last note, it's suggested a 'packaging/environment issue'. But since I can reliably reproduce the issue with the "official python package"(that installed by the

[issue26693] Exception exceptions.AttributeError '_shutdown' in

2016-04-04 Thread skydoom
skydoom added the comment: This is how I compile my code: CFLAG is obtained from `python3.5m-config --includes` LDFLAG is obtained from `"python-3.5m-config --ldflags` g++ ${CFLAG} ${LDFLAG} test2.C I am running on Linux. -- ___ Python tracker

[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2016-04-13 Thread skydoom
skydoom added the comment: seems we also need to check whether _main_thread is daemon thread or not, so the proposed patch would look like: def _shutdown(): # add these checking first if( _main_thread.isDaemon() is False or _main_thread.is_alive() is False ): return