You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/10/23 16:00:57 UTC
[jira] [Commented] (DISPATCH-72) Sporadic core dumps in dispatch
tests
[ https://issues.apache.org/jira/browse/DISPATCH-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14181352#comment-14181352 ]
ASF subversion and git services commented on DISPATCH-72:
---------------------------------------------------------
Commit 1633814 from [~aconway] in branch 'dispatch/trunk'
[ https://svn.apache.org/r1633814 ]
DISPATCH-72: Sporadic core dumps in dispatch tests.
Added missing lock scopes around calls to python code, this resoloved the
sporadic core dumps (over 1000 test runs overnight with no failures)
Initially I speculated that the problem was that we don't lock the GIL as recommended by
the python C API docs https://docs.python.org/2/c-api/init.html#non-python-created-threads.
Instead we use a separate mutex in the C code.
I attempted to use the GIL but that caused deadlocks. They appeared to be
associated with locking a python mutex in the management agent - this causes
python to unlock and relock the GIL. That allows other threads into the python
code which somehow causes deadlock - I am not sure exactly why.
I believe it is OK to use the separate C mutex *provided* we never create
threads in python code. If we do that then I think we will need to re-visit the
GIL and figure out how to lock it correctly.
> Sporadic core dumps in dispatch tests
> -------------------------------------
>
> Key: DISPATCH-72
> URL: https://issues.apache.org/jira/browse/DISPATCH-72
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Routing Engine
> Affects Versions: 0.2
> Reporter: Alan Conway
> Assignee: Alan Conway
>
> Dispatch system tests show sporadic core dumps associated with python frame-handling code. This appears to be a thread-safety problem in the handling of python code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org