Sigil-Ebook / Sigil

Sigil is a multi-platform EPUB ebook editor
GNU General Public License v3.0
5.96k stars 578 forks source link

[Bug]: Sigil coredump when delete xhtml file #711

Closed yingziwu closed 1 year ago

yingziwu commented 1 year ago

Bug Description

sample: [苍穹爱丽丝]来自星空的铁翼天使-epub.zip

  1. open this epub in sigil
  2. delete any xhtml file
  3. crash

image

Platform (OS)

Linux

OS Version / Specifics

archlinux 6.2.6-zen

What version of Sigil are you using?

1.9.30

Any backtraces or crash reports

$ sigil "[苍穹爱丽丝]来自星空的铁翼天使.epub"                                                                      
Warning: Wayland does not support QWindow::requestActivate()
sigil: /usr/src/debug/sigil/Sigil-1.9.30/internal/gumbo/gumbo_edit.c:170: gumbo_insert_node: Assertion `index < children->length' failed.
[1]    225429 IOT instruction (core dumped)  sigil "[苍穹爱丽丝]来自星空的铁翼天使.epub"                        
$ coredumpctl info 225429

           PID: 225429 (sigil)
           UID: 1000 (arch)
           GID: 1000 (arch)
        Signal: 6 (ABRT)
     Timestamp: Fri 2023-03-17 15:40:46 CST (6min ago)
  Command Line: /usr/lib/sigil/sigil $'[苍穹爱丽丝]来自星空的铁翼天使.epub'
    Executable: /usr/lib/sigil/sigil
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-kitty\x2dopen-8fb238434efb46718181f82204121e2a.scope
          Unit: user@1000.service
     User Unit: app-kitty\x2dopen-8fb238434efb46718181f82204121e2a.scope
         Slice: user-1000.slice
     Owner UID: 1000 (arch)
       Boot ID: 4c062dd67efe4e24af01e13f35dd43d1
    Machine ID: 5a5bfa18d94d59e63e8d7bba9a08df99
      Hostname: git
       Storage: /var/lib/systemd/coredump/core.sigil.1000.4c062dd67efe4e24af01e13f35dd43d1.225429.1679038846000000.zst (present)
  Size on Disk: 17.1M
       Message: Process 225429 (sigil) of user 1000 dumped core.

                Stack trace of thread 225429:
                #0  0x00007fe20dca08ec n/a (libc.so.6 + 0x878ec)
                #1  0x00007fe20dc51ea8 raise (libc.so.6 + 0x38ea8)
                #2  0x00007fe20dc3b53d abort (libc.so.6 + 0x2253d)
                #3  0x00007fe20dc3b45c n/a (libc.so.6 + 0x2245c)
                #4  0x00007fe20dc4a9f6 __assert_fail (libc.so.6 + 0x319f6)
                #5  0x00007fe2178f94c0 gumbo_insert_node (libsigilgumbo.so + 0x114c0)
                #6  0x000055aed0ac3bd6 _ZN12NavProcessor12SetLandmarksERK5QListI16NavLandmarkEntryE (sigil + 0x24ebd6)
                #7  0x000055aed0ac558c _ZN12NavProcessor25RemoveLandmarkForResourceEPK8Resource (sigil + 0x25058c)
                #8  0x000055aed0ab2c37 _ZN11OPFResource14RemoveResourceEPK8Resource (sigil + 0x23dc37)
                #9  0x00007fe20e4bec20 n/a (libQt5Core.so.5 + 0x2bec20)
                #10 0x000055aed09fc927 _ZN12FolderKeeper15ResourceRemovedEPK8Resource (sigil + 0x187927)
                #11 0x00007fe20e4bec20 n/a (libQt5Core.so.5 + 0x2bec20)
                #12 0x000055aed09fe7c7 _ZN8Resource7DeletedEPKS_ (sigil + 0x1897c7)
                #13 0x000055aed0aa44a4 _ZN8Resource6DeleteEv (sigil + 0x22f4a4)
                #14 0x000055aed0d8db01 _ZN11BookBrowser15RemoveResourcesE5QListIP8ResourceES3_ (sigil + 0x518b01)
                #15 0x000055aed0d8de86 _ZN11BookBrowser15RemoveSelectionE5QListIP8ResourceE (sigil + 0x518e86)
                #16 0x000055aed0d2f9dc _ZN10MainWindow15RemoveResourcesE5QListIP8ResourceE (sigil + 0x4ba9dc)
                #17 0x000055aed0a0e9d7 n/a (sigil + 0x1999d7)
                #18 0x00007fe20e4bec20 n/a (libQt5Core.so.5 + 0x2bec20)
                #19 0x00007fe20e4bec20 n/a (libQt5Core.so.5 + 0x2bec20)
                #20 0x00007fe216d6bec7 _ZN7QAction9triggeredEb (libQt5Widgets.so.5 + 0x16bec7)
                #21 0x00007fe216d718c7 _ZN7QAction8activateENS_11ActionEventE (libQt5Widgets.so.5 + 0x1718c7)
                #22 0x00007fe216ef411b n/a (libQt5Widgets.so.5 + 0x2f411b)
                #23 0x00007fe216ef423d n/a (libQt5Widgets.so.5 + 0x2f423d)
                #24 0x00007fe216daf837 _ZN7QWidget5eventEP6QEvent (libQt5Widgets.so.5 + 0x1af837)
                #25 0x00007fe216d78b5c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x178b5c)
                #26 0x00007fe216d7e379 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x17e379)
                #27 0x00007fe20e48df48 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28df48)
                #28 0x00007fe216d7c377 _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb (libQt5Widgets.so.5 + 0x17c377)
                #29 0x00007fe216dcd9e4 n/a (libQt5Widgets.so.5 + 0x1cd9e4)
                #30 0x00007fe216dcf2ae n/a (libQt5Widgets.so.5 + 0x1cf2ae)
                #31 0x00007fe216d78b5c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x178b5c)
                #32 0x00007fe20e48df48 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28df48)
                #33 0x00007fe20e93efbc _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE (libQt5Gui.so.5 + 0x13efbc)
                #34 0x00007fe20e928885 _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Gui.so.5 + 0x128885)
                #35 0x00007fe1f9f5e8c5 n/a (libQt5WaylandClient.so.5 + 0xae8c5)
                #36 0x00007fe20a90fafb g_main_context_dispatch (libglib-2.0.so.0 + 0x5aafb)
                #37 0x00007fe20a96c5d9 n/a (libglib-2.0.so.0 + 0xb75d9)
                #38 0x00007fe20a90d382 g_main_context_iteration (libglib-2.0.so.0 + 0x58382)
                #39 0x00007fe20e4d8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c)
                #40 0x00007fe20e4866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                #41 0x00007fe216efb9a8 n/a (libQt5Widgets.so.5 + 0x2fb9a8)
                #42 0x00007fe216efbac3 _ZN5QMenu4execERK6QPointP7QAction (libQt5Widgets.so.5 + 0x2fbac3)
                #43 0x000055aed0d87cb4 _ZN11BookBrowser15OpenContextMenuERK6QPoint (sigil + 0x512cb4)
                #44 0x00007fe20e4bec20 n/a (libQt5Core.so.5 + 0x2bec20)
                #45 0x00007fe216db0b5a _ZN7QWidget26customContextMenuRequestedERK6QPoint (libQt5Widgets.so.5 + 0x1b0b5a)
                #46 0x00007fe216dafbf5 _ZN7QWidget5eventEP6QEvent (libQt5Widgets.so.5 + 0x1afbf5)
                #47 0x00007fe216e5da53 _ZN6QFrame5eventEP6QEvent (libQt5Widgets.so.5 + 0x25da53)
                #48 0x00007fe20e48dbb2 _ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent (libQt5Core.so.5 + 0x28dbb2)
                #49 0x00007fe216d78b4c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x178b4c)
                #50 0x00007fe216d7d382 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x17d382)
                #51 0x00007fe20e48df48 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28df48)
                #52 0x00007fe216dcdf44 n/a (libQt5Widgets.so.5 + 0x1cdf44)
                #53 0x00007fe216dcf2ae n/a (libQt5Widgets.so.5 + 0x1cf2ae)
                #54 0x00007fe216d78b5c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x178b5c)
                #55 0x00007fe20e48df48 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28df48)
                #56 0x00007fe20e93efbc _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE (libQt5Gui.so.5 + 0x13efbc)
                #57 0x00007fe20e928885 _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Gui.so.5 + 0x128885)
                #58 0x00007fe1f9f5e8c5 n/a (libQt5WaylandClient.so.5 + 0xae8c5)
                #59 0x00007fe20a90fafb g_main_context_dispatch (libglib-2.0.so.0 + 0x5aafb)
                #60 0x00007fe20a96c5d9 n/a (libglib-2.0.so.0 + 0xb75d9)
                #61 0x00007fe20a90d382 g_main_context_iteration (libglib-2.0.so.0 + 0x58382)
                #62 0x00007fe20e4d8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c)
                #63 0x00007fe20e4866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)

                Stack trace of thread 225444:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225439:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225441:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225443:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225445:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225432:
                #0  0x00007fe20dd139df __poll (libc.so.6 + 0xfa9df)
                #1  0x00007fe1f9f22d1d n/a (libQt5WaylandClient.so.5 + 0x72d1d)
                #2  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #3  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225442:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225430:
                #0  0x00007fe20dd139df __poll (libc.so.6 + 0xfa9df)
                #1  0x00007fe20a96c53f n/a (libglib-2.0.so.0 + 0xb753f)
                #2  0x00007fe20a90d382 g_main_context_iteration (libglib-2.0.so.0 + 0x58382)
                #3  0x00007fe20e4d8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c)
                #4  0x00007fe20e4866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                #5  0x00007fe20e2e725f _ZN7QThread4execEv (libQt5Core.so.5 + 0xe725f)
                #6  0x00007fe1f9e53cba n/a (libQt5DBus.so.5 + 0x23cba)
                #7  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #8  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225435:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225450:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225455:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225440:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225522:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe211b35ac3 n/a (libQt5WebEngineCore.so.5 + 0x2b35ac3)
                #3  0x00007fe211b36614 n/a (libQt5WebEngineCore.so.5 + 0x2b36614)
                #4  0x00007fe211b368bf n/a (libQt5WebEngineCore.so.5 + 0x2b368bf)
                #5  0x00007fe211b123dc n/a (libQt5WebEngineCore.so.5 + 0x2b123dc)
                #6  0x00007fe211b127ed n/a (libQt5WebEngineCore.so.5 + 0x2b127ed)
                #7  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #8  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225481:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe211b35c20 n/a (libQt5WebEngineCore.so.5 + 0x2b35c20)
                #3  0x00007fe211b365d7 n/a (libQt5WebEngineCore.so.5 + 0x2b365d7)
                #4  0x00007fe211aaccb8 n/a (libQt5WebEngineCore.so.5 + 0x2aaccb8)
                #5  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #6  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #7  0x00007fe211b1d79d n/a (libQt5WebEngineCore.so.5 + 0x2b1d79d)
                #8  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #9  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #10 0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225521:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe211b35ac3 n/a (libQt5WebEngineCore.so.5 + 0x2b35ac3)
                #3  0x00007fe211b36614 n/a (libQt5WebEngineCore.so.5 + 0x2b36614)
                #4  0x00007fe211b368bf n/a (libQt5WebEngineCore.so.5 + 0x2b368bf)
                #5  0x00007fe211aaccc5 n/a (libQt5WebEngineCore.so.5 + 0x2aaccc5)
                #6  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #7  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #8  0x00007fe211b1d79d n/a (libQt5WebEngineCore.so.5 + 0x2b1d79d)
                #9  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #10 0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #11 0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225473:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe211b35c20 n/a (libQt5WebEngineCore.so.5 + 0x2b35c20)
                #3  0x00007fe211b365d7 n/a (libQt5WebEngineCore.so.5 + 0x2b365d7)
                #4  0x00007fe211b11fc3 n/a (libQt5WebEngineCore.so.5 + 0x2b11fc3)
                #5  0x00007fe211b127ad n/a (libQt5WebEngineCore.so.5 + 0x2b127ad)
                #6  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #7  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225456:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225541:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225446:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225447:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225451:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225434:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225453:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225466:
                #0  0x00007fe20dd211b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x00007fe20e7d4d03 n/a (libevent-2.1.so.7 + 0x26d03)
                #2  0x00007fe20e7d2195 event_base_loop (libevent-2.1.so.7 + 0x24195)
                #3  0x00007fe211b46609 n/a (libQt5WebEngineCore.so.5 + 0x2b46609)
                #4  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #5  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #6  0x00007fe211b109bd n/a (libQt5WebEngineCore.so.5 + 0x2b109bd)
                #7  0x00007fe211b1d968 n/a (libQt5WebEngineCore.so.5 + 0x2b1d968)
                #8  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #9  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #10 0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225448:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225452:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225515:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225474:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe211b35ac3 n/a (libQt5WebEngineCore.so.5 + 0x2b35ac3)
                #3  0x00007fe21250a5d4 n/a (libQt5WebEngineCore.so.5 + 0x350a5d4)
                #4  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225482:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225540:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225465:
                #0  0x00007fe20dcea747 wait4 (libc.so.6 + 0xd1747)
                #1  0x00007fe211b340e6 n/a (libQt5WebEngineCore.so.5 + 0x2b340e6)
                #2  0x00007fe211b317df n/a (libQt5WebEngineCore.so.5 + 0x2b317df)
                #3  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #4  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225454:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225469:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe211b35c20 n/a (libQt5WebEngineCore.so.5 + 0x2b35c20)
                #3  0x00007fe211b365d7 n/a (libQt5WebEngineCore.so.5 + 0x2b365d7)
                #4  0x00007fe211b1224b n/a (libQt5WebEngineCore.so.5 + 0x2b1224b)
                #5  0x00007fe211b127ad n/a (libQt5WebEngineCore.so.5 + 0x2b127ad)
                #6  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #7  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225514:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225477:
                #0  0x00007fe20dd211b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x00007fe20e7d4d03 n/a (libevent-2.1.so.7 + 0x26d03)
                #2  0x00007fe20e7d2195 event_base_loop (libevent-2.1.so.7 + 0x24195)
                #3  0x00007fe211b46668 n/a (libQt5WebEngineCore.so.5 + 0x2b46668)
                #4  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #5  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #6  0x00007fe211b1d79d n/a (libQt5WebEngineCore.so.5 + 0x2b1d79d)
                #7  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #8  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225467:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe211b35c20 n/a (libQt5WebEngineCore.so.5 + 0x2b35c20)
                #3  0x00007fe211b365d7 n/a (libQt5WebEngineCore.so.5 + 0x2b365d7)
                #4  0x00007fe211b1224b n/a (libQt5WebEngineCore.so.5 + 0x2b1224b)
                #5  0x00007fe211b127ad n/a (libQt5WebEngineCore.so.5 + 0x2b127ad)
                #6  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #7  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225471:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe211b35c20 n/a (libQt5WebEngineCore.so.5 + 0x2b35c20)
                #3  0x00007fe211b365d7 n/a (libQt5WebEngineCore.so.5 + 0x2b365d7)
                #4  0x00007fe211b1224b n/a (libQt5WebEngineCore.so.5 + 0x2b1224b)
                #5  0x00007fe211b127ad n/a (libQt5WebEngineCore.so.5 + 0x2b127ad)
                #6  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #7  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225449:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe20e2eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754)
                #3  0x00007fe20e2e82f7 n/a (libQt5Core.so.5 + 0xe82f7)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225518:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225476:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe211b35ac3 n/a (libQt5WebEngineCore.so.5 + 0x2b35ac3)
                #3  0x00007fe211b36614 n/a (libQt5WebEngineCore.so.5 + 0x2b36614)
                #4  0x00007fe211b368bf n/a (libQt5WebEngineCore.so.5 + 0x2b368bf)
                #5  0x00007fe211aaccc5 n/a (libQt5WebEngineCore.so.5 + 0x2aaccc5)
                #6  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #7  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #8  0x00007fe211b1d79d n/a (libQt5WebEngineCore.so.5 + 0x2b1d79d)
                #9  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #10 0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #11 0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225484:
                #0  0x00007fe20dd211b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x00007fe20e7d4d03 n/a (libevent-2.1.so.7 + 0x26d03)
                #2  0x00007fe20e7d2195 event_base_loop (libevent-2.1.so.7 + 0x24195)
                #3  0x00007fe211b46609 n/a (libQt5WebEngineCore.so.5 + 0x2b46609)
                #4  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #5  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #6  0x00007fe211b1d79d n/a (libQt5WebEngineCore.so.5 + 0x2b1d79d)
                #7  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #8  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225483:
                #0  0x00007fe20dd211b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x00007fe20e7d4d03 n/a (libevent-2.1.so.7 + 0x26d03)
                #2  0x00007fe20e7d2195 event_base_loop (libevent-2.1.so.7 + 0x24195)
                #3  0x00007fe211b46609 n/a (libQt5WebEngineCore.so.5 + 0x2b46609)
                #4  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #5  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #6  0x00007fe211b1d79d n/a (libQt5WebEngineCore.so.5 + 0x2b1d79d)
                #7  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #8  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225525:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225468:
                #0  0x00007fe20dd211b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x00007fe20e7d4d03 n/a (libevent-2.1.so.7 + 0x26d03)
                #2  0x00007fe20e7d2195 event_base_loop (libevent-2.1.so.7 + 0x24195)
                #3  0x00007fe211b46668 n/a (libQt5WebEngineCore.so.5 + 0x2b46668)
                #4  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #5  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #6  0x00007fe214059969 n/a (libQt5WebEngineCore.so.5 + 0x5059969)
                #7  0x00007fe211b1d968 n/a (libQt5WebEngineCore.so.5 + 0x2b1d968)
                #8  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #9  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #10 0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225542:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225516:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225472:
                #0  0x00007fe20dd161cc __select (libc.so.6 + 0xfd1cc)
                #1  0x00007fe211b3ba95 n/a (libQt5WebEngineCore.so.5 + 0x2b3ba95)
                #2  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #3  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225517:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225459:
                #0  0x00007fe20dd139df __poll (libc.so.6 + 0xfa9df)
                #1  0x00007fe214204282 n/a (libQt5WebEngineCore.so.5 + 0x5204282)
                #2  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #3  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225433:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225436:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225431:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe20e2eb7c4 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb7c4)
                #3  0x00007fe1f9f22cc4 n/a (libQt5WaylandClient.so.5 + 0x72cc4)
                #4  0x00007fe20e2e432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225470:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe211b35c20 n/a (libQt5WebEngineCore.so.5 + 0x2b35c20)
                #3  0x00007fe211b365d7 n/a (libQt5WebEngineCore.so.5 + 0x2b365d7)
                #4  0x00007fe211b1224b n/a (libQt5WebEngineCore.so.5 + 0x2b1224b)
                #5  0x00007fe211b127ad n/a (libQt5WebEngineCore.so.5 + 0x2b127ad)
                #6  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #7  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225485:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe211b35ac3 n/a (libQt5WebEngineCore.so.5 + 0x2b35ac3)
                #3  0x00007fe211b36614 n/a (libQt5WebEngineCore.so.5 + 0x2b36614)
                #4  0x00007fe211b368bf n/a (libQt5WebEngineCore.so.5 + 0x2b368bf)
                #5  0x00007fe211b123dc n/a (libQt5WebEngineCore.so.5 + 0x2b123dc)
                #6  0x00007fe211b1282d n/a (libQt5WebEngineCore.so.5 + 0x2b1282d)
                #7  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #8  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225519:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225527:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007fe1f150c4ee n/a (radeonsi_dri.so + 0x10c4ee)
                #3  0x00007fe1f14bc8bc n/a (radeonsi_dri.so + 0xbc8bc)
                #4  0x00007fe1f150c41c n/a (radeonsi_dri.so + 0x10c41c)
                #5  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 225475:
                #0  0x00007fe20dc9b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007fe20dc9e294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x00007fe211b35c20 n/a (libQt5WebEngineCore.so.5 + 0x2b35c20)
                #3  0x00007fe211b365d7 n/a (libQt5WebEngineCore.so.5 + 0x2b365d7)
                #4  0x00007fe211aaccb8 n/a (libQt5WebEngineCore.so.5 + 0x2aaccb8)
                #5  0x00007fe211afbab8 n/a (libQt5WebEngineCore.so.5 + 0x2afbab8)
                #6  0x00007fe211ad3a74 n/a (libQt5WebEngineCore.so.5 + 0x2ad3a74)
                #7  0x00007fe211b1d79d n/a (libQt5WebEngineCore.so.5 + 0x2b1d79d)
                #8  0x00007fe211b3783b n/a (libQt5WebEngineCore.so.5 + 0x2b3783b)
                #9  0x00007fe20dc9ebb5 n/a (libc.so.6 + 0x85bb5)
                #10 0x00007fe20dd20d90 n/a (libc.so.6 + 0x107d90)
                ELF object binary architecture: AMD x86-64
dougmassay commented 1 year ago

Well this is a weird one! I can duplicate it. But only with this epub... and only with the repo version of Sigil. Works fine on Windows too. I'm going to have to go out on a limb and say Arch has changed their default cflags for compiling packages and broken something.

Nothing has been changed in our Gumbo implementation (which seems to be the culprit here) in two years.

Though to be fair, this epub might have broken earlier repo versions of Sigil as well. Can't be sure. I'll have to investigate more this weekend.

kevinhendricks commented 1 year ago

The trouble seems to come when trying to remove a Nav landmark from the landmarks section of the Nav that was associated with the just deleted xhtml file.

Perhaps, the Nav was not properly built in the first place?

I will try to recreate this "abort due to an assert failure" on macOS as well.

dougmassay commented 1 year ago

I'll have to make sure I was testing with other Epub3s, then. But as mentioned, even this same epub doesn't crash for me when using a version of Sigil I compiled myself on Arch (or when using the official version of Sigil on Windows). Only the Arch repo-supplied version of Sigil crashes when deleting xhtml from this particular epub (for me).

dougmassay commented 1 year ago

This wouldn't be another case like the inline static constants fiasco related to -flto would it? I need to find out if the default CFLAGS for building community packages on Arch has changed.

kevinhendricks commented 1 year ago

Unless asserts are disabled on other platforms, then probably a cflags change, compiler/optimization bug most likely.

kevinhendricks commented 1 year ago

Tested on macOS and no assert failure, no crash. Even ran it inside lldb and no warnings, no abort. Seems to work like a charm.

So Arch have either patched sigil, or used an external gumbo build instead of our internal one (which will always fail), or changed the cflags used for the gumbo or Sigil builds, or just are using a broken compiler/optimization combination.

It seems to be only reproducible with the Arch internal build. I am going to try with my own Manjaro VM builds just to confirm.

kevinhendricks commented 1 year ago

Tested my own builds on Manjaro Linux of Sigil 1.9.30 and no crashes at all. Could not access Sigil-1.9.30 on Manjaro as it is still in "testing" so grabbed their official Sigil-1.9.20 distribution build. It aborts with the same assert failure for this sample epub.

So whatever change Arch made to their builds happened in Sigil-1.9.20 or earlier as their official build shows this error by my own builds do not.

So almost definitely a compiler/optimization issue or cflags issue in Arch/Manjaro.

dougmassay commented 1 year ago

so grabbed their official Sigil-1.9.20 distribution build. It aborts with the same assert failure for this sample epub.

I wondered about that. Thanks for confirming.

Unfortunately, I can't find anything in the history of Arch's makepkg.conf that would indicate any relevant changes since the addition of -flto=auto a year or so ago.

dougmassay commented 1 year ago

Whatever it is may have been there for quite awhile. Just needs the right epub to expose it. shrug

kevinhendricks commented 1 year ago

The bug itself is a compiler bug as far as I can tell. The bug is not in gumbo. The bug is in ResourceObjects/NavProcessor.cpp in the code that tries to update the Nav's landmarks section after deleting a file that could have had a landmark set.

Please try this ...

  1. open problem epub
  2. open nav in CodeView
  3. At end of Nav remove the entire nav tag that contains the landmark section including the ending nav
  4. Try deleting any xhtml file

When I try this on Manjaro (distribution build) I get no abort at all.

So something in the below code while loop is not properly detecting that the pos is -1 (that resource's href does not exist in landmarks) and causing the abort trying to remove something at pos = -1, but it will detect that the landmark's list is empty preventing the bug:

void NavProcessor::RemoveLandmarkForResource(const Resource * resource) 
{
    QList<NavLandmarkEntry> landlist = GetLandmarks();
    QWriteLocker locker(&m_NavResource->GetLock());
    int pos = GetResourceLandmarkPos(resource, landlist);
    while((pos > -1) && !landlist.isEmpty()) {
        landlist.removeAt(pos);
        pos = GetResourceLandmarkPos(resource, landlist);
    }
    SetLandmarks(landlist);
}

int NavProcessor::GetResourceLandmarkPos(const Resource *resource, const QList<NavLandmarkEntry> & landlist)
{
    QString resource_book_path = resource->GetRelativePath();
    for (int i=0; i < landlist.count(); ++i) {
        NavLandmarkEntry le = landlist.at(i);
        QString href = ConvertHREFToBookPath(le.href);
        QStringList parts = href.split('#', QT_ENUM_KEEPEMPTYPARTS);
        if (parts.at(0) == resource_book_path) {
            return i;
        }
    }
    return -1;
}
kevinhendricks commented 1 year ago

My guess is a C++ compiler bug that happens because of some specific optimization level or optimization switch they have enabled that we do not.

dougmassay commented 1 year ago

Have you been able to reproduce with any other epubs yet?

kevinhendricks commented 1 year ago

No but that epub3 does in fact pass epubcheck so I do not think anything is technically wrong with it.

According to my /etc/makepkg.conf file on my just updated Manjaro build, here is what the builders are using:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto"

I wonder if we try the same CFLAGS and CXXFLAGS and LTOFLAGS if we could recreate the bug in our own builds with this problem epub?

Might be worth a shot?

dougmassay commented 1 year ago

Yes, it's certainly possible. I was able to replicate the lto issue a while back by using the same flags from the makepkg.conf. You just have to remember that the LTO flags get appended to the cflags if I recall correctly.

On Fri, Mar 17, 2023, 12:20 PM Kevin Hendricks @.***> wrote:

No but that epub3 does in fact pass epubcheck so I do not think anything is technically wrong with it.

According to my /etc/makepkg.conf file on my just updated Manjaro build, here is what the builders are using:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ -fstack-clash-protection -fcf-protection" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" LTOFLAGS="-flto=auto"

I wonder if we try the same CFLAGS and CXXFLAGS and LTOFLAGS if we could recreate the bug in our own builds with this problem epub?

Might be worth a shot?

— Reply to this email directly, view it on GitHub https://github.com/Sigil-Ebook/Sigil/issues/711#issuecomment-1474082627, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACG3CXWAG7CEWBDY6KLHOITW4SFMPANCNFSM6AAAAAAV6GCVMI . You are receiving this because you commented.Message ID: @.***>

kevinhendricks commented 1 year ago

Can you try my test with a failing distro sigil version that deletes the nav landmarks completely first and see if the abort happens on not. In my tests it will not which in fact indicates some miscompilation of the code from the NavProcessor.

dougmassay commented 1 year ago

It will have to be a little later. But yes. I'll try it when I get back to my dev machine.

kevinhendricks commented 1 year ago

No problems. I bet some optimization is reordering the inside of the while loop. That should not happen but seems to be what I am seeing. I have no idea why this would happen only with this epub though.

kevinhendricks commented 1 year ago

It is interesting that if I open the nav.xhtml in the problem epub in CodeView and then run Mend on just its contents, all of the aborts go away when I try to delete any xhtml file.

So there may be something incorrect in the nav.xhtml file in the form of nesting in this problem epub that is causing the problem.

dougmassay commented 1 year ago

I'm just glad it wasn't something introduced with 1.9.30. Also that it wasn't related to Wayland, or Arch's zen kernel.

dougmassay commented 1 year ago

Is it just the fact that the entire nav is one line of code? Not that that explains why it only faults with the Arch Sigil package.

kevinhendricks commented 1 year ago

Not sure. I tried running Mend on the nav.xhtml and no more aborts. I tried running Mend and Prettify on the original nav.xhtml and no more aborts. I tried running Generate Table of Contents on that epub and no more aborts.

So whatever is causing the aborts has to do with something strange about the nav.xhtml file that regenerating it fixes.

kevinhendricks commented 1 year ago

Yes, I think the issue is that the nav.xhtml is just one big line. Still not sure why but I think the one huge line is interfering with extracting just the nav landmarks set properly. I have no idea why that is only happening with distro builds and not our own builds.

Strange.

dougmassay commented 1 year ago

Maybe some sort of reentrant limit that's only getting hit under certain optimization settings? It's definitely a weird one.

On Fri, Mar 17, 2023, 1:47 PM Kevin Hendricks @.***> wrote:

Yes, I think the issue is that the nav.xhtml is just one big line. Still not sure why but I think the one huge line is interfering with extracting just the nav landmarks set properly. I have no idea why that is only happening with distro builds and not our own builds.

Strange.

— Reply to this email directly, view it on GitHub https://github.com/Sigil-Ebook/Sigil/issues/711#issuecomment-1474196613, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACG3CXW6PLYGLCMFLRV2RYDW4SPTRANCNFSM6AAAAAAV6GCVMI . You are receiving this because you commented.Message ID: @.***>

dougmassay commented 1 year ago

Didn't we add some sort of performance fix that chopped monolithic xhtml into reasonable chunks that would perform better?

kevinhendricks commented 1 year ago

Actually, I think the bug is here and the issue is in optimized mode asserts are being ignored (they only fire in debug mode) but the new CXXFLAG on glibc asserts actually allows it to fire.

https://github.com/Sigil-Ebook/Sigil/blob/master/internal/gumbo/gumbo_edit.c#L170

The problem here is that we delete the last gumbo node and then want to replace it but when the nav is one single line there is no extra whitespace nodes that hide this test failure.

The most you can insert is one child so this assert should be changed to <= instead of just less than to be perfectly correct when no extra child whitespace nodes are around (the entire nav.xhtml is just a single line).

We should make that change for the next release, since most platforms only assert when in debug mode, we just do not see the misfiring assert.

So the original backtrace was correct.

kevinhendricks commented 1 year ago

I will push this fix to master and we can test it by adding this to our CXXFLAGS:

-Wp,-D_GLIBCXX_ASSERTIONS

and then trying this testcase which seems to be the only way to tickle this bug.

kevinhendricks commented 1 year ago

To test on macOS, I change the assert in gumbo_edit.c in line 170 to force a call to abort() if the test failed and sure enough, we can then see the abort on both our own Linux builds and macOS with this test case.

That assert is simply incorrect and I have fixed it in master and tested and we are now good to go.

We will NOT need a new release for MacOS and Windows as that bad assert will not fire in a release build.

As for Linux, we could create a Sigil-1.9.31 or just ask them to include a single commit or just wait until next release as the only way to tickle this bug is to have one single line nav.xhtml file with the landmarks section coming last. That should be pretty rare as this bug has existed in earlier releases.

I think we can close this one as "fixed in master".

dougmassay commented 1 year ago

I'm not going to worry overly about getting a new release out (or asking repos to cherry-pick). We have a workaround if it ever pops up again before the next release.

And agreed... "Fixed in Master" it is. Thanks for the bug report-it was a weird one!