Segmentation fault when installing a rotate timer in BroFile

I encountered a segmentation fault when executing Bro with a trace
I captured on my laptop. Tracing the problem with gdb, I found the
fault happened in installing a rotate timer:

...

Breakpoint 1, BroFile::InstallRotateTimer (this=0x8fa3a90) at File.cc:562
562 timer_mgr->Add(rotate_timer);
(gdb) c
Continuing.

Breakpoint 1, BroFile::InstallRotateTimer (this=0x903fd78) at File.cc:562
562 timer_mgr->Add(rotate_timer);
(gdb) c
Continuing.

Breakpoint 1, BroFile::InstallRotateTimer (this=0x90404e0) at File.cc:562
562 timer_mgr->Add(rotate_timer);
(gdb) c
Continuing.

Breakpoint 1, BroFile::InstallRotateTimer (this=0x90b4030) at File.cc:562
562 timer_mgr->Add(rotate_timer);
(gdb) c
Continuing.

Breakpoint 1, BroFile::InstallRotateTimer (this=0x90b4030) at File.cc:562
562 timer_mgr->Add(rotate_timer); <-- < the 23rd execution of timer_mgr->Add(rotate_timer);
(gdb) s

Program received signal SIGSEGV, Segmentation fault.
0x080eed0d in BroFile::InstallRotateTimer (this=0x90b4030) at File.cc:562
562 timer_mgr->Add(rotate_timer);

The command line to execute Bro is as follows.

bro --use-binpac brolite -r ./misc.pcap

What might the problem be?

Program received signal SIGSEGV, Segmentation fault.
0x080eed0d in BroFile::InstallRotateTimer (this=0x90b4030) at File.cc:562
562 timer_mgr->Add(rotate_timer);

This came up a little while ago on the mailing list. See if the following
does the trick.

    Vern

Thanks, Vern.

The segmentation fault disappears after the patch is applied.

Po-Ching