[Bro-Dev] malloc problem in master

Seth Hall seth at icir.org
Wed Jul 6 03:52:16 PDT 2011


There is some problem with Bro in master, if you start it without any arguments it throws a malloc error.

[seth at Blake build (master)]$ gdb ./src/bro 
(gdb) break malloc_error_break
Breakpoint 1 at 0x83126e977eb499
(gdb) r 
Starting program: ./src/bro 
bro(32651) malloc: *** error for object 0x1002721b8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Breakpoint 1, 0x00007fff81a1c499 in malloc_error_break ()
(gdb) bt
#0  0x00007fff81a1c499 in malloc_error_break ()
#1  0x00007fff81946183 in free ()
#2  0x00000001000a0503 in load_files_with_prefix (orig_file=0x100b1a680 "-") at scan.l:628
#3  0x00000001000a0752 in browrap () at scan.l:813
#4  0x00000001000a4048 in brolex () at ./src/scan.cc:2496
#5  0x000000010008f10e in yyparse () at p.cc:2333
#6  0x00000001000a6bea in main (argc=1, argv=0x7fff5fbfed90) at ./src/main.cc:735

Looks like it might be something might be wrong in the load_files_with_prefix function?

  .Seth

--
Seth Hall
International Computer Science Institute
(Bro) because everyone has a network
http://www.bro-ids.org/




More information about the bro-dev mailing list