walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
676 stars 19 forks source link

panic crash with ugrep query #150

Closed ciscohack closed 1 year ago

ciscohack commented 1 year ago

While doing some log analysis and using ugrep with moar observed a panic crash like the below screenshot

image

This is the query which I ran and observed a crash

image

between I am running latest moar and ugrep version on macOS 13.5.1

ciscohack commented 1 year ago

One finding is if I run the query like this "ug 'Ethernet1/12|Eth1/12' | ug Aug 28" then panic crashes at all times but if I modify the query a little bit like this "ug 'Ethernet1/12|Eth1/12' | ug Aug" no crash observed. So I don't know why with numeric 28 it crashed but without not... The second file has Aug 28 log in this fashion so ideally, it should match but it crashed

walles commented 1 year ago

What does moar --version say?

walles commented 1 year ago

Can you try the same thing with this binary?

It is built for macOS AMD64 with 5a33eda7660d88e3b089875a603d8dc28198951a in it.

ciscohack commented 1 year ago

I have an intel model and unfortunately out for 7 days on vocation

walles commented 1 year ago

I have an intel model

Then my binary should work. Enjoy your vacation!

walles commented 1 year ago

Should work in v1.16.0.

I managed to repro, thanks for the instructions!