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  2023  <2024 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
<== Date ==> <== Thread ==>

Subject: Strange problem with EPICS areaDetector
From: Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Wed, 19 Jun 2024 08:53:29 +0200
Hi Folks,

I encountered a strange problem with EPICS 7.0.8 under Ubuntu 22.04 on x86_64. My IOC crashes when loading ADBase.template:

>dbLoadRecords("/home/srsi2d/EPICS/EPICS-7.0.8/modules/src/areaDetector/ADCore/db/ADBase.template", "P=WIZZLERHD:HZDR:,R=asicam3:,PORT=ASICAM3,ADDR=0,TIMEOUT=1")
>epicsMutex pthread_mutex_unlock epicsMutexOsdUnlock failed: ERROR Operation not permitted
>epicsMutex pthread_mutex_unlock epicsMutexOsdUnlock failed: ERROR Operation not permitted
>*** buffer overflow detected ***: terminated

The gdb backtrace shows the following:

>#8  0x00007ffff7d0c9f9 in strcpy (__src=0x555555636cb0 "0", __dest=0x55555571a288 "")
>    at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:79
>#9  dbAllocRecord
>    (pdbentry=pdbentry@entry=0x555555731348, precordName=precordName@entry=0x555555731288 "cam:SetAcquireBusy") at ../dbStatic/dbStaticRun.c:125
>#10 0x00007ffff7d00d13 in dbCreateRecord
>    (pdbentry=pdbentry@entry=0x555555731348, precordName=precordName@entry=0x555555731288 "cam:SetAcquireBusy") at ../dbStatic/dbStaticLib.c:1441
>#11 0x00007ffff7d07e67 in dbRecordHead
>    (visible=0, name=0x555555731288 "cam:SetAcquireBusy", recordType=0x5555557312e8 "calcout")
>    at ../dbStatic/dbLexRoutines.c:1132
>#12 dbRecordHead
>    (recordType=0x5555557312e8 "calcout", name=0x555555731288 "cam:SetAcquireBusy", visible=0)
>    at ../dbStatic/dbLexRoutines.c:1099

If I comment out the calcout record it crashes at the next busy record. So it seems that my base installation has a problem, but why and what?
The ai, ao, bi, bo and stringin records seem to work fine. The calcout and busy records are defined in my apps dbd file.

Any idea what could be wrong?

Regards,

Jörn






Replies:
Re: Strange problem with EPICS areaDetector Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: [External] RE: Building EPICS 7 Hu, Yong via Tech-talk
Next: Re: Strange problem with EPICS areaDetector Ralph Lange 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  2023  <2024
Navigate by Thread:
Prev: RE: [External] RE: Building EPICS 7 Freddie Akeroyd - STFC UKRI via Tech-talk
Next: Re: Strange problem with EPICS areaDetector Ralph Lange 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  2023  <2024
ANJ, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·