Bug 1904698

Summary: qt5-webengine core dumps on dnf update or reinstall (qwebengine_convert_dict crash on hunspell-uk, hunspell-ar, hunspell-fa)
Product: [Fedora] Fedora Reporter: David W. Legg <dwlegg>
Component: qt5-qtwebengineAssignee: Rex Dieter <rdieter>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 36CC: billcrawford1970, coolzero, forummail, gjoldenever, ITProf13, kde-sig, kevin, rdieter, roger.sewell, sajjaddns
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-25 18:26:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
FC34 crash none

Description David W. Legg 2020-12-05 16:51:40 UTC
Description of problem:
# dnf reinstall qt5-qtwebengine-5.15.2-1.fc33.x86_64
Last metadata expiration check: 1:33:22 ago on Sat 05 Dec 2020 15:12:39 GMT.
Dependencies resolved.
============================================================================================================================================================
 Package                                   Architecture                     Version                                 Repository                         Size
============================================================================================================================================================
Reinstalling:
 qt5-qtwebengine                           x86_64                           5.15.2-1.fc33                           updates                            55 M

Transaction Summary
============================================================================================================================================================

Total download size: 55 M
Installed size: 162 M
Is this ok [y/N]: y
Downloading Packages:
qt5-qtwebengine-5.15.2-1.fc33.x86_64.rpm                                                                                    3.1 MB/s |  55 MB     00:17    
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                       3.0 MB/s |  55 MB     00:18     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                    1/1 
  Reinstalling     : qt5-qtwebengine-5.15.2-1.fc33.x86_64                                                                                               1/2 
  Running scriptlet: qt5-qtwebengine-5.15.2-1.fc33.x86_64                                                                                               1/2 
/var/tmp/rpm-tmp.r97ir5: line 2:  4563 Trace/breakpoint trap   (core dumped) /usr/lib64/qt5/bin/qwebengine_convert_dict "$filename" "$bdicname" &> /dev/null

  Cleanup          : qt5-qtwebengine-5.15.2-1.fc33.x86_64                                                                                               2/2 
  Running scriptlet: qt5-qtwebengine-5.15.2-1.fc33.x86_64                                                                                               2/2 
  Verifying        : qt5-qtwebengine-5.15.2-1.fc33.x86_64                                                                                               1/2 
  Verifying        : qt5-qtwebengine-5.15.2-1.fc33.x86_64                                                                                               2/2 

Reinstalled:
  qt5-qtwebengine-5.15.2-1.fc33.x86_64                                                                                                                      

Complete!


Version-Release number of selected component (if applicable):
5.15.2-1.fc33.x86_64

How reproducible: 100%


Steps to Reproduce:
1. Upgrade to qt5-qtwebengine-5.15.2-1.
2.
3.

Actual results: Core dump as above.


Expected results: Nice clean re-install.


Additional info: I first noticed this when doing a general dnf update.

Comment 1 Kevin Kofler 2020-12-05 16:58:23 UTC
It would be useful to have a stack backtrace of the qwebengine_convert_dict crash. It should be possible to produce one from the core dump.

Comment 2 David W. Legg 2020-12-07 12:29:41 UTC
Thanks for replying quickly, Kevin.

The reason I reproduced this error using 'dnf reinstall' was because abrt refused to report the origin error, which I had noticed during a regular 'dnf update'. It claimed that there was not enough content to make it worth reporting, or words to that effect.

If you can tell me how to get some better information, let me know, and I will try.

Comment 3 Kevin Kofler 2021-02-09 12:23:14 UTC
We still do not have enough information to know what is going wrong. Any of those who are hitting the crash: Which hunspell-* packages do you have installed (i.e., what is the output of: rpm -qa 'hunspell-*')? (Maybe we can reproduce the crash if we install the same hunspell dictionary/ies?)

Comment 4 David W. Legg 2021-02-09 14:06:22 UTC
# rpm -qa | grep hunspel
hunspell-en-GB-0.20140811.1-17.fc33.noarch
hunspell-en-0.20140811.1-17.fc33.noarch
hunspell-en-US-0.20140811.1-17.fc33.noarch
hunspell-1.7.0-7.fc33.x86_64
hunspell-uk-1.8.0-6.fc33.noarch
hunspell-el-0.9-6.fc33.noarch
hunspell-he-1.4-11.fc33.x86_64

And I still get the core dump if I reinstall qt5-qtwebengine-5.15.2-8.fc33.x86_64.rpm.

Thanks for looking into this.
:D

Comment 5 Kevin Kofler 2021-02-09 19:16:34 UTC
I can reproduce this by installing hunspell-uk, which triggers the file scriptlet in qt5-qtwebengine:
  Ausgeführtes Scriptlet: hunspell-uk-1.8.0-5.fc32.noarch                  1/1 
