[Bro-Dev] [JIRA] (BIT-1384) Optimize option leads to internal error

Vlad Grigorescu (JIRA) jira at bro-tracker.atlassian.net
Wed Apr 22 08:14:00 PDT 2015


Vlad Grigorescu created BIT-1384:
------------------------------------

             Summary: Optimize option leads to internal error
                 Key: BIT-1384
                 URL: https://bro-tracker.atlassian.net/browse/BIT-1384
             Project: Bro Issue Tracker
          Issue Type: Problem
          Components: Bro
            Reporter: Vlad Grigorescu


On a whim, I tried using the optimize option:

>  % bro -O -Cr ~/pcaps/sansholidayhack2013.pcap
> internal error in /home/vladg/src/bro/scripts/base/frameworks/logging/./main.bro, line 507: bad tag in same_expr()
> zsh: abort      bro -O -Cr ~/pcaps/sansholidayhack2013.pcap

I'm not sure if I'm not using this right, or what. If it's not used much any more, should we consider removing it? Backtrace follows.

internal error in /home/vladg/src/bro/scripts/base/frameworks/logging/./main.bro, line 507: bad tag in same_expr()

bq. Program received signal SIGABRT, Aborted.
bq. 0x00007ffff5eda5e7 in raise () from /lib64/libc.so.6
bq. (gdb) bt
bq. #0  0x00007ffff5eda5e7 in raise () from /lib64/libc.so.6
bq. #1  0x00007ffff5edb9c8 in abort () from /lib64/libc.so.6
bq. #2  0x0000000000835dc4 in Reporter::InternalError (this=0x111d6c0, fmt=0xbe3b69 "bad tag in same_expr()") at /home/vladg/src/bro/src/Reporter.cc:150
bq. #3  0x00000000007f813b in same_expr (e1=0x14662a0, e2=0x1466240) at /home/vladg/src/bro/src/Expr.cc:5984
bq. #4  0x00000000007f7e35 in same_expr (e1=0x146a4b0, e2=0x146a410) at /home/vladg/src/bro/src/Expr.cc:5911
bq. #5  0x00000000007e7fbe in BoolExpr::DoSimplify (this=0x14661e0) at /home/vladg/src/bro/src/Expr.cc:2036
bq. #6  0x00000000007e1719 in BinaryExpr::Simplify (this=0x14661e0) at /home/vladg/src/bro/src/Expr.cc:586
bq. #7  0x00000000007f7a96 in simplify_expr (e=0x14661e0, simp_type=SIMPLIFY_GENERAL) at /home/vladg/src/bro/src/Expr.cc:5828
bq. #8  0x000000000089194d in ExprStmt::Simplify (this=0x1466180) at /home/vladg/src/bro/src/Stmt.cc:388
bq. #9  0x0000000000899831 in simplify_stmt (s=0x1466180) at /home/vladg/src/bro/src/Stmt.cc:2282
bq. #10 0x00000000008975dc in StmtList::Simplify (this=0x1466540) at /home/vladg/src/bro/src/Stmt.cc:1786
bq. #11 0x0000000000774d60 in yyparse () at parse.y:1177
bq. #12 0x000000000078b854 in main (argc=4, argv=0x7fffffffe2d8) at /home/vladg/src/bro/src/main.cc:893



--
This message was sent by Atlassian JIRA
(v6.5-OD-01-120#65000)


More information about the bro-dev mailing list