Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpf-lua -O0 attempts to compare string with number #185

Open
kbara opened this issue May 6, 2015 · 0 comments
Open

bpf-lua -O0 attempts to compare string with number #185

kbara opened this issue May 6, 2015 · 0 comments

Comments

@kbara
Copy link
Contributor

kbara commented May 6, 2015

% ./env tools/pipe-lua-libpcap-match -O0 tests/data/wingolog.pcap '1 * 1 >= 1' 1       
luajit: /home/me/igalia/pflua/src/pf/bpf.lua:65: attempt to compare string with number
stack traceback:
    ~/igalia/pflua/src/pf/bpf.lua:65: in function 'runtime_u32'
    ~/igalia/pflua/src/pf/bpf.lua:98: in function 'is_power_of_2'
    ~/igalia/pflua/src/pf/bpf.lua:253: in function 'alu'
    ~/igalia/pflua/src/pf/bpf.lua:327: in function 'compile_lua'
    ~/igalia/pflua/src/pf/bpf.lua:444: in function 'compile_filter'
    ~/igalia/pflua/tools/pipe-lua-libpcap-match:39: in function 'main_filter'
    ~/igalia/pflua/tools/pipe-lua-libpcap-match:52: in main chunk
    [C]: at 0x00404bc0
Without optimization:
% ./env tools/pipe-lua-libpcap-match  tests/data/wingolog.pcap '1 * 1 >= 1' 1 
OK: pure-lua, bfp-lua, and libpcap pipelines matched: all true
@kbara kbara changed the title -O0 attempts to compare string with number bpf-lua -O0 attempts to compare string with number May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant