[FS#2495] ucert rebuild within SDK segfaults on Debian 10 and Ubuntu 18.04

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Mon May 24 15:48:15 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#2495 - ucert rebuild within SDK segfaults on Debian 10 and Ubuntu 18.04
User who did this - recycler (recycler)

----------
Same here for Ubuntu 20.04.2

Seems that downloaded ucert is relying on certain library versions.

ldd ./staging_dir/host/bin/ucert 
        linux-vdso.so.1 (0x00007ffd69dae000)
        libubox.so => /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib/libubox.so (0x00007f743222b000)
        libblobmsg_json.so => /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib/libblobmsg_json.so (0x00007f7432226000)
        libc.so.6 => /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib/libc.so.6 (0x00007f7432065000)
        libjson-c.so.5 => /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib/libjson-c.so.5 (0x00007f7432052000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7432245000)


(gdb) run -I -c /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/key-build.ucert -p /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/key-build.pub -s /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/key-build
Starting program: /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/bin/ucert -I -c /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/key-build.ucert -p /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/key-build.pub -s /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/key-build

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e18133 in __libc_start_main () from /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib/libc.so.6
(gdb) backtrace
#0  0x00007ffff7e18133 in __libc_start_main () from /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib/libc.so.6
#1  0x0000555555556a7e in _start () at /home/recycler/proj/openwrt/openwrt-sdk-ramips-mt7620_gcc-8.4.0_musl.Linux-x86_64/build_dir/hostpkg/ucert-2020-05-24-00b921d8/ucert.c:625

A solution could be a static binary for download.
----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=2495#comment9720

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list