[Snort-users] core dumps w. 2.0.1 on openbsd 3.3 on sparc64

James Affeld jimmythegeek at ...4215...
Fri Sep 5 13:14:03 EDT 2003


Hardware: Sun Ultra 5 400 mhz, 512 mb RAM
OS: OpenBSD 3.3
Snort version: 2.0.1, no config options, make CFLAGS=-ggdb.  Edits to src/preprocessors/spp_stream4.c and spp_frag2.c ==> removed conditional for #define SPARC_TWIDDLE 2.  Just make it happen.  This step appears to delay the core dump, but I can't swear to that.  
 
Can't make if I configure --enable-debug; 
here's what I get:

decode.c:367: `pri' undeclared (first use in this function)
decode.c:367: (Each undeclared identifier is reported only once
decode.c:367: for each function it appears in.)
*** Error code 1

Stop in /home/jaffeld/snort-2.0.1/src.
*** Error code 1

Stop in /home/jaffeld/snort-2.0.1/src (line 255 of Makefile).
*** Error code 1

Stop in /home/jaffeld/snort-2.0.1 (line 208 of Makefile).
*** Error code 1

Stop in /home/jaffeld/snort-2.0.1 (line 111 of Makefile).

I get stop errors trying to make "CFLAGS=-ggdb -DDEBUG" so I settled for just -ggdb

That didn't help a lot:

bash-2.05b# gdb /usr/local/bin/snort ./snort.core
GNU gdb 4.16.1
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc64-unknown-openbsd3.3"...
Core was generated by `snort'.
Program terminated with signal 11, Segmentation fault.

Dwarf Error: Cannot find referent at offset 1093.
(gdb) where
Segmentation fault (core dumped)


Sorry this is a lame writeup.  From the google searching I've done, there have been problems on sparc, or on sparc+obsd for a while.  

_____________________________________________________________
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com




More information about the Snort-users mailing list