stderred icon indicating copy to clipboard operation
stderred copied to clipboard

Conflict with GPG command line utility

Open remi-dupre opened this issue 4 years ago • 1 comments

stderred seems to suffer of some sort of conflict with gpg command line utility:

$ echo $LD_PRELOAD
/usr/lib/libstderred.so
$ gpg --version
*** stack smashing detected ***: terminated
fish: Job 1, '/usr/bin/gpg' terminated by signal SIGABRT (Abort)

However removing stderred from LD_PRELOAD fixes the issue:

$ gpg --version
gpg (GnuPG) 2.2.29
[...]

I have tested on an up to date Archlinux installation, using this AUR package, which is tagged as version v1.0 r30.

remi-dupre avatar Oct 11 '21 10:10 remi-dupre

Same here...

My gpg version:

$ gpg --version
gpg (GnuPG) 2.2.32
libgcrypt 1.9.4-unknown
...

I have installed stderred from source.

Putting gpg on the blacklist doesn't help:

$ export LC_ALL=C  # for an english error message
$ export STDERRED_BLACKLIST="gpg"  # same result with "^gpg$"
$ echo $LD_PRELOAD
/home/max/repos/stderred/build/libstderred.so
$ gpg
*** stack smashing detected ***: terminated
Aborted (core dumped)
✔ ~ $ coredumpctl info 32069
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
      Pass -q to turn off this notice.
           PID: 32069 (gpg)
           UID: 1000 (max)
           GID: 1000 (max)
        Signal: 6 (ABRT)
     Timestamp: Mon 2022-02-28 09:55:48 CET (4min 52s ago)
  Command Line: gpg
    Executable: /usr/bin/gpg
 Control Group: /user.slice/user-1000.slice/session-5.scope
          Unit: session-5.scope
         Slice: user-1000.slice
       Session: 5
     Owner UID: 1000 (max)
       Boot ID: d480aaa775f24b9ab54b8c9f9c49a08d
    Machine ID: 5188f2e3d1f24de089ee12e0c85b6c87
      Hostname: max-laptop
       Storage: /var/lib/systemd/coredump/core.gpg.1000.d480aaa775f24b9ab54b8c9f9c49a08d.32069.1646038548000000.zs>
     Disk Size: 84.8K
       Message: Process 32069 (gpg) of user 1000 dumped core.

                Module /media/home/max/repos/stderred/build/libstderred.so with build-id e4617912cb9259e3bc30b84f4>
                Module linux-vdso.so.1 with build-id 351b3072a0555d16594b35d390715fc2f77d54e3
                Module ld-linux-x86-64.so.2 with build-id c09c6f50f6bcec73c64a0b4be77eadb8f7202410
                Module libncursesw.so.6 with build-id 1f873ddb2c32ab39d0b7d8646d03680ffe99de7c
                Module libm.so.6 with build-id 596b63a006a4386dcab30912d2b54a7a61827b07
                Module libc.so.6 with build-id 85766e9d8458b16e9c7ce6e07c712c02b8471dbc
                Module libassuan.so.0 with build-id 21dba3fc93d5d174beca9378b016bcd85829a5c1
                Module libreadline.so.8 with build-id 03c124180216a8077784ca035346856bd16060b9
                Module libgpg-error.so.0 with build-id 82524ee3d1c4c2244d7cfdcc1e6eea5f9855f6c6
                Module libgcrypt.so.20 with build-id db45f5d5e0f7af1e77324fea1885f974619ad268
                Module libsqlite3.so.0 with build-id 132f0de53d66f5245cd1b1c863e1ec81f32ddebe
                Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
                Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26
                Module gpg with build-id 960b7cfaf29d2aca2b4b5f81745191c45cf1d065
                Stack trace of thread 32069:
                #0  0x00007ff632ecd34c __pthread_kill_implementation (libc.so.6 + 0x8f34c)
                #1  0x00007ff632e804b8 raise (libc.so.6 + 0x424b8)
                #2  0x00007ff632e6a534 abort (libc.so.6 + 0x2c534)
                #3  0x00007ff632ec1397 __libc_message (libc.so.6 + 0x83397)
                #4  0x00007ff632f602fa __fortify_fail (libc.so.6 + 0x1222fa)
                #5  0x00007ff632f602c6 __stack_chk_fail (libc.so.6 + 0x1222c6)
                #6  0x00007ff6333a4897 init (/media/home/max/repos/stderred/build/libstderred.so + 0x2897)
                ELF object binary architecture: AMD x86-64

MaxGyver83 avatar Feb 27 '22 22:02 MaxGyver83