Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e4508eeb
Commit
e4508eeb
authored
Oct 17, 2013
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try strace instead of gdb to see what wedged child is doing.
parent
a3cf1aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Lib/test/_test_multiprocessing.py
Lib/test/_test_multiprocessing.py
+6
-4
No files found.
Lib/test/_test_multiprocessing.py
View file @
e4508eeb
...
...
@@ -273,7 +273,10 @@ class _TestProcess(BaseTestCase):
@
classmethod
def
_test_terminate
(
cls
):
print
(
'signal.getsignal(SIGTERM) ='
,
signal
.
getsignal
(
signal
.
SIGTERM
))
print
(
'starting sleep'
)
time
.
sleep
(
100
)
print
(
'finished sleep'
)
def
test_terminate
(
self
):
if
self
.
TYPE
==
'threads'
:
...
...
@@ -313,12 +316,11 @@ class _TestProcess(BaseTestCase):
except
RuntimeError
:
print
(
'os.waitpid() ='
,
os
.
waitpid
(
p
.
pid
,
os
.
WNOHANG
))
import
subprocess
p
=
subprocess
.
Popen
([
'gdb'
,
sys
.
executable
,
str
(
p
.
pid
)],
stdin
=
subprocess
.
PIPE
)
try
:
p
.
communicate
(
b'bt 50'
,
timeout
=
10
)
subprocess
.
check_call
([
'strace'
,
'-p'
,
str
(
p
.
pid
)],
timeout
=
10
)
except
subprocess
.
TimeoutExpired
:
p
.
kill
()
p
ass
raise
finally
:
signal
.
signal
(
signal
.
SIGALRM
,
old_handler
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment