[SRU] SegFault on 22.04
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/
linux-vdso.so.1 (0x00007ffe6f7a
libQt5Widgets.so.5 => /lib/x86_
libQt5Gui.so.5 => /lib/x86_
libQt5Core.so.5 => /lib/x86_
libstdc++.so.6 => /lib/x86_
libgcc_s.so.1 => /lib/x86_
libc.so.6 => /lib/x86_
libm.so.6 => /lib/x86_
libGL.so.1 => /lib/x86_
libpng16.so.16 => /lib/x86_
libz.so.1 => /lib/x86_
libharfbuzz.so.0 => /lib/x86_
libmd4c.so.0 => /lib/x86_
libdouble-
libicui18n.so.70 => /lib/x86_
libicuuc.so.70 => /lib/x86_
libpcre2-16.so.0 => /lib/x86_
libzstd.so.1 => /lib/x86_
libglib-2.0.so.0 => /lib/x86_
/lib64/
libGLdispatch.so.0 => /lib/x86_
libGLX.so.0 => /lib/x86_
libfreetype.so.6 => /lib/x86_
libgraphite2.so.3 => /lib/x86_
libicudata.so.70 => /lib/x86_
libpcre.so.3 => /lib/x86_
libX11.so.6 => /lib/x86_
libbrotlidec.so.1 => /lib/x86_
libxcb.so.1 => /lib/x86_
libbrotlicommo
libXau.so.6 => /lib/x86_
libXdmcp.so.6 => /lib/x86_
libbsd.so.0 => /lib/x86_
libmd.so.0 => /lib/x86_
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) |
Changed in color-picker (Debian): | |
status: | Unknown → Fix Released |
I have tested and can reproduce the issue on Jammy, Mantic, Lunar and Noble. If LTO is disabled then the application runs without segfault, /github. com/keshavbhatt /ColorPicker/ issues/ 23
I have opened an upstream issue with the full trace from the coredump at https:/