[Bro-Dev] #612: Segfault in identify_data BiF

Bro Tracker bro at tracker.bro-ids.org
Tue Sep 13 13:31:59 PDT 2011


#612: Segfault in identify_data BiF
---------------------+------------------------
 Reporter:  gregor   |      Owner:
     Type:  Problem  |     Status:  new
 Priority:  Normal   |  Milestone:  Bro1.6
Component:  Bro      |    Version:  git/master
 Keywords:  beta     |
---------------------+------------------------
 I had a crash in libmagic. This is very likely a very rare crash, since I
 had Bro running for quite a while and it's the first time I've seen a
 crash like that.

 Unfortunately, I can't get the arguments in the call to magic_buffer().

 {{{
 #0  0x0000000801631007 in memchr () from /lib/libc.so.7
 #1  0x0000000800da08bc in ?? () from /usr/lib/libmagic.so.4
 #2  0x0000000800da1da4 in file_softmagic () from /usr/lib/libmagic.so.4
 #3  0x0000000800da196f in file_softmagic () from /usr/lib/libmagic.so.4
 #4  0x0000000800daded8 in file_ascmagic_with_encoding () from
 /usr/lib/libmagic.so.4
 #5  0x0000000800dae6e6 in file_ascmagic () from /usr/lib/libmagic.so.4
 #6  0x0000000800dacc4e in file_buffer () from /usr/lib/libmagic.so.4
 #7  0x0000000800da82f5 in magic_buffer () from /usr/lib/libmagic.so.4
 #8  0x0000000000508337 in BifFunc::bro_identify_data (frame=Variable
 "frame" is not available.
 ) at bro.bif:3298
 #9  0x00000000004fd13e in BuiltinFunc::Call (this=0x9ab400,
 args=0x3ca9ad60, parent=0x34b02958)
     at /home/gregor/projects/bro-master/src/Func.cc:463
 #10 0x00000000004dabe3 in CallExpr::Eval (this=0x107c480, f=0x34b02958)
     at /home/gregor/projects/bro-master/src/Expr.cc:4649
 #11 0x00000000004da382 in eval_list (f=0x34b02958, l=0x107c510) at
 /home/gregor/projects/bro-master/src/Expr.cc:5488
 #12 0x00000000004dab14 in CallExpr::Eval (this=0x1081a58, f=0x34b02958)
     at /home/gregor/projects/bro-master/src/Expr.cc:4640
 #13 0x00000000004ead1e in IndexExpr::Eval (this=0x1081db0, f=0x34b02958)
     at /home/gregor/projects/bro-master/src/Expr.cc:2892
 #14 0x00000000004d9980 in AssignExpr::Eval (this=0x1081e48, f=0x34b02958)
     at /home/gregor/projects/bro-master/src/Expr.cc:2598
 #15 0x00000000005af3a8 in ExprStmt::Exec (this=0x1081f80, f=0x34b02958,
 flow=@0x7fffffffe2ac)
     at /home/gregor/projects/bro-master/src/Stmt.cc:369
 #16 0x00000000005ab111 in IfStmt::DoExec (this=0x1082098, f=0x34b02958,
 v=Variable "v" is not available.
 )
     at /home/gregor/projects/bro-master/src/Stmt.cc:484
 #17 0x00000000005af3c5 in ExprStmt::Exec (this=0x1082098, f=0x34b02958,
 flow=@0x7fffffffe2ac)
     at /home/gregor/projects/bro-master/src/Stmt.cc:373
 #18 0x00000000005abb1b in StmtList::Exec (this=0x107b258, f=0x34b02958,
 flow=@0x7fffffffe2ac)
     at /home/gregor/projects/bro-master/src/Stmt.cc:1404
 #19 0x00000000004fd5ae in BroFunc::Call (this=0x8e09b8, args=0x32375080,
 parent=0x0)
     at /home/gregor/projects/bro-master/src/Func.cc:320
 #20 0x00000000004b38aa in EventHandler::Call (this=0x7d4898,
 vl=0x32375080, no_remote=Variable "no_remote" is not available.
 )
     at /home/gregor/projects/bro-master/src/EventHandler.cc:73
 #21 0x00000000004b3157 in EventMgr::Dispatch (this=Variable "this" is not
 available.
 ) at Event.h:46
 #22 0x00000000004b3288 in EventMgr::Drain (this=0x793a40) at
 /home/gregor/projects/bro-master/src/Event.cc:119
 #23 0x0000000000559353 in net_packet_dispatch (t=1315594012.6068211,
 hdr=0x126d658, pkt=0x8017806aa "", hdr_size=14,
     src_ps=0x126d618, pkt_elem=0x0) at /home/gregor/projects/bro-
 master/src/Net.cc:354
 #24 0x00000000005684d8 in PktSrc::Process (this=0x126d618) at
 /home/gregor/projects/bro-master/src/PktSrc.cc:272
 #25 0x00000000005595d5 in net_run () at /home/gregor/projects/bro-
 master/src/Net.cc:446
 #26 0x0000000000468c7a in main (argc=19326872, argv=Variable "argv" is not
 available.
 ) at /home/gregor/projects/bro-master/src/main.cc:1011
 }}}

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



More information about the bro-dev mailing list