Re: chrt from git segfaults

Madadi Vineeth Reddy <[email protected]> Thu, 10 Jul 2025 00:15:18 +0530
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
On 09/07/25 12:42, Benno Schulenberg wrote:
> 
> Hello Vineeth,
> 
> Just in case you missed the bug report buried in the previous message:
> 
>> With current git, running `./chrt --other ls` says here:
>>
>>    Segmentatiefout (geheugendump gemaakt)
>>
>> Running valgrind on it gives:
>>
>>    ==38370== Invalid read of size 1
>>    ==38370==    by 0x10C6EB: main (chrt.c:574)
>>
>> Pointing to: if (strcmp(argv[0], "--") == 0)
> 
> My patch will prevent that case from occurring.  But if instead it
> should work, something needs fixing.

Could you spin off a patch to make sure the priority argument is
optional for policies that don’t need it, even when --pid is not used?

Thanks,
Madadi Vineeth Reddy

> 
> 
> Benno