Page MenuHomeFreeBSD

PR234066: jemalloc assertion failure in less
ClosedPublic

Authored by yuripv on Dec 19 2018, 10:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 3:10 AM
Unknown Object (File)
Dec 20 2023, 3:02 AM
Unknown Object (File)
Dec 8 2023, 3:25 AM
Unknown Object (File)
Sep 12 2023, 3:38 PM
Unknown Object (File)
Aug 11 2023, 11:39 AM
Unknown Object (File)
Jun 30 2023, 5:59 AM
Unknown Object (File)
Jun 30 2023, 5:58 AM
Unknown Object (File)
Jun 30 2023, 5:56 AM
Subscribers

Details

Summary

Revert part of rS341838 as it turned out to trigger a subtle issue in less when doing search and there are no matches; I'm not seeing it affecting anything else (AFAIK, and it's strange), but it wasn't directly related to fixing the endless loop, and was done only because I was apparently misunderstanding the relation to the bitmap used in other regcomp parts. In any case, it should have been only modified to use NC_MAX instead of NC, and so this change does.

Test Plan

I wasn't able to come up with any meaningful reproducer except for doing the search in less several times. Other than that, lib/libc/regex, usr.bin/grep, usr.bin/sed all (still) pass.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 19 2018, 10:34 PM

For the record: while it is good practice to request reviews before committing, IMHO they dont make much sense, and are not required at all, for reverts. After all they stand for things all the initial reviewers missed in the first place ;).

This revision was automatically updated to reflect the committed changes.
In D18611#396895, @pfg wrote:

For the record: while it is good practice to request reviews before committing, IMHO they dont make much sense, and are not required at all, for reverts. After all they stand for things all the initial reviewers missed in the first place ;).

Got it. I put it out for review as it's only partial revert though, and the fix itself stays in and looks to be correct. Thanks!