[SRU] SegFault on 22.04

Bug #2036267 reported by Allan Wolfe
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
color-picker (Debian)
Fix Released
Unknown
color-picker (Ubuntu)
Fix Released
Critical
Sudip Mukherjee
Jammy
Fix Released
Critical
Sudip Mukherjee
Lunar
Fix Released
Critical
Sudip Mukherjee
Mantic
Fix Released
Critical
Sudip Mukherjee
Noble
Fix Released
Critical
Sudip Mukherjee

Bug Description

[ Impact ]

color-picker is completely unusable as it results in a segfault as soon the user tries to execute it.

The trace from the coredump shows that QObject is passed as NULL to doActivate() in QT libraries.

[ Test Plan ]

 * Execute the command "color-picker", which will immediately result in a segfault.

[ Where problems could occur ]

The patch uses the "this" pointer to access the object instead of the "qApp". The QT docs says "The global qApp pointer refers to the application object". So qApp pointer should not have caused the problem unless the source has missed something in the way its using QT calls.
The patch has been forwarded upstream, either they can accept the patch or they will now find out why qApp pointer is invalid if LTO is enabled.
If there is any problem due to this patch, then at the worst case the stylesheet will not work and the window will have the default style.

[ Other Info ]

* All versions from Jammy are affected by this.
* The full trace from the coredump is given at the upstream issue.

[ Original Bug Description ]

$ color-picker
Segmentation fault (core dumped)

$ ldd /usr/bin/color-picker
 linux-vdso.so.1 (0x00007ffe6f7a5000)
 libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007faf9c400000)
 libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007faf9bc00000)
 libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007faf9b600000)
 libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007faf9b200000)
 libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007faf9cc34000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faf9ae00000)
 libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007faf9cb4b000)
 libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007faf9cac4000)
 libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007faf9c3c5000)
 libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007faf9c3a9000)
 libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007faf9b531000)
 libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007faf9c397000)
 libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007faf9c382000)
 libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007faf9aa00000)
 libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007faf9a805000)
 libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007faf9c2f8000)
 libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007faf9b462000)
 libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007faf9b0c6000)
 /lib64/ld-linux-x86-64.so.2 (0x00007faf9ccf6000)
 libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007faf9ad48000)
 libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007faf9bbcc000)
 libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007faf9a73d000)
 libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007faf9bba5000)
 libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007faf98a00000)
 libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007faf9b050000)
 libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007faf988c0000)
 libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007faf9c2e6000)
 libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007faf9bb7b000)
 libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007faf9b43f000)
 libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007faf9c2de000)
 libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007faf9bb73000)
 libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007faf9b038000)
 libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007faf9bb66000)

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote (last edit ):

I have tested and can reproduce the issue on Jammy, Mantic, Lunar and Noble. If LTO is disabled then the application runs without segfault,
I have opened an upstream issue with the full trace from the coredump at https://github.com/keshavbhatt/ColorPicker/issues/23

Changed in color-picker (Ubuntu):
status: New → Confirmed
assignee: nobody → Sudip Mukherjee (sudipmuk)
assignee: Sudip Mukherjee (sudipmuk) → nobody
tags: added: jammy lunar mantic noble
Changed in color-picker (Ubuntu Noble):
status: Confirmed → In Progress
Changed in color-picker (Ubuntu Mantic):
status: New → In Progress
Changed in color-picker (Ubuntu Lunar):
status: New → In Progress
Changed in color-picker (Ubuntu Jammy):
status: New → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in color-picker (Ubuntu Lunar):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in color-picker (Ubuntu Mantic):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in color-picker (Ubuntu Noble):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff for Noble attached.

summary: - SegFault on 22.04
+ [SRU] SegFault on 22.04
description: updated
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff for Mantic attached.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff for Lunar attached.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff for Jammy attached.

Changed in color-picker (Ubuntu Jammy):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in color-picker (Ubuntu Lunar):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in color-picker (Ubuntu Mantic):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in color-picker (Ubuntu Noble):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in color-picker (Ubuntu Jammy):
status: In Progress → Confirmed
Changed in color-picker (Ubuntu Lunar):
status: In Progress → Confirmed
Changed in color-picker (Ubuntu Mantic):
status: In Progress → Confirmed
Changed in color-picker (Ubuntu Noble):
status: In Progress → Confirmed
Revision history for this message
Simon Quigley (tsimonq2) wrote :

🚀🚀🚀🚀🚀🚀🚀

