Source: suricata
Severity: wishlist
Tags: patch
Suricata still has some stability issues that lead to crashes, either
through glibc's heap corruption detection or through outright
segmentation faults. At least that's what I have witnessed in 2.0.0 and
2.0.1 (I haven't checked the setups I control with 2.0.2 so far.)
Having debug symbols available through a suricata-dbg pacakge would be
helpful.
I have attached a patch that adds such a package.
Cheers,
-Hilko
diff --git a/debian/control b/debian/control
index 1383175..b325146 100644
--- a/debian/control
+++ b/debian/control
@@ -41,3 +41,11 @@ Description: Next Generation Intrusion Detection and Prevention Tool
cards.
.
This version has inline (NFQUEUE) support enabled.
+
+Package: suricata-dbg
+Section: debug
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends},
+Description: Next Generation Intrusion Detection and Prevention Tool - debug symbols
+ This package contains the debug symbols for Suricata.
Modified debian/rules
diff --git a/debian/rules b/debian/rules
index 701d727..33857fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,6 +42,9 @@ override_dh_auto_configure:
-e 's|^default-rule-path: .*$$|default-rule-path: /etc/snort/rules|' \
suricata.yaml > suricata-debian.yaml
+override_dh_strip:
+ dh_strip --dbg-package=suricata-dbg
+
override_dh_clean:
rm -f suricata-debian.yaml
dh_clean