[Bro] Rotate log time issue - bro seg fault

Vern Paxson vern at icir.org
Mon Sep 17 22:51:53 PDT 2007


> #1 0x080de4a7 in BroFile::InstallRotateTimer (this=0x8990480) at File.cc:562
> ....
> #16 0x080dfaf3 in BroFile::CloseCachedFiles () at Event.h:59
> #17 0x080501aa in main (argc=553648128, argv=0xbff49eb4) at main.cc:1017

Try the appended and see if it does the trick.

		Vern


Index: main.cc
===================================================================
--- main.cc	(revision 4656)
+++ main.cc	(revision 4657)
@@ -281,12 +281,12 @@
 	done_with_network();
 	net_delete();
 
+	terminate_bro();
+
 	// Close files after net_delete(), because net_delete()
 	// might write to connection content files.
 	BroFile::CloseCachedFiles();
 
-	terminate_bro();
-
 	delete rule_matcher;
 
 	exit(0);
@@ -1010,12 +1010,12 @@
 		done_with_network();
 		net_delete();
 
+		terminate_bro();
+
 		// Close files after net_delete(), because net_delete()
 		// might write to connection content files.
 		BroFile::CloseCachedFiles();
 
-		terminate_bro();
-
 #ifdef USE_MPATROL
 		fputs( "Stopping mpatrol logging...", stderr );
 		sig_mpatrol(SIGCONT);



More information about the Bro mailing list