[Bro-Dev] #611: Segfault in strftime BiF

Bro Tracker bro at tracker.bro-ids.org
Tue Sep 13 08:48:52 PDT 2011


#611: Segfault in strftime BiF
---------------------+--------------------
 Reporter:  seth     |      Owner:
     Type:  Problem  |     Status:  new
 Priority:  Normal   |  Milestone:  Bro1.6
Component:  Bro      |    Version:
 Keywords:  beta     |
---------------------+--------------------
 Here's the backtrace....

 {{{

 #0  0x0000003b41ca27f5 in __strftime_internal () from /lib64/libc.so.6
 #1  0x0000003b41ca48b6 in strftime_l () from /lib64/libc.so.6
 #2  0x000000000069d011 in BifFunc::bro_strftime (frame=0x6bd62b0,
 BiF_ARGS=0x6b99410) at bro.bif:2775
 #3  0x000000000068d983 in BuiltinFunc::Call (this=0x27f5390,
 args=0x6b99410, parent=0x6bd62b0) at /bro/src/Func.cc:463
 #4  0x000000000067e362 in CallExpr::Eval (this=0x27d99f0, f=0x6bd62b0) at
 /bro/src/Expr.cc:4649
 #5  0x0000000000681b9c in eval_list (f=0x6bd62b0, l=0x27d8760) at
 /bro/src/Expr.cc:5488
 #6  0x000000000067e2f1 in CallExpr::Eval (this=0x27d9c50, f=0x6bd62b0) at
 /bro/src/Expr.cc:4640
 #7  0x0000000000681b9c in eval_list (f=0x6bd62b0, l=0x27d9cf0) at
 /bro/src/Expr.cc:5488
 #8  0x000000000067e2f1 in CallExpr::Eval (this=0x27d9f20, f=0x6bd62b0) at
 /bro/src/Expr.cc:4640
 #9  0x0000000000755b7b in ExprStmt::Exec (this=0x27d9fc0, f=0x6bd62b0,
 flow=@0x7fffb4876474) at /bro/src/Stmt.cc:369
 #10 0x000000000075a47d in StmtList::Exec (this=0x27d76c0, f=0x6bd62b0,
 flow=@0x7fffb4876474) at /bro/src/Stmt.cc:1404
 #11 0x000000000068cdec in BroFunc::Call (this=0x27da250, args=0x4e62bb0,
 parent=0x37fbbf0) at /bro/src/Func.cc:320
 #12 0x000000000067e362 in CallExpr::Eval (this=0x27ed8e0, f=0x37fbbf0) at
 /bro/src/Expr.cc:4649
 #13 0x0000000000759f7d in ReturnStmt::Exec (this=0x27ed980, f=0x37fbbf0,
 flow=@0x7fffb48766c4) at /bro/src/Stmt.cc:1344
 #14 0x000000000075a47d in StmtList::Exec (this=0x279a110, f=0x37fbbf0,
 flow=@0x7fffb48766c4) at /bro/src/Stmt.cc:1404
 #15 0x000000000068cdec in BroFunc::Call (this=0x27eda30, args=0x4fed380,
 parent=0x3804740) at /bro/src/Func.cc:320
 #16 0x000000000067e362 in CallExpr::Eval (this=0x27a7f00, f=0x3804740) at
 /bro/src/Expr.cc:4649
 #17 0x0000000000759f7d in ReturnStmt::Exec (this=0x27a7fa0, f=0x3804740,
 flow=@0x7fffb48769b4) at /bro/src/Stmt.cc:1344
 #18 0x0000000000756405 in IfStmt::DoExec (this=0x27a80f0, f=0x3804740,
 v=0x4b398c0, flow=@0x7fffb48769b4) at /bro/src/Stmt.cc:484
 #19 0x0000000000755baf in ExprStmt::Exec (this=0x27a80f0, f=0x3804740,
 flow=@0x7fffb48769b4) at /bro/src/Stmt.cc:373
 #20 0x000000000075a47d in StmtList::Exec (this=0x27a7020, f=0x3804740,
 flow=@0x7fffb48769b4) at /bro/src/Stmt.cc:1404
 #21 0x000000000068cdec in BroFunc::Call (this=0x27a81b0,
 args=0x7fffb4876af0, parent=0x0) at /bro/src/Func.cc:320
 #22 0x00000000006d9929 in LogMgr::FinishedRotation (this=0x25dce80,
 writer=0x3942c20, new_name="notice-11-09-12_18.08.24.log",
 old_name="notice.log", open=1315868904.315407,
     close=5.8589466593042906e+17, terminating=false) at
 /bro/src/LogMgr.cc:1542
 #23 0x00000000006deca0 in LogWriter::FinishedRotation (this=0x3942c20,
 new_name="notice-11-09-12_18.08.24.log", old_name="notice.log",
 open=1315868904.315407,
     close=5.8589466593042906e+17, terminating=false) at
 /bro/src/LogWriter.cc:157
 #24 0x00000000006e0836 in LogWriterAscii::DoRotate (this=0x3942c20,
 rotated_path="notice-11-09-12_18.08.24", open=1315868904.315407,
 close=5.8589466593042906e+17,
     terminating=false) at /bro/src/LogWriterAscii.cc:303
 #25 0x00000000006de918 in LogWriter::Rotate (this=0x3942c20,
 rotated_path="notice-11-09-12_18.08.24", open=1315868904.315407,
 close=5.8589466593042906e+17, terminating=false)
     at /bro/src/LogWriter.cc:95
 #26 0x00000000006d938a in LogMgr::Rotate (this=0x25dce80, winfo=0x3a384a0)
 at /bro/src/LogMgr.cc:1499
 #27 0x00000000006d8ce2 in RotationTimer::Dispatch (this=0x38628f0,
 t=5.8589466593042906e+17, is_expire=0) at /bro/src/LogMgr.cc:1409
 #28 0x0000000000768266 in PQ_TimerMgr::DoAdvance (this=0x25e9b40,
 new_t=5.8589466593042906e+17, max_expire=300) at /bro/src/Timer.cc:164
 #29 0x0000000000767ec8 in TimerMgr::Advance (this=0x25e9b40,
 arg_t=5.8589466593042906e+17, max_expire=300) at /bro/src/Timer.cc:107
 #30 0x00000000006f0bb3 in expire_timers (src_ps=0x34eecf0) at
 /bro/src/Net.cc:310
 #31 0x00000000006f0cc2 in net_packet_dispatch (t=1315878725.982353,
 hdr=0x34eed30, pkt=0x7f3d03ac5172 <Address 0x7f3d03ac5172 out of bounds>,
 hdr_size=0, src_ps=0x34eecf0,
     pkt_elem=0x0) at /bro/src/Net.cc:331
 #32 0x00000000006f1035 in net_packet_arrival (t=1315878725.982353,
 hdr=0x34eed30, pkt=0x7f3d03ac5172 <Address 0x7f3d03ac5172 out of bounds>,
 hdr_size=0, src_ps=0x34eecf0)
     at /bro/src/Net.cc:416
 #33 0x0000000000702cdf in PktSrc::Process (this=0x34eecf0) at
 /bro/src/PktSrc.cc:272
 #34 0x00000000006f116d in net_run () at /bro/src/Net.cc:446
 #35 0x00000000005ee221 in main (argc=17, argv=0x7fffb4877718) at
 /bro/src/main.cc:1011
 }}}

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/611>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list