Re: [List] pkg segfault

From: Frank Leonhardt <freebsd-doc_at_fjl.co.uk>
Date: Mon, 27 Oct 2025 22:15:34 UTC
On 27/10/2025 22:13, Frank Leonhardt wrote:
>
> On 27/10/2025 20:16, Alexey Vyskubov wrote:
>> Hello,
>>
>> I wonder what I am doing wrong. I have three repositories defined:
>>
>> ❯ pkg repos
>> FreeBSD-ports-latest: {
>>      url             : 
>> "pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
>>      enabled         : yes,
>>      priority        : 0,
>>      mirror_type     : "SRV",
>>      signature_type  : "FINGERPRINTS",
>>      fingerprints    : "/usr/share/keys/pkg"
>>    }
>> FreeBSD-kmods-latest: {
>>      url             : 
>> "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_latest_3",
>>      enabled         : yes,
>>      priority        : 0,
>>      mirror_type     : "SRV",
>>      signature_type  : "FINGERPRINTS",
>>      fingerprints    : "/usr/share/keys/pkg"
>>    }
>> local: {
>>      url             : 
>> "file:///usr/local/poudriere/data/packages/pdbuild-pdbuild",
>>      enabled         : yes,
>>      priority        : 3
>>    }
>>
>> Now, "pkg update -r local" and "pkg update -r FreeBSD-ports-latest" 
>> work fine.
>> But the third consistently segfaults:
>>
>> ❯ doas pkg update -r FreeBSD-kmods-latest
>> Updating FreeBSD-kmods-latest repository catalogue...
>> FreeBSD-kmods-latest repository is up to date.
>> FreeBSD-kmods-latest is up to date.
>> Child process pid=79502 terminated abnormally: Segmentation fault
>>
>> I tried to rename the repository without any effect. Any ideas?
>
> Looking at it and taking a wild guess, should that read 
> "pkg+file:///....." ?
> Shouldn't segfault if the syntax is inconsistent anyway.
> While I was at it I might set mirror_type : "NONE", signature_type : 
> "NONE" too.
>
> Regards, Frank.
>
>
>
>