Forum: CFEngine Help
Subject: Memory problems, how to debug?
Author: toddnni
Link to topic: https://cfengine.com/forum/read.php?3,23661,23661#msg-23661

Hi.

I have memory problems with a edit_line bundle and I don't know how to pinpoint 
where the problem is. 

1.
Sometimes the insert_lines promise goes awry and another cf-agent stops it.

Received signal 2 (SIGINT) while doing ...

Logical start time Sat Oct  1 07:31:44 2011
This sub-task started really at Sat Oct  1 07:31:47 2011


2.
Sometimes I receive messages like this

Memory allocation
 !!! System error for strdup: "Cannot allocate memory"
Fatal cfengine error: CopyRvalItem
Fatal cfengine error: Memory allocation in TCDB_OpenDB(
Fatal cfengine error: Memory allocation in TCDB_OpenDB(
Fatal cfengine error: Memory allocation in TCDB_OpenDB(
...
Fatal cfengine error: Memory allocation in TCDB_OpenDB(
Fatal cfengine error: Memory allocation in TCDB_OpenDB(
Fatal cfengine error: Memory allocation in TCDB_OpenDB(


3.
Sometimes just

Fatal cfengine error: malloc failure in NewAssoc


4.
Sometimes a core is dumped and with gdp I am able to see that the core is 
dumped in calloc() calls related the very same bundle.

2, 3 and 4  -- I concluded that this is related to memory. 
1 and 4  -- I concluded that this is related to the edit_line bundle.

I would rule hardware problems out, because other applications work fine. Could 
this be a memory corruption problem in cf-agent? Do you have any suggestions 
what to try next?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to