walles / moar

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

panic crash with ugrep query #150

Closed ciscohack closed 10 months ago

ciscohack commented 10 months 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 10 months 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 10 months ago

What does moar --version say?

walles commented 10 months ago

Can you try the same thing with this binary?

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

ciscohack commented 10 months ago

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

walles commented 10 months ago

I have an intel model

Then my binary should work. Enjoy your vacation!

walles commented 10 months ago

Should work in v1.16.0.

I managed to repro, thanks for the instructions!