Snort mailing list archives

Re: snort options too long make segmentation fault


From: Russ Combs <rcombs () sourcefire com>
Date: Wed, 18 Jul 2012 13:36:46 -0400

Thanks for reporting that problem.  The database output was deprecated a
while ago and is not in the most recent version of Snort, released earlier
today.  You will need to work around the issue until migrating to another
supported output.

On Mon, Jul 16, 2012 at 10:10 PM, Liming Huang <liming.photo () gmail com>wrote:

Version:snort-2.9.2.3
OS:Fedora 17

I use snort to read a PCAP file and find the path of PCAP file is too
long make snort segmentation fault.
For example:
./snort -c /usr/local/etc/snort/etc/snort.conf -r
/run/media/liming/A2F5-A724/TTT_2.pcap
It's fine.

But...
./snort -c /usr/local/etc/snort/etc/snort.conf -r
/run/media/liming/A2F5-A724/TTT_21.pcap
It will make segmentation fault.

Here is the gdb info
(gdb) bt
#0  0x43512a6c in vfprintf () from /lib/libc.so.6
#1  0x435397ab in vsnprintf () from /lib/libc.so.6
#2  0x0807e5ef in SnortSnprintf (buf=buf@entry=0x8731a80
"localhost.localdomain:", buf_size=buf_size@entry=255,
format=format@entry=0x812da91 "%s:%s\n") at util.c:1542
#3  0x0807fc79 in GetUniqueName (iface=iface@entry=0xa9ce320
"/run/media/liming/A2F5-A724/TTT_21.pcap") at util.c:2209
#4  0x0809a0ec in DatabaseInitFinalize (unused=0, arg=0x98ba130) at
spo_database.c:439
#5  0x08071f10 in PostConfigInitPlugins (post_config_funcs=0x9889bc0)
at plugbase.c:494
#6  0x08076da4 in SnortUnprivilegedInit () at snort.c:4840
#7  0x0807930d in SnortMain (argc=5, argv=argv@entry=0xbfa02364) at
snort.c:767
#8  0x0804b766 in main (argc=5, argv=0xbfa02364) at snort.c:697
(gdb)


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users

Please visit http://blog.snort.org to stay current on all the latest
Snort news!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: