Extremely slow regex searches on files with very long lines

Bug #2067276 reported by Josef Wolf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
less (Ubuntu)
Triaged
High
Unassigned

Bug Description

Regex searches on files with very long lines are extremely slow.
During the search (can take up to an hour) ^C and ^Z are not working.

Older versions (less-487 on ubuntu-18.04 and less-530 from opensuse leap-15.1) find same regex on same file within one second.

24.04 affected as well as 22.04.

Revision history for this message
Josef Wolf (jw-raven) wrote :

Tracked down commit that caused the problem with git-bisect:

https://github.com/gwsw/less/commit/d1fe3e1535d69ba47437173ea35b00045d35aea4

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Any chance you could report also the issue upstream? We don't have anyone on the Ubuntu side actively working on the less sourcecode so it's not likely it will be picked and resolved from this launchpad report. Also it would help a bit if you attached a testcase example to the report

Revision history for this message
Sebastien Bacher (seb128) wrote :

Oh, I see now that you already reported it upstream, cross referencing now, https://github.com/gwsw/less/issues/520

Changed in less (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Josef Wolf (jw-raven) wrote :

> Any chance you could report also the issue upstream?

Done.

But I have to admit that I had a hard time to find the correct location of the upstream repository.

Maybe the link to the upstream could be placed somewhere on the bug-reporting page on launchpad?

Revision history for this message
Josef Wolf (jw-raven) wrote :

Problem is already fixed in newest upstream v656.

Any chance to see v656 (or at least v649) in 24.04 or 24.04.1?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.