[Snort-devel] [ snort-Bugs-466663 ] core dump DEBUG_INIT

noreply at ...12... noreply at ...12...
Thu Oct 25 20:33:07 EDT 2001


Bugs item #466663, was opened at 2001-09-30 16:45
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=466663&group_id=3357

Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 1
Submitted By: Gerard Tromp (gtromp)
Assigned to: Martin Roesch (roesch)
Summary: core dump DEBUG_INIT

Initial Comment:
Snort version:
=============
1.8.1-RELEASE

OS_platform:
===========
SunOS sanger 5.6 Generic_105181-17 sun4m sparc
SUNW,SPARCstation-20

Compiler:
========
gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)

rules:
=====
Almost all of the standard current rules. 

Command line:
============
./snort -oedb -c snort.conf

Error messages:
==============
none

gdb of core:
===========
#0  0xeef24734 in strlen ()
#1  0xeef5a65c in _doprnt ()
#2  0xeef639b8 in vprintf ()
#3  0x7d3d8 in DebugMessageFunc (level=1, fmt=0x11df00
"Initializing output file %s\n") at debug.c:63
#4  0x46630 in main (argc=4, argv=0xeffffc2c) at
snort.c:424


no dumpfile name passed in DebugMessageFunc.
should be pv.binLogFile, but pv.binLogFile is NULL. 

KLUDGE patch:
============
patch for snort to check for NULL pv.binLogFile --
provide some char text "Default File" as argument for
DebugMessage.

*** snort.c.orig	Sun Sep 30 19:33:02 2001
--- snort.c	Sun Sep 30 19:38:24 2001
***************
*** 421,428 ****
          /* logging to a tcpdump file, initialize the
output file and pointer */
          if(pv.logbin_flag)
          {
!             DebugMessage(DEBUG_INIT, "Initializing
output file %s\n", pv.binLogFile);
!             InitBinLogFile(pv.binLogFile);
  
              AddFuncToOutputList(LogBin,
NT_OUTPUT_LOG, NULL);
          }
--- 421,434 ----
          /* logging to a tcpdump file, initialize the
output file and pointer */
          if(pv.logbin_flag)
          {
!             if(pv.binLogFile==NULL){
!                 DebugMessage(DEBUG_INIT,
"Initializing output file %s\n", "Default file" );
!                 InitBinLogFile(pv.binLogFile);
!             }
!             else{
!                 DebugMessage(DEBUG_INIT,
"Initializing output file %s\n", pv.binLogFile);
!                 InitBinLogFile(pv.binLogFile);
!             }
  
              AddFuncToOutputList(LogBin,
NT_OUTPUT_LOG, NULL);
          }



----------------------------------------------------------------------

Comment By: Martin Roesch (roesch)
Date: 2001-10-15 19:23

Message:
Logged In: YES 
user_id=18573

Patched and committed.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=466663&group_id=3357




More information about the Snort-devel mailing list