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, Feb 17, 5:55 PM
Unknown Object (File)
Feb 4 2025, 3:00 AM
Unknown Object (File)
Jan 20 2025, 2:54 PM
Unknown Object (File)
Nov 19 2024, 8:10 AM
Unknown Object (File)
Nov 13 2024, 7:34 AM
Unknown Object (File)
Oct 13 2024, 12:21 AM
Unknown Object (File)
Oct 2 2024, 11:44 PM
Unknown Object (File)
Sep 16 2024, 12:50 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!