[issue28628] Failure to add signal handlers for any signal but SIGINT

2016-11-07 Thread Yury Selivanov

Yury Selivanov added the comment:

I think I have a patch for this here: https://github.com/python/asyncio/pull/456

--

___
Python tracker 

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



[issue28628] Failure to add signal handlers for any signal but SIGINT

2016-11-06 Thread Guido van Rossum

Guido van Rossum added the comment:

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).

--

___
Python tracker 

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



[issue28628] Failure to add signal handlers for any signal but SIGINT

2016-11-06 Thread A.M. Kuchling

Changes by A.M. Kuchling :


--
title: Failure to add -> Failure to add signal handlers for any signal but 
SIGINT

___
Python tracker 

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



[issue28628] Failure to add

2016-11-06 Thread brotherBox

New submission from brotherBox:

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: >
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

--
components: asyncio
files: signal_bug.py
messages: 280182
nosy: brotherBox, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: Failure to add
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file45378/signal_bug.py

___
Python tracker 

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