[Bro-Dev] #643: Bro segfaults when giving invalid option to -B
Bro Tracker
bro at tracker.bro-ids.org
Wed Oct 19 13:36:43 PDT 2011
#643: Bro segfaults when giving invalid option to -B
--------------------+---------------------
Reporter: amannb | Type: Problem
Status: new | Priority: Normal
Milestone: | Component: Bro
Version: | Keywords:
--------------------+---------------------
Bro segfaults, when the -B flag is used with an invalid identifier
{{{
wifi188:la bernhard$ gdb --args bro -B evilString broping-record.bro
...
Starting program: /Users/bernhard/sw/bin/bro -B evilString broping-
record.bro
Reading symbols for shared libraries +++++++......................... done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000010
0x000000010026798c in std::list<std::pair<Location const*, Location
const*>, std::allocator<std::pair<Location const*, Location const*> >
>::begin (this=0x10) at stl_list.h:592
592 { return const_iterator(this->_M_impl._M_node._M_next); }
(gdb) bt
#0 0x000000010026798c in std::list<std::pair<Location const*, Location
const*>, std::allocator<std::pair<Location const*, Location const*> >
>::begin (this=0x10) at stl_list.h:592
#1 0x0000000100267b8a in std::list<std::pair<Location const*, Location
const*>, std::allocator<std::pair<Location const*, Location const*> >
>::size (this=0x10) at stl_list.h:660
#2 0x000000010026429c in Reporter::DoLog (this=0x0, prefix=0x100415c82
"internal error", event=@0x7fff5fbfeea0, out=0x7fff7a8ae580, conn=0x0,
addl=0x0, location=true, time=false, fmt=0x10040c9b3 "unknown debug stream
%s\n", ap=0x7fff5fbfee88) at Reporter.cc:191
#3 0x0000000100266ac1 in Reporter::InternalError (this=0x0,
fmt=0x10040c9b3 "unknown debug stream %s\n") at Reporter.cc:97
#4 0x00000001001683b0 in DebugLogger::EnableStreams (this=0x10052bb20,
s=0x7fff5fbffcce "evilString") at DebugLogger.cc:75
#5 0x00000001000cc220 in main (argc=4, argv=0x7fff5fbffb98) at
main.cc:642
(gdb) q
The program is running. Exit anyway? (y or n) y
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/643>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list