EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: EPICS fd registration problem
From: Firmin Oliveira <[email protected]>
To: [email protected]
Date: Thu, 17 Jul 1997 10:19:14 -1000 (HST)
Hello,

I have little to no EPICS channel access experience

I have been trying to run my program with ca_add_fd_registration. It
compiles/links okay, but when run it produces a segmentation fault upon
entry into ca_add_fd_registration.  I have tried every combination of
arguments I know into the routine but it continually gets a segmentation
fault.  When the ca_add_fd_registration statement is commented out, the rest of the
channel access routines work just fine (ca_task_initialize,
ca_search_and_connect, ca_get, SEVCHK, ca_add_event.)  To be more specific
about the problem:

   include "cadef.h"
   void FdRegHandler(void *, int, int);
   ...

   main()
 {
   int CaStatus;
   my_struct vparm;
   ...

   CaStatus = ca_add_fd_registration(FdRegHandler,&vparm);
   (Note: Segmentation fault occurs in above statement)
   ...

}

void FdRegHandler(void *vparm, int fd, int cond)
{
   printf("In FdRegHandler\n");      (Note: this does not get printed)
}


Any help you can give would be appreciated.

Aloha,

Firmin Oliveira



Navigate by Date:
Prev: Re: change in promotion of types from database to channel access Chip Watson
Next: base release 3.13.0beta11 Marty Kraimer
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: database check in R3.13.0 (fwd) Johnny Tang
Next: RE: EPICS fd registration problem Jeff Hill
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·