figured it out!!
The order of command in my st.cmd was wrong.
For some reason I must load asynRecord:
dbLoadRecords("../../db/asynRecord.db","P=asyn,R=A,PORT=port0,ADDR=6,IMAX=0,OMAX=0")
before I call iocInit()
else the lockSets aren't setup correctly.
I don't really understand why this is so?
sorry for the trouble :)
There is just so much about epics I am yet to understand
-Heinrich
On Tue, 2007-06-19 at 12:44 +0200, Heinrich du Toit wrote:
> Hi
>
> I've started experimenting with asyn.
>
> Now I've created the routines for a driver with Common and devInt32
> interfaces.
>
> When I connected my own record (ai) 2 this to read it works fine.
>
> Then I tried connecting a asynRecord to this.
> It starts up fine.
>
> But when I run medm to see this record the IOC segfaults.
>
> location: base/src/db/dbLock.c line 242 : plockSet =
> plockRecord->plockSet
> because plockSet = null
> and this is because precord->lst = null
> And that must be the lockRecord or something.
>
> I don't understand, the stack trace doesn't even run through asyn or my
> own code.
>
> I have no idea where to look for the fault :(
>
> -Heinrich
>
- Replies:
- Re: asynRecord SEGFAULT? Dirk Zimoch
- References:
- asynRecord SEGFAULT? Heinrich du Toit
- Navigate by Date:
- Prev:
RE: asynRecord SEGFAULT? Mark Rivers
- Next:
Re: asynRecord SEGFAULT? Dirk Zimoch
- 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
2023
2024
- Navigate by Thread:
- Prev:
RE: asynRecord SEGFAULT? Mark Rivers
- Next:
Re: asynRecord SEGFAULT? Dirk Zimoch
- 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
2023
2024
|