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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Segmentation fault (core dumped) using SimDetector ioc |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | lynn <lynn0703 at yeah.net> |
Cc: | tech-talk <tech-talk at aps.anl.gov> |
Date: | Fri, 3 Mar 2023 13:45:17 +0000 |
Hi Lynn,
That is an unusual place to see a seg fault. I suspect it was not built correctly, so you are mixing code from two versions of some module. I suggest rebuilding EPICS base and all of the synApps modules that ADSimdetector uses, so you are sure everything
built with the same versions. For base and each module type the following at the top-level
make clean uninstall
make -sj
If you still have the problem then run the ADSimDetector under gdb like this.
linux> gdb ../../bin/linxux-86_64/simDetectorApp
gdb> run st.cmd
When it crashes type this gdb command
gdb> backtrace
Send the output.
Mark
From: lynn <lynn0703 at yeah.net>
Sent: Friday, March 3, 2023 3:50 AM To: Mark Rivers <rivers at cars.uchicago.edu> Cc: tech-talk <tech-talk at aps.anl.gov> Subject: Segmentation fault (core dumped) using SimDetector ioc Hi Mark and all,
I met "Segmentation fault" error when using SimDetector.
I use rocky9(64) , asyn and areaDetector from git.
When I executed st.cmd.linux. I got these as below:
Regards,
lynn
Shell output:
-------------------------------
......
......
epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "10000000")
# Create a simDetector driver #simDetectorConfig(const char *portName, int maxSizeX, int maxSizeY, int dataType, int maxBuffers, int maxMemory, int priority, int stackSize) simDetectorConfig("SIM1", 1024, 1024, 1, 0, 0) Segmentation fault (core dumped) Hereis st.cmd file:
--------------------------------
epicsEnvSet("IOC","iocSimDetector")
epicsEnvSet("TOP","/opt/EPICS/synApps_6_1/support/areaDetector-master/ADSimDetector/iocs/simDetectorIOC")epicsEnvSet("ADSIMDETECTOR","/opt/EPICS/synApps_6_1/support/areaDetector-master/ADSimDetector/iocs/simDetectorIOC/../..") epicsEnvSet("SUPPORT","/opt/EPICS/synApps_6_1/support") epicsEnvSet("ASYN","/opt/EPICS/synApps_6_1/support/asyn-R4-37") epicsEnvSet("AREA_DETECTOR","/opt/EPICS/synApps_6_1/support/areaDetector-master") epicsEnvSet("ADSUPPORT","/opt/EPICS/synApps_6_1/support/areaDetector-master/ADSupport") epicsEnvSet("ADCORE","/opt/EPICS/synApps_6_1/support/areaDetector-master/ADCore") epicsEnvSet("AUTOSAVE","/opt/EPICS/synApps_6_1/support/autosave-R5-10") epicsEnvSet("BUSY","/opt/EPICS/synApps_6_1/support/busy-R1-7-2") epicsEnvSet("CALC","/opt/EPICS/synApps_6_1/support/calc-R3-7-3") epicsEnvSet("SNCSEQ","/opt/EPICS/synApps_6_1/support/seq-2-2-6") epicsEnvSet("SSCAN","/opt/EPICS/synApps_6_1/support/sscan-R2-11-3") epicsEnvSet("DEVIOCSTATS","/opt/EPICS/synApps_6_1/support/iocStats-3-1-16") epicsEnvSet("EPICS_BASE","/opt/EPICS/base") errlogInit(20000)
set_requestfile_path("$(ADSIMDETECTOR)/simDetectorApp/Db") |