/var/tmp/rpm-tmp.YZaQXp: Zeile 2: 55166 Trace/Breakpoint ausgelöst   /usr/lib64/qt5/bin/qwebengine_convert_dict "$filename" "$bdicname" &> /dev/null

The other hunspell-* packages you have installed do not trigger the crash. Neither does hunspell-ru.

Now that I know how to reproduce the crash, I will obtain a backtrace from there.

Comment 6 Kevin Kofler 2021-02-09 23:52:49 UTC
I have run:
qwebengine_convert_dict /usr/share/myspell/uk_UA.dic /usr/share/qt5/qtwebengine_dictionaries/uk_UA.bdic
manually and I get:
[0210/005207.234422:FATAL:aff_reader.cc(123)] We don't support the IGNORE command yet. This would change how we would insert things in our lookup table.

Comment 7 Kevin Kofler 2021-02-09 23:58:44 UTC
I suppose a quick hack would be to just change this line:
https://code.qt.io/cgit/qt/qtwebengine-chromium.git/tree/chromium/chrome/tools/convert_dict/aff_reader.cc?h=83-based#n123
to a warning and, well, ignore ;-) the IGNORE command.

Comment 8 Kevin Kofler 2021-02-10 00:00:58 UTC
So my proposal is to change line 123 (and probably also line 126) from LOG(FATAL) to LOG(WARNING) and see what happens.

Comment 9 Kevin Kofler 2021-04-07 17:39:53 UTC
*** Bug 1947055 has been marked as a duplicate of this bug. ***

Comment 10 Kevin Kofler 2021-04-07 17:40:28 UTC
Looks like this also crashes on hunspell-ar, see the duplicate (pointing to the same aff_reader.cc:123 line).

Comment 11 Kevin Kofler 2021-05-14 08:10:42 UTC
*** Bug 1960489 has been marked as a duplicate of this bug. ***

Comment 12 Kevin Kofler 2021-08-06 21:36:51 UTC
*** Bug 1979660 has been marked as a duplicate of this bug. ***

Comment 13 Kevin Kofler 2021-08-06 21:37:03 UTC
*** Bug 1990972 has been marked as a duplicate of this bug. ***

Comment 14 Kevin Kofler 2021-08-06 21:37:58 UTC
And now also on hunspell-fa (fa_IR).

Comment 15 Fedora Update System 2021-08-08 20:15:43 UTC
FEDORA-2021-043fa12473 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-043fa12473

Comment 16 Kevin Kofler 2021-08-08 20:26:25 UTC
That update does NOT fix this bug. The code that triggers the fatal error has not changed at all:
https://code.qt.io/cgit/qt/qtwebengine-chromium.git/log/chromium/chrome/tools/convert_dict/aff_reader.cc?h=87-based

This will likely never be fixed upstream and has to be fixed downstream (e.g., as per my comment #7).

Comment 17 James Caldwell 2021-08-08 21:54:42 UTC
Created attachment 1812205 [details]
FC34 crash

I reinstalled the package and it took a long time to finally crash. The file has the hunspell packages installed.

/var/tmp/rpm-tmp.UXYm1q: line 2: 141804 Trace/breakpoint trap   (core dumped) /usr/lib64/qt5/bin/qwebengine_convert_dict "$filename" "$bdicname" &> /dev/null
(repeats 28 times).

Comment 18 Ben Cotton 2021-11-04 13:48:36 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 19 Ben Cotton 2021-11-04 14:17:58 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 20 Ben Cotton 2021-11-04 15:15:40 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 21 Ben Cotton 2021-11-30 19:03:42 UTC
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 22 Rex Dieter 2021-12-15 21:33:20 UTC
*** Bug 2032651 has been marked as a duplicate of this bug. ***

Comment 23 Ben Cotton 2022-02-08 20:15:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 24 Ben Cotton 2023-04-25 16:41:18 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 25 David W. Legg 2023-05-10 09:13:34 UTC
Has now been replaced by package qt5-qtwebengine in Fedora 38 (or earlier): qt5-qtwebengine-5.15.12-5.fc38.x86_64.

The problem still occurs:
/var/tmp/rpm-tmp.Af40Bv: line 2:  4022 Trace/breakpoint trap   (core dumped) /usr/lib64/qt5/bin/qwebengine_convert_dict "$filename" "$bdicname" &> /dev/null

Doesn't some-one just need to remove the trace/breakpoint trap?

Please would some-one attach this to Fedora 38. Ta.

Comment 26 Ludek Smid 2023-05-25 18:26:39 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.