It can be reproduced with direct invocation

kraj@apollo
/mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0
❯ recipe-sysroot-native/usr/bin/opkg \
  --volatile-cache \
  -f opkg.conf \
  -t temp/ipktemp/ \
  -o rootfs \
  --force-postinstall \
  --prefer-arch-to-version \
  --force-depends \
  remove glibc-binary-localedata-en-gb glibc-binary-localedata-c
glibc-binary-localedata-en-us

[1]    346156 segmentation fault (core dumped)
 recipe-sysroot-native/usr/bin/opkg --volatile-cache -f opkg.conf -t  -o
roots

I have a workaround by setting

IMAGE_LINGUAS = "en-us"

in local.conf which avoids the need for opkg remove operation which is
crashing.

On Wed, Dec 3, 2025 at 1:04 PM Khem Raj <[email protected]> wrote:

> I am starting to see the following crash in opkg when building image.
> Anyone seeing something like this?
>
> (No debugging symbols found in
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/opkg)
> [New LWP 34493]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/usr/lib/libthread_db.so.1".
> Core was generated by
> `/mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/opkg
> --volatile-cache -f
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/opkg.conf
> -t
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/temp/ipktemp/
> -o
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/rootfs
> --force-postinstall --prefer-arch-to-version --force-depends remove
> glibc-binary-localedata-en-gb glibc-binary-localedata-c
> glibc-binary-localedata-en-us'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x00007f50a8190d20 in stringpool_strn2id () from
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/../lib/./libsolv.so.1
> (gdb) bt
> #0  0x00007f50a8190d20 in stringpool_strn2id () from
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/../lib/./libsolv.so.1
> #1  0x00007f50a818a3dc in pool_str2id () from
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/../lib/./libsolv.so.1
> #2  0x00007f50a84fe4ad in ?? () from
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/../lib/libopkg.so.1
> #3  0x00007f50a84ff4df in opkg_solver_remove () from
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/../lib/libopkg.so.1
> #4  0x00007f50a84e9bfb in ?? () from
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/../lib/libopkg.so.1
> #5  0x00007f50a84eadb2 in opkg_cmd_exec () from
> /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/yoe-kiosk-image/1.0/recipe-sysroot-native/usr/bin/../lib/libopkg.so.1
> #6  0x00005557220b6a9d in ?? ()
> #7  0x00007f50a8311f68 in __libc_start_call_main () from
> /mnt/b/yoe/master/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6
> #8  0x00007f50a831201b in __libc_start_main () from
> /mnt/b/yoe/master/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6
> #9  0x00005557220b6bf1 in ?? ()
>
> On Thu, Nov 27, 2025 at 10:11 AM Etienne Cordonnier via
> lists.openembedded.org <[email protected]>
> wrote:
>
>> Hi Gyorgy,
>> I have sent a patch to opkg upstream which disables the ACL option by
>> default again (it is https://lists.yoctoproject.org/g/opkg/message/175 ,
>> however the web-view doesn't seem to work at the moment. I only see
>> "Forbidden").
>>
>> Étienne
>>
>>
>>
>> On Thu, Nov 27, 2025 at 6:08 PM Gyorgy Sarvari <[email protected]>
>> wrote:
>>
>>> I just tried this, but it seems that the ACL switch was toggled during
>>> the CMake transition. With Autotools ACL was disabled by default, but
>>> with CMake it seems to be enabled - and it complains that it can't find
>>> libacl on my machine.
>>>
>>> On 10/23/25 15:46, Etienne Cordonnier via lists.openembedded.org wrote:
>>> > From: Etienne Cordonnier <[email protected]>
>>> >
>>> > See release notes at
>>> > -
>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__downloads.yoctoproject.org_releases_opkg_opkg-2D0.9.0.release-2Dnotes&d=DwICaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=1A1uWL9SVAUWAORYc1-msE0HUGrhCWWRXTj24AF_PScvk4Y_QGHVaD7rHvEf9Kx5&s=qvmy1QT46Bl7mVt_XDbuHiic2IjU6z7Zku_Gid-CVYc&e=
>>> >
>>> > [0.9.0] - 2025-06-27
>>> >
>>> > Semiannual opkg release.
>>> > Bumping the minor version as a result of the project build tooling
>>> changing from autotools to cmake.
>>> >
>>> > - Added a Dockerfile container definition (`:docker/`) for a valid
>>> developer build environment for opkg.
>>> >   - It's recommended that project contributors use this container to
>>> build and test their changes.
>>> > - The AutoTools-based build framework has [been replaced](
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__git.yoctoproject.org_opkg_commit_-3Fid-3D3f6040e321634471ec442fb0e80f140f1437e90b&d=DwICaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=1A1uWL9SVAUWAORYc1-msE0HUGrhCWWRXTj24AF_PScvk4Y_QGHVaD7rHvEf9Kx5&s=GgRxioBjt-ii5JWUrYQ0I-FmXvKxVxKNH3Nj22i_jiM&e=
>>> ) with a more modern, CMake framework.
>>> >   - Refer to the `docs/CONTRIBUTING.md` documentation for updated
>>> build instructions.
>>> >
>>> > Signed-off-by: Etienne Cordonnier <[email protected]>
>>> > ---
>>> >  .../opkg/opkg/0002-config.h.in-fix-typo.patch | 27 +++++++++++++++++++
>>> >  meta/recipes-devtools/opkg/opkg/run-ptest     |  2 +-
>>> >  .../opkg/{opkg_0.8.0.bb => opkg_0.9.0.bb}     | 22 ++++++++-------
>>> >  3 files changed, 41 insertions(+), 10 deletions(-)
>>> >  create mode 100644
>>> meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
>>> >  rename meta/recipes-devtools/opkg/{opkg_0.8.0.bb => opkg_0.9.0.bb}
>>> (76%)
>>> >
>>> > diff --git
>>> a/meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
>>> b/meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
>>> > new file mode 100644
>>> > index 00000000000..626bbd01b68
>>> > --- /dev/null
>>> > +++ b/meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
>>> > @@ -0,0 +1,27 @@
>>> > +From 5a81faadbc2397d554bc598d535fd2d44cbc8d10 Mon Sep 17 00:00:00 2001
>>> > +From: Etienne Cordonnier <[email protected]>
>>> > +Date: Mon, 20 Oct 2025 18:57:56 +0200
>>> > +Subject: [PATCH] config.h.in: fix typo
>>> > +
>>> > +Upstream-Status: Backport [
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__git.yoctoproject.org_opkg_commit_-3Fid-3Dd723a90bfe6409c7ad983ed911225d4aefbfd09e&d=DwICaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=1A1uWL9SVAUWAORYc1-msE0HUGrhCWWRXTj24AF_PScvk4Y_QGHVaD7rHvEf9Kx5&s=5scf6nlpBtSePSuPjyopoX7FmlAyiSwI03Ry11w4tl8&e=
>>> ]
>>> > +Signed-off-by: Etienne Cordonnier <[email protected]>
>>> > +---
>>> > + config.h.in | 2 +-
>>> > + 1 file changed, 1 insertion(+), 1 deletion(-)
>>> > +
>>> > +diff --git a/config.h.in b/config.h.in
>>> > +index 4fa9842..877b8c7 100644
>>> > +--- a/config.h.in
>>> > ++++ b/config.h.in
>>> > +@@ -2,7 +2,7 @@
>>> > + #cmakedefine01 WITH_XZ
>>> > + #cmakedefine01 WITH_BZIP2
>>> > + #cmakedefine01 WITH_LZ4
>>> > +-#cmakedefine01 WITH_LZSTD
>>> > ++#cmakedefine01 WITH_ZSTD
>>> > + #cmakedefine01 WITH_CURL
>>> > + #cmakedefine01 WITH_SSLCURL
>>> > + #cmakedefine01 WITH_ACL
>>> > +--
>>> > +2.43.0
>>> > +
>>> > diff --git a/meta/recipes-devtools/opkg/opkg/run-ptest
>>> b/meta/recipes-devtools/opkg/opkg/run-ptest
>>> > index 5fb7077eec9..d485a4aace5 100644
>>> > --- a/meta/recipes-devtools/opkg/opkg/run-ptest
>>> > +++ b/meta/recipes-devtools/opkg/opkg/run-ptest
>>> > @@ -2,4 +2,4 @@
>>> >
>>> >  OPKG_PATH=$(which opkg)
>>> >
>>> > -make OPKG_PATH=$OPKG_PATH run-tests
>>> > +make -C tests DATADIR=/share SYSCONFDIR=/etc VARDIR=/var
>>> OPKG_PATH=$OPKG_PATH
>>> > diff --git a/meta/recipes-devtools/opkg/opkg_0.8.0.bb
>>> b/meta/recipes-devtools/opkg/opkg_0.9.0.bb
>>> > similarity index 76%
>>> > rename from meta/recipes-devtools/opkg/opkg_0.8.0.bb
>>> > rename to meta/recipes-devtools/opkg/opkg_0.9.0.bb
>>> > index 12e2edf7e3f..ed2f36d636b 100644
>>> > --- a/meta/recipes-devtools/opkg/opkg_0.8.0.bb
>>> > +++ b/meta/recipes-devtools/opkg/opkg_0.9.0.bb
>>> > @@ -15,34 +15,35 @@ PE = "1"
>>> >  SRC_URI = "
>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__downloads.yoctoproject.org_releases_-24-257BBPN-257D_-24-257BBPN-257D-2D-24-257BPV-257D.tar.gz&d=DwICaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=1A1uWL9SVAUWAORYc1-msE0HUGrhCWWRXTj24AF_PScvk4Y_QGHVaD7rHvEf9Kx5&s=mKc8LzZ_Q2orQLqa_38Jr7E7tfyD4-rcsgI-wPkx_Zg&e=
>>> \
>>> >             file://opkg.conf \
>>> >
>>>  file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \
>>> > +           file://0002-config.h.in-fix-typo.patch \
>>> >             file://run-ptest \
>>> >             "
>>> >
>>> > -SRC_URI[sha256sum] =
>>> "582a4c9e220cce0b7d08a0915c95db9f24ae43ad372ed5d42d5ec5f6cd413f0c"
>>> > +SRC_URI[sha256sum] =
>>> "440ef321862e01f83da4d02884a0cbb4d9d7b32f82faa81a6a85493f0c89d0f5"
>>> >
>>> >  # This needs to be before ptest inherit, otherwise all ptest files
>>> end packaged
>>> >  # in libopkg package if OPKGLIBDIR == libdir, because default
>>> >  # PTEST_PATH ?= "${libdir}/${BPN}/ptest"
>>> >  PACKAGES =+ "libopkg"
>>> >
>>> > -inherit autotools pkgconfig ptest
>>> > +inherit cmake pkgconfig ptest
>>> >
>>> >  target_localstatedir := "${localstatedir}"
>>> >  OPKGLIBDIR ??= "${target_localstatedir}/lib"
>>> >
>>> >  PACKAGECONFIG ??= "libsolv"
>>> >
>>> > -PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,\
>>> > +PACKAGECONFIG[gpg] = "-DWITH_GPGME=ON,-DWITH_GPGME=OFF,\
>>> >      gnupg gpgme libgpg-error,\
>>> >      ${@ "gnupg" if ("native" in d.getVar("PN")) else "gnupg-gpg"}\
>>> >      "
>>> > -PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl"
>>> > -PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl
>>> openssl"
>>> > -PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256"
>>> > -PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv"
>>> > +PACKAGECONFIG[curl] = "-DWITH_CURL=ON,-DWITH_CURL=OFF,curl"
>>> > +PACKAGECONFIG[ssl-curl] = "-DWITH_SSLCURL=ON,-DWITH_SSLCURL=OFF,curl
>>> openssl"
>>> > +PACKAGECONFIG[sha256] = "-DWITH_SHA256=ON,-DWITH_SHA256=OFF"
>>> > +PACKAGECONFIG[libsolv] =
>>> "-DUSE_SOLVER_LIBSOLV=ON,-DUSE_SOLVER_LIBSOLV=OFF,libsolv"
>>> >
>>> > -EXTRA_OECONF = "--enable-zstd"
>>> > -EXTRA_OECONF:append:class-native = "
>>> --localstatedir=/${@os.path.relpath('${localstatedir}',
>>> '${STAGING_DIR_NATIVE}')} --sysconfdir=/${@os.path.relpath('${sysconfdir}',
>>> '${STAGING_DIR_NATIVE}')}"
>>> > +EXTRA_OECMAKE = "-DWITH_ZSTD=ON"
>>> > +EXTRA_OECMAKE:append:class-native = "
>>> -DVARDIR=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')}
>>> -DSYSCONFDIR=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}"
>>> >
>>> >  do_install:append () {
>>> >       install -d ${D}${sysconfdir}/opkg
>>> > @@ -56,6 +57,9 @@ do_install:append () {
>>> >  }
>>> >
>>> >  do_install_ptest () {
>>> > +     # the ptest class uses a Makefile for installation, but cmake
>>> uses Ninja per default so we need to install ptests manually:
>>> > +     cp -r ${S}/tests ${D}${PTEST_PATH}
>>> > +
>>> >       sed -i -e '/@echo $^/d' ${D}${PTEST_PATH}/tests/Makefile
>>> >       sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0"
>>> ];then echo "FAIL:"$^;else echo "PASS:"$^;fi'
>>> ${D}${PTEST_PATH}/tests/Makefile
>>> >  }
>>> >
>>> >
>>> >
>>>
>>>
>> 
>>
>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#227243): 
https://lists.openembedded.org/g/openembedded-core/message/227243
Mute This Topic: https://lists.openembedded.org/mt/115910660/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

  • Re: [OE-core][PATCH v4 2/... Etienne Cordonnier via lists.openembedded.org
    • Re: [OE-core][PATCH ... Mathieu Dubois-Briand via lists.openembedded.org
    • Re: [OE-core][PATCH ... Gyorgy Sarvari via lists.openembedded.org
      • Re: [OE-core][PA... Etienne Cordonnier via lists.openembedded.org
        • Re: [OE-core... Khem Raj via lists.openembedded.org
          • Re: [OE-... Khem Raj via lists.openembedded.org
            • Re:... Etienne Cordonnier via lists.openembedded.org
              • ... Etienne Cordonnier via lists.openembedded.org
                • ... Khem Raj via lists.openembedded.org
                • ... Etienne Cordonnier via lists.openembedded.org
                • ... Khem Raj via lists.openembedded.org
                • ... Etienne Cordonnier via lists.openembedded.org
                • ... Khem Raj via lists.openembedded.org
          • Re: [OE-... Ricardo Salveti via lists.openembedded.org

Reply via email to