Changed in color-picker (Ubuntu Jammy):
status: Confirmed → In Progress
Changed in color-picker (Ubuntu Lunar):
status: Confirmed → In Progress
Changed in color-picker (Ubuntu Mantic):
status: Confirmed → In Progress
Changed in color-picker (Ubuntu Noble):
status: Confirmed → Fix Committed
Changed in color-picker (Ubuntu Jammy):
importance: Undecided → Critical
Changed in color-picker (Ubuntu Lunar):
importance: Undecided → Critical
Changed in color-picker (Ubuntu Mantic):
importance: Undecided → Critical
Changed in color-picker (Ubuntu Noble):
importance: Undecided → Critical
Changed in color-picker (Ubuntu Jammy):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in color-picker (Ubuntu Lunar):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in color-picker (Ubuntu Mantic):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in color-picker (Ubuntu Noble):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package color-picker - 1.0.3-2ubuntu1

---------------
color-picker (1.0.3-2ubuntu1) noble; urgency=medium

  * Fix segfault due to LTO. (LP: #2036267)

 -- Sudip Mukherjee <email address hidden> Thu, 28 Dec 2023 18:58:57 +0000

Changed in color-picker (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Allan, or anyone else affected,

Accepted color-picker into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/color-picker/1.0.3-2ubuntu0.23.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-mantic to verification-done-mantic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-mantic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in color-picker (Ubuntu Mantic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-mantic
Changed in color-picker (Ubuntu Lunar):
status: In Progress → Fix Committed
tags: added: verification-needed-lunar
Revision history for this message
Steve Langasek (vorlon) wrote :

Hello Allan, or anyone else affected,

Accepted color-picker into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/color-picker/1.0.3-2ubuntu0.23.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in color-picker (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Steve Langasek (vorlon) wrote :

Hello Allan, or anyone else affected,

Accepted color-picker into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/color-picker/1.0.3-2ubuntu0.22.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that the color-picker package in jammy-proposed has fixed the bug for me.

Test done:
1. Install color-picker on a jammy installation.

2. Execute color-picker from a terminal which failed with a segfault.

3. Add jammy-proposed to apt sources

4. Update color-picker from jammy-proposed.

5. execute the command again and the color-picker window is displayed.

Test result: the errors with color-picker has been fixed.

Package tested:

$ dpkg -l color-picker
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-======================-============-========================================
ii color-picker 1.0.3-2ubuntu0.22.04.1 amd64 Powerful screen color picker based on Qt

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that the color-picker package in lunar-proposed has fixed the bug for me.

Test done:
1. Install color-picker on a lunar installation.

2. Execute color-picker from a terminal which failed with a segfault.

3. Add lunar-proposed to apt sources

4. Update color-picker from lunar-proposed.

5. execute the command again and the color-picker window is displayed.

Test result: the errors with color-picker has been fixed.

Package tested:

$ dpkg -l color-picker
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-======================-============-========================================
ii color-picker 1.0.3-2ubuntu0.23.04.1 amd64 Powerful screen color picker based on Qt

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that the color-picker package in mantic-proposed has fixed the bug for me.

Test done:
1. Install color-picker on a mantic installation.

2. Execute color-picker from a terminal which failed with a segfault.

3. Add mantic-proposed to apt sources

4. Update color-picker from mantic-proposed.

5. execute the command again and the color-picker window is displayed.

Test result: the errors with color-picker has been fixed.

Package tested:

$ dpkg -l color-picker
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-======================-============-========================================
ii color-picker 1.0.3-2ubuntu0.23.10.1 amd64 Powerful screen color picker based on Qt

tags: added: verification-done verification-done-jammy verification-done-lunar verification-done-mantic
removed: verification-needed verification-needed-jammy verification-needed-lunar verification-needed-mantic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package color-picker - 1.0.3-2ubuntu0.23.10.1

---------------
color-picker (1.0.3-2ubuntu0.23.10.1) mantic; urgency=medium

  * Fix segfault due to LTO. (LP: #2036267)

 -- Sudip Mukherjee <email address hidden> Thu, 28 Dec 2023 19:02:53 +0000

Changed in color-picker (Ubuntu Mantic):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for color-picker has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package color-picker - 1.0.3-2ubuntu0.23.04.1

---------------
color-picker (1.0.3-2ubuntu0.23.04.1) lunar; urgency=medium

  * Fix segfault due to LTO. (LP: #2036267)

 -- Sudip Mukherjee <email address hidden> Thu, 28 Dec 2023 19:06:06 +0000

Changed in color-picker (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package color-picker - 1.0.3-2ubuntu0.22.04.1

---------------
color-picker (1.0.3-2ubuntu0.22.04.1) jammy; urgency=medium

  * Fix segfault due to LTO. (LP: #2036267)

 -- Sudip Mukherjee <email address hidden> Thu, 28 Dec 2023 19:14:50 +0000

Changed in color-picker (Ubuntu Jammy):
status: Fix Committed → Fix Released
Changed in color-picker (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.