Issue28628
Created on 2016年11月07日 01:43 by brotherBox, last changed 2022年04月11日 14:58 by admin.
| Files |
| File name |
Uploaded |
Description |
Edit |
|
signal_bug.py
|
brotherBox,
2016年11月07日 01:43
|
| Messages (3) |
|
msg280182 - (view) |
Author: (brotherBox) |
Date: 2016年11月07日 01:43 |
This is the first bug that I file, so please bear with me here. I was advised to file this after running into a strange situation with asyncio 3.4.3. Adding signal handlers for any other signal but SIGINT throws strange exceptions. The attached source code produces the following traceback:
Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=True debug=False>>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/base_events.py", line 501, in __del__
File "/usr/lib/python3.5/asyncio/unix_events.py", line 58, in close
File "/usr/lib/python3.5/asyncio/unix_events.py", line 139, in remove_signal_handler
File "/usr/lib/python3.5/signal.py", line 47, in signal
TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object
I asked in #python on freenode and was asked to file this bug.
Thank you for your consideration
|
|
msg280184 - (view) |
Author: Guido van Rossum (gvanrossum) * (Python committer) |
Date: 2016年11月07日 02:34 |
Hm... We've seen this exact same crash reported several times before, and it was closed without a fix AFAICT each time.
- https://github.com/python/asyncio/issues/396
- http://bugs.python.org/issue23548
IIUC the conclusion in the latter was that this is due to a bug in the user code (forgetting to close() the event loop).
|
|
msg280229 - (view) |
Author: Yury Selivanov (yselivanov) * (Python committer) |
Date: 2016年11月07日 19:55 |
I think I have a patch for this here: https://github.com/python/asyncio/pull/456
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2022年04月11日 14:58:39 | admin | set | github: 72814 |
| 2016年11月07日 19:55:40 | yselivanov | set | messages:
+ msg280229 |
| 2016年11月07日 02:34:00 | gvanrossum | set | messages:
+ msg280184 |
| 2016年11月07日 02:04:36 | akuchling | set | title: Failure to add -> Failure to add signal handlers for any signal but SIGINT |
| 2016年11月07日 01:43:19 | brotherBox | create |