EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy
From: Jameson Graef Rollins <[email protected]>
To: "Wang Xiaoqiang \(PSI\)" <[email protected]>
Cc: Epics <[email protected]>
Date: Wed, 13 May 2015 10:52:58 -0700
On Tue, May 12 2015, "Wang Xiaoqiang (PSI)" <[email protected]> wrote:
> Maybe a minimal example representing the program logic could help the debug.

Hi, Xiaoqiang.  Unfortunately that's quite difficult to provide, since
this program is fairly complex and I'm not sure how to make a "minimal"
representation that would provide anything useful.  Given that I still
haven't been able to replicate the bug in a controlled way, I would have
no way of knowing the the "minimal" application includes whatever is
currently triggering the issue.

The cas is executed in a threading.Thread object (see below).  Do you
see anything obviously problematic in how the server/driver are being
invoked?

jamie.


class CADriver(pcaspy.Driver):
    def __init__(self, ...):
        super(CADriver, self).__init__()
        ...
    ...

class CAServer(threading.Thread):
    def __init__(self, ...):
        super(CAServer, self).__init__()
        ...
        self._ready_event = threading.Event()
        self._server = pcaspy.SimpleServer()
        ...
        self._driver = CADriver(...)
        ...
    ...
    def run(self):
        self._ready_event.set()
        while self._running:
            self._server.process(0.1)

Attachment: signature.asc
Description: PGP signature


References:
"epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Jameson Graef Rollins
Re: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Jameson Graef Rollins
Re: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Wang Xiaoqiang (PSI)

Navigate by Date:
Prev: Re: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Michael Davidsaver
Next: Re: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Jameson Graef Rollins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Wang Xiaoqiang (PSI)
Next: Re: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·