[Python-bugs-list] [ python-Bugs-549081 ] test_signal hangs -- signal broken on OpenBSD?
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 27 Apr 2002 08:46:05 -0700
Bugs item #549081, was opened at 2002-04-26 13:54
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=549081&group_id=5470
Category: Installation
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 5
Submitted By: Noah Spurrier (noah)
Assigned to: Nobody/Anonymous (nobody)
>Summary: test_signal hangs -- signal broken on OpenBSD?
Initial Comment:
This appears to be similar to bug as PR#288,
[ 210635 ] test_signal hangs when running
as part of testall (PR#288)
except that I have this problem on a fresh install of
OpenBSD 3.0 while trying to build Python-2.2.1.
I did a generic build running as root:
./configure
./make
./make test
Yours,
Noah
----------------------------------------------------------------------
Comment By: Noah Spurrier (noah)
Date: 2002-04-27 15:40
Message:
Logged In: YES
user_id=59261
Below is the output of test_signal.py. I ran it manually. I
modified it slightly to print out the pid; the return
values from the signal calls; and to print a count of the
loop iteration (starting at 1). You can see that after
Count 4 it just sits there. After about a minute I hit Ctrl-
Z. I have uploaded the modified version of test_signal.py.
...
bash-2.05# python test_signal.py
pid: 8606
signal.alarm(20): 0
signal.signal(5, handlerA): 0
signal.signal(2, handlerB): <built-in function
default_int_handler>
signal.signal(3, signal.SIG_IGN): 0
signal.signal(signal.SIGALRM, signal.default_int_handler): 0
starting pause() loop...
+ sleep 2
count: 1
call pause()...
+ kill -5 8606
pause() returned
+ sleep 2
count: 2
call pause()...
+ kill -2 8606
pause() returned
+ sleep 2
count: 3
call pause()...
+ kill -3 8606
pause() returned
count: 4
call pause()...
^Z
[1]+ Stopped python test_signal.py
bash-2.05# ps -p 8606
PID TT STAT TIME COMMAND
8606 p0 T 0:00.09 python test_signal.py
bash-2.05# uname -a
OpenBSD nobot 3.0 GENERIC#94 i386
bash-2.05# python
Python 2.2.1 (#4, Apr 26 2002, 23:06:40)
[GCC 2.95.3 20010125 (prerelease)] on openbsd3
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=549081&group_id=5470