Experimental Physics and Industrial Control System
> epicsStrDup: mallocMustSucceed(1) - malloc failed Thread scan2 (0x9c2b038) suspending.
Another possibility is that the string that was passed to epicsStrDup was not properly 0 terminated, and so it was trying to copy a very large string, which led to the malloc failure.
Mark
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Mark Rivers
Sent: Wednesday, September 5, 2018 9:03 AM
To: 'Pilar Gil Jaldo' <[email protected]>; [email protected]
Subject: RE: Linux scan thread suspended
Hi Pilar,
I think your case is different from the tech-talk thread. In the tech-talk thread they said there was no IOC error mesage, but in your case you have a very clear IOC error message:
> epicsStrDup: mallocMustSucceed(1) - malloc failed Thread scan2 (0x9c2b038) suspending.
This says to me that your IOC has run out of memory. I suspect there is a memory leak somewhere.
Is this a 32 or 64 bit machine, and how much memory does it have?
You could restart the IOC and use "top" to look at the memory usage with time.
What version of EPICS are you using, and what devices does this IOC control?
Mark
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Pilar Gil Jaldo
Sent: Wednesday, September 5, 2018 8:36 AM
To: [email protected]
Subject: Linux scan thread suspended
Hello everybody,
I have a question regarding the reasons why a scan thread can be suspended. I have a running IOC and at a certain moment the IOC breaks with following message:
epicsStrDup: mallocMustSucceed(1) - malloc failed Thread scan2 (0x9c2b038) suspending.
I have found in the tech-talk messages following reason which seems to be the same problem that mine.
https://epics.anl.gov/tech-talk/2013/msg00154.php
The IOC is on a network where many devices are sending packages to the CA network, but nobody is answering because other devices are switched off (the traffic in the CA is very high).
Is it possible that the segmentation fault is caused by a network congestion? Can the scan thread be suspended by a higher network traffic?
Thank you very much in advance for your answers.
Pilar Gil Jaldo
- References:
- Linux scan thread suspended Pilar Gil Jaldo
- RE: Linux scan thread suspended Mark Rivers
- Navigate by Date:
- Prev:
RE: Linux scan thread suspended Mark Rivers
- Next:
Re: Linux scan thread suspended Pilar Gil Jaldo
- 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: Linux scan thread suspended Mark Rivers
- Next:
Re: Linux scan thread suspended Pilar Gil Jaldo
- 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