Bug 2320093 - Crash in QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*)
Summary: Crash in QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: copyq
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Gerald Cox
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-20 23:45 UTC by Brad Hubbard
Modified: 2024-11-14 03:01 UTC (History)
3 users (show)

Fixed In Version: copyq-9.1.0-2.fc42 copyq-9.1.0-2.fc41
Clone Of:
Environment:
Last Closed: 2024-11-14 03:01:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Brad Hubbard 2024-10-20 23:45:24 UTC
Multiple times a day when highlighting text to copy CopyQ will generate an error indicating the segfault in the linked report has occurred.

Error: Process crashed
1. copyq --clipboard-access monitorClipboard 

Reproducible: Sometimes

Steps to Reproduce:
1. Highlight some text, quite often highlighting text in Slack client app will produce this whereas highlighting raw text such as this text in a dialog will not.

Actual Results:  
CopyQ segfaults

Expected Results:  
No segfault.

Comment 1 Gerald Cox 2024-10-21 15:41:46 UTC
Please try the new release 9.1.0 and if problem still occurs reopen.  Thanks!

Comment 2 Brad Hubbard 2024-11-05 03:28:46 UTC
Reopening this because I'm still seeing it with copyq-9.1.0-1.fc40.x86_64
installed and these crashes are being reported here [0].

Interestingly whilst the interface reports CopyQ Clipboard Manager 9.1.0 and the
command line shows the following;

$ /usr/bin/copyq --version
CopyQ Clipboard Manager 9.1.0
Qt: 5.15.15
KNotifications: 5.116.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Fedora Linux 40 (Forty)

the crash reports are always showing copyq 0:8.0.0-1.fc40 ?

There is only one copyq instance running so I'm confused as to why that would be
the case but, regardless, I'm still seeing this issue.

[0] https://retrace.fedoraproject.org/faf/reports/660138/

Comment 3 Lukas Holecek 2024-11-05 07:07:34 UTC
This seems like a Qt bug (maybe related to https://bugreports.qt.io/browse/QTBUG-66638).

Perhaps we can move to *Qt 6* version of the app. I'm using a custom Qt 6 build, and it has been working well on Fedora (but I have not seen any issue with the Qt 5 builds either).

Comment 4 Gerald Cox 2024-11-05 19:02:54 UTC
(In reply to Lukas Holecek from comment #3)
> This seems like a Qt bug (maybe related to
> https://bugreports.qt.io/browse/QTBUG-66638).
> 
> Perhaps we can move to *Qt 6* version of the app. I'm using a custom Qt 6
> build, and it has been working well on Fedora (but I have not seen any issue
> with the Qt 5 builds either).

We can try that of course (need to do it eventually anyway) but I'm a bit concerned on what the crash reports are showing 
0:8.0.0-1.fc40?  That seems a bit odd to me.
 
FWIW, I haven't been able to recreate.

@Brad, just for grins can you do a:

rpm -qa | grep copyq
and a 
find copyq* -type f -executable -print

I'm just curious.

Comment 5 Gerald Cox 2024-11-05 19:54:39 UTC
Rebuild QT6 for F41 & F42

Comment 6 Fedora Update System 2024-11-05 20:34:28 UTC
FEDORA-2024-dbd1a6904b (copyq-9.1.0-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-dbd1a6904b

Comment 7 Fedora Update System 2024-11-05 20:48:05 UTC
FEDORA-2024-ef485b4ce6 (copyq-9.1.0-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ef485b4ce6

Comment 8 Brad Hubbard 2024-11-05 22:28:25 UTC
(In reply to Gerald Cox from comment #4)
> We can try that of course (need to do it eventually anyway) but I'm a bit
> concerned on what the crash reports are showing 
> 0:8.0.0-1.fc40?  That seems a bit odd to me.
>  
> FWIW, I haven't been able to recreate.
> 
> @Brad, just for grins can you do a:
> 
> rpm -qa | grep copyq
> and a 
> find copyq* -type f -executable -print
> 
> I'm just curious.

Sure.

$ rpm -qa | grep copyq                                                                                                                                        
copyq-9.1.0-1.fc40.x86_64

$ sudo find / -name copyq* -type f -executable -print
/usr/bin/copyq

$ /usr/bin/copyq --version
CopyQ Clipboard Manager 9.1.0
Qt: 5.15.15
KNotifications: 5.116.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Fedora Linux 40 (Forty)

$ abrt info --pretty full 09ffe86
Id            09ffe86                             
Component     copyq                               
Count         1                                   
Time          2024-11-05 08:05:35  
Command line  /usr/bin/copyq --clipboard-access monitorClipboard  
Package       copyq-9.1.0-1.fc40                                                                                      
User id       1000 (brad)                                                                                             
Path          /var/spool/abrt/ccpp-2024-11-05-08:05:35.833827-1192992

I have no idea where it is getting the 0:8.0.0-1.fc40 version from?

Comment 9 Fedora Update System 2024-11-05 23:12:36 UTC
FEDORA-2024-ef485b4ce6 (copyq-9.1.0-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Gerald Cox 2024-11-06 01:33:59 UTC
(In reply to Brad Hubbard from comment #8)
> (In reply to Gerald Cox from comment #4)
> > We can try that of course (need to do it eventually anyway) but I'm a bit
> > concerned on what the crash reports are showing 
> > 0:8.0.0-1.fc40?  That seems a bit odd to me.
> >  
> > FWIW, I haven't been able to recreate.
> > 
> > @Brad, just for grins can you do a:
> > 
> > rpm -qa | grep copyq
> > and a 
> > find copyq* -type f -executable -print
> > 
> > I'm just curious.
> 
> Sure.
> 
> $ rpm -qa | grep copyq                                                      
> 
> copyq-9.1.0-1.fc40.x86_64
> 
> $ sudo find / -name copyq* -type f -executable -print
> /usr/bin/copyq
> 
> $ /usr/bin/copyq --version
> CopyQ Clipboard Manager 9.1.0
> Qt: 5.15.15
> KNotifications: 5.116.0
> Compiler: GCC
> Arch: x86_64-little_endian-lp64
> OS: Fedora Linux 40 (Forty)
> 
> $ abrt info --pretty full 09ffe86
> Id            09ffe86                             
> Component     copyq                               
> Count         1                                   
> Time          2024-11-05 08:05:35  
> Command line  /usr/bin/copyq --clipboard-access monitorClipboard  
> Package       copyq-9.1.0-1.fc40                                            
> 
> User id       1000 (brad)                                                   
> 
> Path          /var/spool/abrt/ccpp-2024-11-05-08:05:35.833827-1192992
> 
> I have no idea where it is getting the 0:8.0.0-1.fc40 version from?

Thanks for the quick response.  That is indeed puzzling.  In any event, as Lukas suggested I've built with 
qt6 so hopefully that will fix the issue for you.  It should be available in the testing repository tomorrow November 6th.
You can also download it directly from here if you wish:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2579360

Comment 11 Fedora Update System 2024-11-06 07:02:05 UTC
FEDORA-2024-dbd1a6904b has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-dbd1a6904b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-dbd1a6904b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-11-14 03:01:31 UTC
FEDORA-2024-dbd1a6904b (copyq-9.1.0-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.