Re: find terminated with SIGSEGV in partial_quotearg_n

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
On 1/24/25 16:03, Dietmar Hahn (Fujitsu) via Bug reports for the GNU find utilities wrote:
>> From: Bernhard Voelker <[email protected], sent: Thursday, January 23, 2025 10:49 PM:
>>> The fts_cycle looks corrupted.
>>
>> The underlying gnulib code seems to be a bit vague about this,
>> and the comment about coreutils is also not true (any more):
>> https://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/fts-cycle.c#n110
>>
>>             /* FIXME: setting fts_cycle like this isn't proper.
>>                To do what the documentation requires, we'd have to
>>                go around the cycle again and find the right entry.
>>                But no callers in coreutils use the fts_cycle member. */
>>             ent->fts_cycle = ent;
>>             ent->fts_info = FTS_DC;

Also coreutils as gnulib FTS user doesn't show the fts_cycle information
in the error diagnostics.

I pushed the following to avoid de-referencing fts_cycle in find(1) as well:

https://git.sv.gnu.org/cgit/findutils.git/commit/?id=e5d6eb919b9

I couldn't reproduce the issue here, so maybe you could check?

Thanks again for reporting the issue.

Have a nice day,
Berny
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.