Bug #1827
closedMpm AC fails to alloc memory
Description
I am getting a below error while starting suricata services. Can you please help with how I can fix this issue.
[root@suricata ~]# suricata -c /etc/suricata/suricata.yaml -s /var/data/***/md5.rules --af-packet=ens160 Initialization syslog logging with format "[%i] <%d> -- ". 24/6/2016 -- 11:01:53 - <Notice> - This is Suricata version 3.0.1 RELEASE 24/6/2016 -- 11:02:37 - <Error> - [ERRCODE: SC_ERR_MEM_ALLOC(1)] - SCRealloc failed: Cannot allocate memory, while trying to allocate 18446744071562067968 bytes 24/6/2016 -- 11:02:37 - <Error> - [ERRCODE: SC_ERR_FATAL(171)] - Out of memory. The engine cannot be initialized. Exiting...
Files
Updated by Victor Julien over 8 years ago
What are the steps to reproduce? Can you share your yaml & rules? What hardware do you use?
Updated by Sahil Bhola over 8 years ago
- File Suricata.zip Suricata.zip added
I am running Suricata on a VM with 8 cores and 32 gb ram. Also I have attached the necessary files - Suricata.yaml, Rules and iprep to reproduce the issue. Please let me know if you want any other information.
Thanks
Sahil
Updated by Sahil Bhola over 8 years ago
- File suricatalogs.txt suricatalogs.txt added
Also I am attaching the complete output when I am starting Suricata services. Please find attached the suricata output file.
Updated by Andreas Herz over 8 years ago
Did you try to remove some rules or iprep? For example the phishing.rules to see if you can narrow it down to some specific ruleset or the amount of rules?
Updated by Peter Manev over 8 years ago
The err message :
SCRealloc failed: Cannot allocate memory, while trying to allocate 18446744071562067968 bytes
looks exactly the same as in https://redmine.openinfosecfoundation.org/issues/1843
so it may be related.
Updated by Sahil Bhola over 8 years ago
Yeah, its exactly the same error. Is there any information needed from my side?
Please let me know if you have any questions for me.
Updated by Andreas Herz over 8 years ago
Sahil Bhola wrote:
Yeah, its exactly the same error. Is there any information needed from my side?
Please let me know if you have any questions for me.
"Did you try to remove some rules or iprep? For example the phishing.rules to see if you can narrow it down to some specific ruleset or the amount of rules?" :)
Maybe you have overseen my questions.
Updated by Sascha Steinbiss almost 8 years ago
I've adressed this in https://github.com/inliniac/suricata/pull/2546
Updated by Victor Julien almost 8 years ago
- Subject changed from ERRCODE: SC_ERR_MEM_ALLOC(1)] to Mpm AC fails to alloc memory
- Status changed from New to Assigned
- Target version changed from TBD to 70
Updated by Victor Julien almost 8 years ago
- Assignee changed from Victor Julien to Sascha Steinbiss
Updated by Victor Julien almost 8 years ago
- Status changed from Assigned to Closed
- Target version changed from 70 to 3.2.1
Updated by Victor Julien almost 8 years ago
- Tracker changed from Support to Bug