Your message dated Mon, 22 Apr 2024 17:35:49 +0200
with message-id <20240422173549.4a0ba...@eridu.kheb.ignorelist.com>
and subject line Bug disappeared
has caused the Debian Bug report #1053380,
regarding qgit: Segmentation fault (during ld binding of libGL.so.1)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1053380: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053380
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: qgit
Version: 2.10-2
Severity: important

Dear Maintainer,

after upgrade from debian 11 to debian 12, some qt application will crash 
(Segmentation fault).

qgit crashes, but also qt5ct, 2048-qt, qbittorrent.

After searching the web, I've found [1] and [2] that point me to an idea, a 
possible digging.

[1] https://github.com/FrodeSolheim/fs-uae/issues/31
[2] http://fs-uae.net/2015/01/27/fs-uae-2-4-3-released

    Many thanks to NVIDIA which actually tracked down the bug in FS-UAE! The 
problem was an unused function (mprotected),
        a legacy from older WinUAE code, which was exported and caused the 
NVIDIA drivers to load this function instead of the
        correct one from libc. Iā€™m quite impressed that they contacted me with 
information about the bug, and I think this shows
        how serious they are about their Linux drivers šŸ™‚

My idea was related to the use of libGL by the qt libraries.

And, finally, I've found that article [3] that tell about the possibility of 
testing my idea.

[3] 
https://forum.qt.io/topic/90786/turn-off-opengl-optimization-via-qt-environment-variable

Here is the behavior I observed and the digging into the problem.
I've found that the last symbol binded was sigaddset, so I searched for it. 
Maybe I'd have to search for the last lib?

Here is what I've done:


$ qgit
Segmentation fault

$ LD_DEBUG=bindings qgit >/tmp/test_sigv 2>&1
Segmentation fault

$ grep sigaddset /tmp/test_sigv
     60212:     binding file /lib/x86_64-linux-gnu/libglib-2.0.so.0 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]
     60212:     binding file /lib/x86_64-linux-gnu/libsystemd.so.0 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]
     60212:     binding file /lib/x86_64-linux-gnu/libdbus-1.so.3 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]
     60212:     binding file /lib/x86_64-linux-gnu/libGL.so.1 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]

$ tail -10 /tmp/test_sigv
     60212:     binding file /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 [0] to 
/lib/x86_64-linux-gnu/libQt5Core.so.5 [0]: normal symbol 
`_ZN6QTimerC1EP7QObject' [Qt_5]
     60212:     binding file /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 [0] to 
/lib/x86_64-linux-gnu/libQt5Core.so.5 [0]: normal symbol 
`_ZN7QThreadC2EP7QObject' [Qt_5]
     60212:     binding file /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 [0] to 
/lib/x86_64-linux-gnu/libQt5Core.so.5 [0]: normal symbol 
`_ZN14QWaitConditionC1Ev' [Qt_5]
     60212:     binding file /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 [0] to 
/lib/x86_64-linux-gnu/libQt5Core.so.5 [0]: normal symbol 
`_Z15qAddPostRoutinePFvvE' [Qt_5]
     60212:     binding file /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 [0] to 
/lib/x86_64-linux-gnu/libQt5Core.so.5 [0]: normal symbol 
`_ZN7QThread5startENS_8PriorityE' [Qt_5]
     60212:     binding file /lib/x86_64-linux-gnu/libQt5Core.so.5 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `pthread_attr_init' 
[GLIBC_2.2.5]
     60212:     binding file /lib/x86_64-linux-gnu/libQt5Core.so.5 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol 
`pthread_attr_setdetachstate' [GLIBC_2.2.5]
     60212:     binding file /lib/x86_64-linux-gnu/libQt5Core.so.5 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol 
`pthread_attr_setinheritsched' [GLIBC_2.2.5]
     60212:     binding file /lib/x86_64-linux-gnu/libGL.so.1 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `__libc_current_sigrtmin' 
[GLIBC_2.2.5]
     60212:     binding file /lib/x86_64-linux-gnu/libGL.so.1 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]

$ export __GL_WRITE_TEXT_SECTION=0

$ LD_DEBUG=bindings qgit >/tmp/test_ok 2>&1

$ grep sigaddset /tmp/test_ok
     58885:     binding file /lib/x86_64-linux-gnu/libglib-2.0.so.0 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]
     58885:     binding file /lib/x86_64-linux-gnu/libsystemd.so.0 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]
     58885:     binding file /lib/x86_64-linux-gnu/libdbus-1.so.3 [0] to 
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `sigaddset' [GLIBC_2.2.5]


Best regards,
Michel


-- System Information:
Debian Release: 12.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'stable-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-12-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages qgit depends on:
ii  git             1:2.39.2-1.1
ii  libc6           2.36-9+deb12u1
ii  libgcc-s1       12.2.0-14
ii  libqt5core5a    5.15.8+dfsg-11
ii  libqt5gui5      5.15.8+dfsg-11
ii  libqt5widgets5  5.15.8+dfsg-11
ii  libstdc++6      12.2.0-14

qgit recommends no packages.

Versions of packages qgit suggests:
ii  source-highlight  3.1.9-4.2+b3

-- no debconf information

--- End Message ---
--- Begin Message ---
Dear maintainer,

the bug disappeared after upgrading to kernel 6.1.0-20-amd64 and driver
nvidia-legacy-390xx 390.157.

I'm no longer forced to use "__GL_WRITE_TEXT_SECTION=0
<someqtapplication>" to prevent it from crashing.

I've re-tester qgit qasmixer flameshot, and all those applications work.

Best regards,
Michel

Attachment: pgp1GxGjhDZZ3.pgp
Description: Signature digitale OpenPGP


--- End Message ---

Reply via email to