andrewgregory / pacutils

Helper library for libalpm based programs.
MIT License
107 stars 17 forks source link

paccheck segfault on arm (armv6h, armv7h) #50

Closed solsticedhiver closed 1 month ago

solsticedhiver commented 3 years ago

when running paccheck --quiet, paccheck segfaults:

# LANG=C paccheck --quiet
Erreur de segmentation (core dumped)

Next, is a coreudmp on armv7h

# coredumpctl dump 667
           PID: 667 (paccheck)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Mon 2021-07-19 16:52:04 CEST (16min ago)
  Command Line: paccheck --quiet
    Executable: /usr/bin/paccheck
 Control Group: /user.slice/user-1000.slice/session-3.scope
          Unit: session-3.scope
         Slice: user-1000.slice
       Session: 3
     Owner UID: 1000 (cassini)
       Boot ID: 2a84e130defa4be3af93bf7d0d82a2aa
    Machine ID: 5e4f5b561f3a481b81361172f5f4e20e
      Hostname: ymir
       Storage: /var/lib/systemd/coredump/core.paccheck.0.2a84e130defa4be3af93bf7d0d82a2aa.667.1626706324000000.zst (present)
     Disk Size: 265.6K
       Message: Process 667 (paccheck) of user 0 dumped core.

                Found module linux-vdso.so.1 with build-id: 133aec3d713a71c3327104897f32e316f0382bba
                Found module libresolv.so.2 with build-id: bd794f14ce0357f3753318070de6caa0b9e12db2
                Found module libkeyutils.so.1 with build-id: 80652a048f08ee7d77823d362ad45290e05282a5
                Found module libkrb5support.so.0 with build-id: a4e96b835e32ece6c6bceec0d4926a1c32fcdd6e
                Found module libcom_err.so.2 with build-id: 53ca370cd190d5bdcba4688d1e0d2adc3a29019e
                Found module libk5crypto.so.3 with build-id: 972d9cf268c6a65d63707cbaafc5c1d30edd601b
                Found module libkrb5.so.3 with build-id: 617308377f5034b69f6a4c52733700a7bf104477
                Found module libunistring.so.2 with build-id: 58057f1b5e61dcd55acdfa007548a281ab350dde
                Found module libgpg-error.so.0 with build-id: a573d1c0536c099fac2c7c831882f05b5243906b
                Found module libassuan.so.0 with build-id: 14b8d2c028bbf655cd1f409564b87e04d29f508a
                Found module libgssapi_krb5.so.2 with build-id: a02299c3c761c49c5097aa1213a4902a83582903
                Found module libssl.so.1.1 with build-id: 434cbd9aad7e4b884b44b33f0b7f5e27c5dcf46a
                Found module libpsl.so.5 with build-id: da80004bc52ca94ad9b49cd16db35e64611831b0
                Found module libssh2.so.1 with build-id: 9f061531ac2761ffd6f6b5429fbd022de34776b9
                Found module libidn2.so.0 with build-id: 814c32aa6cb5f60e0a77184b8449b29d84e10e51
                Found module libnghttp2.so.14 with build-id: 9bad27c32b56a2877d58ab922a17ecef349dbec2
                Found module libpthread.so.0 with build-id: 2484761e12137aa97c557479f23271aecf712489
                Found module libdl.so.2 with build-id: a7c0a714b02735f64533fc1d6d0ec74cab190975
                Found module libz.so.1 with build-id: 00c17cdeec0bcf6131cf99ea9581d9ffc7fea49c
                Found module libbz2.so.1.0 with build-id: d45bd23a4ae9b7fd2b33c17c6a8a2df600003228
                Found module liblz4.so.1 with build-id: bfd0434c5cee4d90673efb49d3b6967c42bb38f0
                Found module libzstd.so.1 with build-id: e681ccc03a63f9af19c8659d4fa423cf4f1fd19a
                Found module liblzma.so.5 with build-id: df2cce6d29fc2c36a4a8c6e69b4834b0741a16e9
                Found module libexpat.so.1 with build-id: 112f9a2aa67051e4476e062e0ac7c87f2864275b
                Found module libacl.so.1 with build-id: f78c8ca807e1effd437edd46e9f7c2b6f6d9727a
                Found module libgpgme.so.11 with build-id: 9a4e05e9db4924e8f2780cfa0085b8039fc048b5
                Found module libcurl.so.4 with build-id: 7f79a94dd9cce6028afb51db93687d839c0d43da
                Found module libcrypto.so.1.1 with build-id: 173499e6be1df2e6f7f93e1fe305b3dba114a318
                Found module ld-linux-armhf.so.3 with build-id: d1196a308906a67f43e14d46164d7499edf603f8
                Found module libc.so.6 with build-id: 3660fbca9b74a648bd7f75f8e787114ee8a69044
                Found module libarchive.so.13 with build-id: 304ca61f6a49ca5b13a9b4d98832a5f9a19af310
                Found module libalpm.so.13 with build-id: eaef0f2d5f6e136384a886605cd148d9acfef35a
                Found module libpacutils.so with build-id: 21c2f54856792b3fb9e2dd71c2605a1fdf7bbc7e
                Found module paccheck with build-id: f41b6c2fae6369df59e19b2b0024c1f9b3e24030
                Stack trace of thread 667:
                #0  0x0000000076d609d8 strnlen (libc.so.6 + 0x7d9d8)

paccheck.coredump.gz

andrewgregory commented 1 month ago

pkg-config libalpm --cflags should now be providing the required _FILE_OFFSET_BITS definition. If your build system is explicitly setting CFLAGS such that the Makefile isn't setting it, you can set it manually.