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: Questions about ca_search and ca_create_channel
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: 김대영 <dykim1114 at dawonsys.com>
Cc: tech-talk at aps.anl.gov, 박진용/책임/CnS팀 <pjy0429 at dawonsys.com>, 박상욱/수석/SnE팀 <screenbe at dawonsys.com>
Date: Wed, 16 Aug 2023 23:25:38 -0700
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.



References:
Questions about ca_search and ca_create_channel 김대영 via Tech-talk

Navigate by Date:
Prev: Questions about ca_search and ca_create_channel 김대영 via Tech-talk
Next: Re: Re: Questions about ca_search and ca_create_channel 김대영 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: Questions about ca_search and ca_create_channel 김대영 via Tech-talk
Next: Re: Re: Questions about ca_search and ca_create_channel 김대영 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 ·