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  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Re: Questions about ca_search and ca_create_channel
From: 김대영 via Tech-talk <tech-talk at aps.anl.gov>
To: Michael Davidsaver <mdavidsaver at gmail.com>, tech-talk at aps.anl.gov
Cc: 박진용/책임/CnS팀 <pjy0429 at dawonsys.com>, 박상욱/수석/SnE팀 <screenbe at dawonsys.com>
Date: Thu, 17 Aug 2023 16:34:34 +0900 (KST)

Dear Michael Davidsaver.

 

Thank you for your quick reply.

 > By adding the function (ca_context_create(ca_enable_preemptive_callback)) you mentioned, the execution result and the following error message occur.


CA.Client.Exception...............................................

    Error: "Preemptive callback not enabled - additional threads may not join context"
    Context: "ca_context_create"
    Source File: ../IVCCaInfo.c line 69
    Current Time: Thu Aug 17 2023 16:20:30.309541425

> Related issues could be found on the site below.
     https://epics.anl.gov/tech-talk/2017/msg00042.php


> But, Is there a way to solve it using CA instead of using the dbAccess interface?
 
 
Have a good day.
Thank you.
 


--- Original Message ---
From : "Michael Davidsaver"<mdavidsaver at gmail.com>
To : "김대영"<dykim1114 at dawonsys.com>
Cc : "박상욱/수석/SnE팀"<screenbe at dawonsys.com>, "박진용/책임/CnS팀"<pjy0429 at dawonsys.com>, tech-talk at aps.anl.gov
Date : 2023/08/17 목요일 오후 3:25:38
Subject : Re: Questions about ca_search and ca_create_channel

On 8/16/23 19:18, 김대영 via Tech-talk wrote:
> Dear All

> First of all, thank you for your help.

Please copy in text and not screenshots, which complicate quoting in replies.


> I have the following question.

> Before calling the iocsh (argv[1]) function that runs the st.cmd file, the ca_search or ca_create_channel function works normal.



> However, if a ca_search or ca_create_channel function is called after the iocsh (argv[1]) function is called,

> a Segmentation fault or dbContext preemptive callback problem occurs.

> In other words, I made a driver called pv in st.cmd and made a thread on this driver to call ca_search

The error "preemptive callback required ..." means that a call to
`ca_context_create(ca_enable_preemptive_callback)` is needed.

"dbContext" is the code behind "local CA" links.  This is a shortcut
which allows the CA server and client of an IOC to talk to each other
without actually going over the network.

This code only supports libca in the newer preemptive mode.


>> I don't know the cause.

> Our st.cmd file is as follows.


> I would appreciate it if you could solve my curiosity.

> Have a good day.

> Thank you.




 

 


Navigate by Date:
Prev: Re: Questions about ca_search and ca_create_channel Michael Davidsaver via Tech-talk
Next: A question on usage of the IP parameter in Asyn =?gb18030?b?QW1iZXI=?= via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Re: Questions about ca_search and ca_create_channel Michael Davidsaver via Tech-talk
Next: A question on usage of the IP parameter in Asyn =?gb18030?b?QW1iZXI=?= via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 17 Aug 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·