EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Asyn assertion failure (long)
From: Dirk Zimoch <[email protected]>
To: "Denison, PN \(Peter\)" <[email protected]>
Cc: TechTalk EPICS <[email protected]>
Date: Fri, 22 Jun 2007 09:31:47 +0200
Hi Peter

What port driver are you using? One of those provided with asyn (serial, TCP, ...) or a third party driver?

About 600 chars: The asynInterposeEos layer uses an internal buffer of 600 chars which it passes to lower level drivers.

As it may also be a bug in StreamDevice, please send me your protocol file and records so that I can try to reproduce your problem.

Dirk


Denison, PN (Peter) wrote:
As directed by the IOC output(!):

Asyn 4-8, streamDevice 2-2, EPICS 3.14.8.2, vxWorks 5.5.1 on MVME5500

(garbage elided): A call to "assert
((epicsMutexLock((pport->asynManagerLock))==epicsMutexLockOK))" failed
in ../../asyn/asynDriver/asynManager.c at 2151
Current time THU JUN 21 2007 14:09:51.144096000.
EPICS Release EPICS R3.14.8.2 $R3-14-8-2$ $2006/01/06 15:55:13$.
Please E-mail this message and the output from "tt (0x1ed441a0)"

The backtrace is:
(gdb) bt
#0  0x22bbf4 in taskSuspend ()
#1  0x1e8ccebc in epicsThreadSuspendSelf ()
#2  0x1e8cb908 in epicsAssert ()
#3  0x1e754ac8 in interruptEnd (pasynPvt=0x1ed40fe0)
        at ../../asyn/asynDriver/asynManager.c:2151
#4  0x1e75924c in callInterruptUsers (pasynUser=0x1eafb798,
                                      pasynPvt=0x1ed40fe0,
                                      data=0x1ed40b20 (as before),
                                      nbytesTransfered=0x1ed43a74,
                                      eomReason=0x1ed43fc4)
        at ../../asyn/interfaces/asynOctetBase.c:224
#5  0x1e75959c in readRaw (drvPvt=0x1ed411d0,
                           pasynUser=0x1eafb798,
                           data=0x1ed40b20 "\001001,2007.06.21"...,
                           maxchars=600,
                           nbytesTransfered=0x1ed43a74,
                           eomReason=0x1ed43fc4)
        at ../../asyn/interfaces/asynOctetBase.c:282
#6  0x1e75ddd0 in readIt (ppvt=0x1ed40f70,
                          pasynUser=0x1eafb798,
                          data=0x1eafb904 "",
                          maxchars=63,
                          nbytesTransfered=0x1ed43fc0,
                          eomReason=0x1ed43fc4)
        at ../../asyn/miscellaneous/asynInterposeEos.c:244
#7  0x1e745d54 in AsynDriverInterface::readHandler ()
#8  0x1e747dc4 in handleRequest ()
#9  0x1e74ea8c in portThread (pport=0x1ed446b0) at
../../asyn/asynDriver/asynManager.c:777
#10 0x1e8cd600 in createFunction ()
#11 0x231ff8 in vxTaskEntry ()

Clearly something is getting overwritten, and at the point of the
assertion failure, (struct interruptBase *)pasynPvt->pport = 0x2c,
obviously bogus. In fact the pasynPvt passed in to interruptEnd is
bogus.

I know that the cause may be entirely unrelated to this trace, but if
anyone can shed light on it, I'd be grateful. I have a debugger
attached, and am slowly working through...

The only anomaly I can see so far is that while readIt() has
maxchars=63, readRaw has maxchars=600, and so 600 bytes get transferred
and passed back to the interrupt user.


-- Dr. Dirk Zimoch Computing and Controls Paul Scherrer Institut phone +41 56 310 5182 fax +41 56 310 4413

Replies:
RE: Asyn assertion failure (long) Denison, PN (Peter)
References:
Asyn assertion failure (long) Denison, PN (Peter)

Navigate by Date:
Prev: Re: Asyn and a 3rd party API? Bertrand H.J. Biritz
Next: Re: Basic Question regarding input links Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Asyn assertion failure (long) Denison, PN (Peter)
Next: RE: Asyn assertion failure (long) Denison, PN (Peter)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·