Date: Mon, 27 Oct 2025 22:15:34 +0000 From: Frank Leonhardt <freebsd-doc@fjl.co.uk> To: questions@freebsd.org Subject: Re: [List] pkg segfault Message-ID: <d5e359b0-f4a1-4cd5-8aa2-83b494b4b3c6@fjl.co.uk> In-Reply-To: <afb9b56b-9f7b-4e2a-9e7f-0e57688bc5cd@fjl.co.uk> References: <g5b5b6cjsnv4z4ent4c4osvvd4zhlswyxnyka7lymsmo4m6aaw@3f6or6lcm2fe> <afb9b56b-9f7b-4e2a-9e7f-0e57688bc5cd@fjl.co.uk>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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.
>
>
>
>
[-- Attachment #2 --]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 27/10/2025 22:13, Frank Leonhardt
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:afb9b56b-9f7b-4e2a-9e7f-0e57688bc5cd@fjl.co.uk">
<br>
On 27/10/2025 20:16, Alexey Vyskubov wrote:
<br>
<blockquote type="cite">Hello,
<br>
<br>
I wonder what I am doing wrong. I have three repositories
defined:
<br>
<br>
❯ pkg repos
<br>
FreeBSD-ports-latest: {
<br>
url :
"pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
<br>
enabled : yes,
<br>
priority : 0,
<br>
mirror_type : "SRV",
<br>
signature_type : "FINGERPRINTS",
<br>
fingerprints : "/usr/share/keys/pkg"
<br>
}
<br>
FreeBSD-kmods-latest: {
<br>
url :
"pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_latest_3",
<br>
enabled : yes,
<br>
priority : 0,
<br>
mirror_type : "SRV",
<br>
signature_type : "FINGERPRINTS",
<br>
fingerprints : "/usr/share/keys/pkg"
<br>
}
<br>
local: {
<br>
url :
<a class="moz-txt-link-rfc2396E" href="file:///usr/local/poudriere/data/packages/pdbuild-pdbuild">"file:///usr/local/poudriere/data/packages/pdbuild-pdbuild"</a>,
<br>
enabled : yes,
<br>
priority : 3
<br>
}
<br>
<br>
Now, "pkg update -r local" and "pkg update -r
FreeBSD-ports-latest" work fine.
<br>
But the third consistently segfaults:
<br>
<br>
❯ doas pkg update -r FreeBSD-kmods-latest
<br>
Updating FreeBSD-kmods-latest repository catalogue...
<br>
FreeBSD-kmods-latest repository is up to date.
<br>
FreeBSD-kmods-latest is up to date.
<br>
Child process pid=79502 terminated abnormally: Segmentation
fault
<br>
<br>
I tried to rename the repository without any effect. Any ideas?
<br>
</blockquote>
<br>
Looking at it and taking a wild guess, should that read
"pkg+file:///....." ?
<br>
Shouldn't segfault if the syntax is inconsistent anyway.
<br>
While I was at it I might set <span style="white-space: pre-wrap">mirror_type : "NONE", </span><span
style="white-space: pre-wrap"> signature_type : "NONE" too.</span><br>
<br>
Regards, Frank.
<br>
<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5e359b0-f4a1-4cd5-8aa2-83b494b4b3c6>
