FS#74874 - [sigil] coredumps after upgrade to 1.9.10-1

Attached to Project: Community Packages
Opened by yuanwu (rrenn) - Saturday, 28 May 2022, 06:09 GMT
Last edited by Antonio Rojas (arojas) - Monday, 06 June 2022, 16:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
After upgrade to 1.9.10-1, sigil crashed with coredump.
Downgrade to 1.9.2-1 fix the problems.

Additional info:
* package version(s): 1.9.10-1

Steps to reproduce:
- upgrade sigil to 1.9.10-1
- start sigil


Coredump logs:

PID: 21487 (sigil)
UID: 1000 (arch)
GID: 1000 (arch)
Signal: 11 (SEGV)
Timestamp: Sat 2022-05-28 13:56:07 CST (11min ago)
Command Line: /usr/lib/sigil/sigil
Executable: /usr/lib/sigil/sigil
Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-konsole-cb8e4da91ba9407784208595247fb5ba.scope
Unit: user@1000.service
User Unit: app-konsole-cb8e4da91ba9407784208595247fb5ba.scope
Slice: user-1000.slice
Owner UID: 1000 (arch)
Boot ID: 560449198f4f4e5581e9aac5d7270a7a
Machine ID: 7592817cb77944d7aee0d1ed3b559afd
Hostname: lenovo
Storage: /var/lib/systemd/coredump/core.sigil.1000.560449198f4f4e5581e9aac5d7270a7a.21487.1653717367000000.zst (present)
Disk Size: 2.1M
Message: Process 21487 (sigil) of user 1000 dumped core.

Module linux-vdso.so.1 with build-id efde3999d24ef01f9f159e6a29490c38a4c08192
Module libdatrie.so.1 with build-id 6fe3b6ece2c8e7d11869fa051375128d8f808f58
Module libthai.so.0 with build-id a7ac5010b4275c49308021200d23690533952702
Module libfribidi.so.0 with build-id fe9f35ac2a0074108c8306c517793f7279bd9b37
Module libpangoft2-1.0.so.0 with build-id c2c09f789578900f61b7fca4a4311d8b94d9a750
Module libtiff.so.5 with build-id 9e8868622f8b7144fd82dabfa8ac2fcaf6d45a34
Module libgomp.so.1 with build-id 5dad42990289bea94eac11b596b80f28415a8c22
Module libgpg-error.so.0 with build-id f9aaa96d5ddf6f6872051ed7abcdfe6bdaff9b1c
Module libbrotlicommon.so.1 with build-id acfd597a977c8087bb6184383daae2e828a9ce42
Module libblkid.so.1 with build-id 140694a62d8d4d07c6c320a501f948dd1b389d73
Module libhogweed.so.6 with build-id 2d70cff7b1841b4d9ca4e8e7726cd4b944c07fdc
Module libnettle.so.8 with build-id 9a878e513c02007598fcf1e2e286c2203f13536e
Module libtasn1.so.6 with build-id ee3429ca5e94718aea4fe5249fc859e0cd88e4e9
Module libunistring.so.2 with build-id 617dbf3d3d6f85d6556a7a036e23845e95490158
Module libidn2.so.0 with build-id 1ce2b50ad9f9821c2c629b521cf5a3c99593d332
Module libbrotlienc.so.1 with build-id 74adbc62e4fbb5da9d37b5aa458471f4130862ff
Module libp11-kit.so.0 with build-id cc372ea3c28c4d3dfc633b4d2e933c8584d2af16
Module libmvec.so.1 with build-id 2c6aec81c79e91d66940b68be0819fdf780a976c
Module libogg.so.0 with build-id ca0cae30a809f10db1f16e54a23b4e5ff7b2c54c
Module libpixman-1.so.0 with build-id d2170a3ac106c2a68597bf7910ab04b1cdd69c14
Module libxcb-shm.so.0 with build-id 828fec4d856e2710e732ea8d92c3f250c807b1c2
Module libxcb-render.so.0 with build-id b1ca498d665807ab0ccdafbe8070853efd058173
Module libpango-1.0.so.0 with build-id 7e27c1e46a1d958f6b16e1ba199f8bdb3f100566
Module libpangocairo-1.0.so.0 with build-id b65f507d9e33adfbd19369acef5e5a0a2422c6d1
Module libgdk_pixbuf-2.0.so.0 with build-id 5b8422ab971b1a8a8e1c43b88738d4ee217f609e
Module libcairo-gobject.so.2 with build-id 9927090dddfb180365695a8f37d1cac89463f109
Module libsoxr.so.0 with build-id 9e49936ed807c1e52705b88d5d71706fe11d9ed1
Module libkeyutils.so.1 with build-id ac405ddd17be10ce538da3211415ee50c8f8df79
Module libkrb5support.so.0 with build-id 36db7c21bc57a9b934ad2d3463782db9fef4af07
Module libcom_err.so.2 with build-id 358b783c9b3d12ba8248519ea2e7f3da4c4e0297
Module libk5crypto.so.3 with build-id f1c113fea46023cdf62c7e51cb643c45831abdd5
Module libkrb5.so.3 with build-id 9350783c946d77aec8ee8fd9c6bc12f4f7b72be9
Module liblz4.so.1 with build-id e63600ab23b2f6997f42fac2fa56e1f02ce159a1
Module libgcrypt.so.20 with build-id 8bf3cb884124273640de797a3e77d86c98434ea4
Module libcap.so.2 with build-id 21b00ab76bb16fde56fd741f07233c78069f0579
Module libdl.so.2 with build-id 94198b268228074fa9f405bbedbbae94112593ed
Module libXdmcp.so.6 with build-id d864159ab0008415667db8d5f251696d75c90df2
Module libXau.so.6 with build-id 60db1eac70f819bea9d4c366603c1583067510b4
Module libgraphite2.so.3 with build-id ce58945ebb55b86d3a4e717b6eae29efc4720d8e
Module libbrotlidec.so.1 with build-id 66c54e9301f7e102ecc1d88547e5f0e8a056fe22
Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767
Module libffi.so.8 with build-id f0a9586cf0f42d2b9971bd1065ca3a6b19f4a2c2
Module libmount.so.1 with build-id 4436aeea0cd8c01b5a77969e0531184f8b3513ce
Module libgmodule-2.0.so.0 with build-id c6df28882f153ee03d0fb33bb8aac2b219ebaacc
Module libdrm.so.2 with build-id 00816f0a71c7e4e388c10db6245dbb9c031732a9
Module libvdpau.so.1 with build-id fccd021ff13c37ebf7144d184a3250624e086f52
Module libva-x11.so.2 with build-id 0c5ca7869e7110b0e92180d5e7ddb330d6f14341
Module libva-drm.so.2 with build-id 7a02a127b38763e2ec9a2503f0ae4c3d57c20327
Module libssh.so.4 with build-id 8490056688e60790230f9d990c439b181236e9b6
Module libsrt.so.1.4 with build-id ad13eeb20e5ea3f04a0b089de1152ff89a9fa65c
Module libgnutls.so.30 with build-id 856619ec7814fc7f2704e235247d54ed23648b98
Module libgmp.so.10 with build-id 26cec2ebe94cc5c4cb99e6988717347222b324fd
Module libbluray.so.2 with build-id 3ed75b9f8aa64ee4707bbfcb986bcf289432d673
Module libmodplug.so.1 with build-id b00dcb12e7d2d5882b4fa414295eba449875dae4
Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
Module libmfx.so.1 with build-id c5ae5843bb9f5a71745214de0b8c2edc8ccb7570
Module libva.so.2 with build-id ae5f91d7b4849e6f918da2e24825f9492c526118
Module libxvidcore.so.4 with build-id 43bc390a7842a7ca3a0302e93442ea561d7f013a
Module libx265.so.199 with build-id 4fd2d7155725df753c6b32274c442349fc05e632
Module libx264.so.164 with build-id 1ebb8708f2101bd1c95b701142163133e8dac465
Module libvorbisenc.so.2 with build-id 2b1ce7fcdcc925bc663ebe2c1c008c0dd96e5bd0
Module libvorbis.so.0 with build-id f4e086347f6c1a66eb73cfe13974a29bd39aabca
Module libtheoradec.so.1 with build-id 19d321fd5455c7b7611ca9602a804b496124e06f
Module libtheoraenc.so.1 with build-id cde750f0621140f313e4ef4e5f212e662f24a38b
Module libSvtAv1Enc.so.0 with build-id e9143f88be53d2aebfa4f9249295869f09e22be4
Module libspeex.so.1 with build-id 39721dbe21b62978562c2943279f6dffbffe8946
Module librav1e.so.0 with build-id 5f8fc2c271f0d96480ab1c71447e038a66aa1c57
Module libopenjp2.so.7 with build-id 5fa7037f0c932c285735dbcd42365abe6c3abb05
Module libopencore-amrnb.so.0 with build-id a3d78948c85fa235e66549119b2f130e69af7b70
Module libmp3lame.so.0 with build-id 48c901805551a3dd58d02502c4cd67f6aa848107
Module libgsm.so.1 with build-id 1cc6240f7eaedaaac302bc7c0f64ebbeae596f22
Module libaom.so.3 with build-id 3c057fe8c5fa7033366274352148acb4dbb42728
Module libcairo.so.2 with build-id a222d042e56108d2786ece7bf291b56ba2069591
Module librsvg-2.so.2 with build-id 8c033bf594f51f48c7b2ee078fa4586ddb70513a
Module libopencore-amrwb.so.0 with build-id 28da8ed3dfca59280e835c46bd40da295dae99e2
Module libdav1d.so.6 with build-id a93560a23a7f1def734a3cf54f09eadd7c3c46e9
Module liblzma.so.5 with build-id 28b40c7af8098a66af6ee093b6986b91cad7694d
Module libswresample.so.4 with build-id afca7bcb3d53246c257a67b852fc922b240fe14a
Module libpthread.so.0 with build-id 95ae4f30a6f12ccbff645d30f8e1a3ee23ec7d36
Module libGLX.so.0 with build-id 02bd4ac6acc4da9288c543ea1a0cdaa70c5e151a
Module libGLdispatch.so.0 with build-id de981c020bd9dbdc159b11f4a2a541310cc3b8d5
Module libcrypto.so.1.1 with build-id d54a7ee1e288aeae436d073277ff986e03994b15
Module libssl.so.1.1 with build-id 25a55106cb13dec5d495c34ca1caf2c2f3114f11
Module libgssapi_krb5.so.2 with build-id 1813217c8baf82a1078772eed0d868310cd59f8b
Module libzstd.so.1 with build-id 3bccb8fe08e48d5ea135b1d0f99de0d771dd752f
Module libdouble-conversion.so.3 with build-id d162eb67b00f523a3f146b1077ae00fe04d5fb85
Module libsystemd.so.0 with build-id 385f15b287d5a2f1952983f0230859f47291fea8
Module libmd4c.so.0 with build-id 2151dba72cdc9960097e6e960a58a2f03c8bb96e
Module liblcms2.so.2 with build-id c01e5649a38dbf37768d02dc751b52de0dcbd141
Module libxslt.so.1 with build-id 333f4419a38bfb5d4bc10f73aa2364847d683b38
Module libxml2.so.2 with build-id 8cdf00fa954d9a27f2f184c4d354cb14677446ac
Module libsnappy.so.1 with build-id 36e3fb247a476fe2f755162644ebcd8ebd5d92cb
Module libasound.so.2 with build-id b17fc1317a484842433c772360376623b64ec3d8
Module libpci.so.3 with build-id 071074c5f15e7eb6d845238ffc3b3998715ab0cc
Module libdbus-1.so.3 with build-id 7f4b16b4b407cbae2d7118d6f99610e29a18a56a
Module libxkbcommon.so.0 with build-id 6cf66eead3fcc20fe5df10162bfbcdcdc8b2a183
Module libxcb.so.1 with build-id 13d677412a71468381b11092915d231f664d18d3
Module libX11-xcb.so.1 with build-id f6beacd41cd16a23f53e5e56bb599e98f039d0d6
Module libre2.so.9 with build-id 1817ac6fcc97c8992aee9e20f9079824273cfc5d
Module libharfbuzz.so.0 with build-id c58fe082cbde02fc176e3c3663a6d81386eb5027
Module libharfbuzz-subset.so.0 with build-id 57ccc7ad08010524f9713dacd5e6a6c8432cfe09
Module libfontconfig.so.1 with build-id 36be6951b8c1e42a7dd05684a37400fc8ef9147c
Module libexpat.so.1 with build-id 113bb5a3e9ad856801bfcfc029102c9bdc13d67e
Module libfreetype.so.6 with build-id f89dd5502e75aca28fb5c3ccd0dbd26fe822bfef
Module libwebp.so.7 with build-id 0add7a572705244ed810b7e722cce7da0dcfb62c
Module libwebpdemux.so.2 with build-id 7bc15ac239db643015e169a2c6cc822156eb999a
Module libwebpmux.so.3 with build-id 4232d5263a45719ba12f58ed7d8cae3a0fc887de
Module libpng16.so.16 with build-id 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
Module libglib-2.0.so.0 with build-id e268e80e668ce871312cf50e9969f88b086e33f2
Module libgobject-2.0.so.0 with build-id 4337ec84b2f33ec39a95863d47bfca0a28afd488
Module libgio-2.0.so.0 with build-id 8c411770513e0bc758a1bbe661af14c972e2a3c4
Module libXtst.so.6 with build-id 35c7f3daf454834acb724e6bd1664b0a2e9a6494
Module libXrandr.so.2 with build-id 154e55f082ee9e685d0794c98c5b76ffe9c8868e
Module libXrender.so.1 with build-id 42e386d2acf3cde61081959d9671ca74acfb3edc
Module libXfixes.so.3 with build-id 0a05c7e8714522bfbdd7c0027c3e2a94965664b0
Module libXext.so.6 with build-id 17beadf1cb40d41ab36629db3b4eed74110678a7
Module libXdamage.so.1 with build-id a99dbe3fc2b01da9fbdd90d5ad00621f9022379f
Module libXcomposite.so.1 with build-id 13228d108b290268d88510db494daefd5521cda0
Module libX11.so.6 with build-id d8e0be8e0323aa421366f19065ecd1c76405c130
Module libvpx.so.7 with build-id 347ca2580a23a6da7347be245c72585415bfa8e2
Module libavutil.so.57 with build-id 02316d81b1e1685729cedd19caebefd52d8fb986
Module libavformat.so.59 with build-id cadfebbf354b318442c077a7eeb253de55d58a6b
Module libavcodec.so.59 with build-id 9b7c8f13e401225a3e10e315841d360348415f55
Module libopus.so.0 with build-id 35fafc4024675e9cfe57c7d50c3965eac6bac358
Module libjpeg.so.8 with build-id 8e6d3f3e8f438912b561c43b6e7f66e6e5e097d0
Module libresolv.so.2 with build-id 89a368a6ad1b392d126a2a5beb9c2f61ade00279
Module libevent-2.1.so.7 with build-id 4cf856bfbd3644008bc09ccf8d436baf574680e5
Module libnspr4.so with build-id 0fcca981168b16e07684217e645e9b3b716a0c57
Module libplc4.so with build-id e194130401ccec0067df40f72affdde25bb9a383
Module libplds4.so with build-id d91a9c5ee69e8a373b87bfc3eec221b5c1e2950c
Module libnssutil3.so with build-id 1a64415cbb9d33b86f22e1bc4028411fd5bd9484
Module libnss3.so with build-id 63b30181a431facad7300e8fa3855db13d822da1
Module libsmime3.so with build-id 2950ba6b2aa311f260d83a6f27ea82f51205c57a
Module libicudata.so.71 with build-id 4fef196388e678deb881978139e125e20ee2d94d
Module libicuuc.so.71 with build-id 633fdc0c5385d916571f6140e7a978ad0630ef55
Module libicui18n.so.71 with build-id 6fd5c97fd2808ee29958bf809656d5885e7e8963
Module libm.so.6 with build-id 210ec9905e41825671210f8f7d0b24d6c371196a
Module libGL.so.1 with build-id b915a2e48be6c9fd3cc6f9f4c7aab1f7aeed8a4c
Module libQt5QuickWidgets.so.5 with build-id 410c531fcec6f119f726b19943fbbb5fe22fa059
Module libQt5Positioning.so.5 with build-id 267508e41d3bf6d21f563946ef1161da90e96031
Module libQt5Network.so.5 with build-id 5bb03198d22fed27c5a15a935dcf4a312d0d4281
Module libQt5Qml.so.5 with build-id 3302afd50e5fb5cc942267e9cad5746e4c125ce1
Module libQt5WebChannel.so.5 with build-id 1cd65a9fbffec3afe2a3949a617837457b914ebd
Module libQt5QmlModels.so.5 with build-id 3aca8e95972fa0b56402ca9d5cf2f101ba4fdd1c
Module libQt5Quick.so.5 with build-id e64c8602e59b921835da1ffa74aa5a3bfa52a296
Module libz.so.1 with build-id fefe3219a96d682ec98fcfb78866b8594298b5a2
Module ld-linux-x86-64.so.2 with build-id fc93487393eea02b5bc6e76e48976fc325294c24
Module libc.so.6 with build-id 388993b6ef62f964bc7bf473c069fbfe957b9e44
Module libgcc_s.so.1 with build-id 0e3de903950e35ae59a5de8c00b1817a4a71ca01
Module libstdc++.so.6 with build-id b3eaebcb5369487562e52dd8d016c9cd77f80c54
Module libQt5Core.so.5 with build-id 8cdf5604f4bfb4d50a9a7206b0da4450411ca4eb
Module libQt5Gui.so.5 with build-id ceffad0d49bcda41ebb29ff7c6df9d2aa224176f
Module libQt5WebEngineCore.so.5 with build-id e93a5edfb029f9bd4daf0f2d41ba7130b33b2b6d
Module libQt5Widgets.so.5 with build-id 061cfd46dc2a46469059b8792ecc33a2aceac2b6
Module libQt5PrintSupport.so.5 with build-id d6df4ae9b6324090fb9d625ba28877f21e06f174
Module libpython3.10.so.1.0 with build-id 901a4aa7e17268bd8139edc953a41faa7311f64f
Module libQt5Concurrent.so.5 with build-id cc02b9e9e90c5bd6c31c0167a8cf99db2640077c
Module libQt5WebEngineWidgets.so.5 with build-id ebbc018c380bfa4516f0e6a5bbd3f06057b966fb
Module libminizip.so.1 with build-id 0785202fbd0261af699c78770961bf72fb3fb817
Module libsigilgumbo.so with build-id 0e716755ebb17cab4cd77031cabf5b0196f1f3e2
Module libpcre2-16.so.0 with build-id 68a5c2d52b45bfa6b1e93d2766e80094f52d9ebf
Module libhunspell-1.7.so.0 with build-id 7caac66c224c3c73f5dab058dde688c5d05df15d
Module sigil with build-id ac6f8ba27fd992b8494d53d55d8eb5ad1c64d68f
Stack trace of thread 21487:
#0 0x000055c4c015cc04 n/a (sigil + 0x155c04)
#1 0x000055c4c0156c97 n/a (sigil + 0x14fc97)
#2 0x00007fa96881c3be __libc_start_main (libc.so.6 + 0x293be)
#3 0x000055c4c0159885 _start (sigil + 0x152885)
ELF object binary architecture: AMD x86-64

This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 06 June 2022, 16:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  sigil 1.9.10-2
Comment by Antonio Rojas (arojas) - Monday, 30 May 2022, 20:49 GMT
Building with Qt 6 fixes this.
Comment by Doug Massay (dougmassay) - Monday, 30 May 2022, 21:42 GMT
I'm not sure this is related to the QtWebEngine sandbox issue going around. I'm able to compile Sigil myself against the system-supplied Qt5 and everything works fine. But I'm no expert on Arch packaging or the issue. As one of the Sigil devs, I'm fine with moving to Qt6 if it's the easiest fix. We've been testing heavily and have been stable using Qt6 for quite a while now. Just note that there's a cmake option to add to make Sigil build with Qt6 correctly. It's documented in our build instructions. I've been meaning to touch base on Qt6 for while now.
Comment by Antonio Rojas (arojas) - Tuesday, 31 May 2022, 11:11 GMT
This might be a gcc bug. It seems that lto is wrongly deleting SEARCHES_V2_SETTINGS_FILE. Compiling with clang works fine.
Comment by Doug Massay (dougmassay) - Tuesday, 31 May 2022, 12:21 GMT
Is -flto one of the CXXFLAGS used when building the Arch package? I'm just trying to find a way to duplicate this when compiling everything manually (which still seems to work fine on a fully updated Arch machine).
Comment by Antonio Rojas (arojas) - Tuesday, 31 May 2022, 13:46 GMT
Default flags are here https://gitlab.archlinux.org/archlinux/devtools/-/blob/master/makepkg-x86_64.conf#L43 (LTOFLAGS are appended to C(XX)FLAGS)
Comment by Doug Massay (dougmassay) - Tuesday, 31 May 2022, 15:25 GMT
Sorry. Maybe I'm being dense, but I'm not seeing where LTOFLAGS is getting appended to C(XX)FLAGS (in either makepkg-x86_x64.conf or the PKGBUILD for Sigil). I assume that's happening somewhere else? Can it be filtered out for building Sigil, or is it requirement for building community packages?
Comment by Antonio Rojas (arojas) - Tuesday, 31 May 2022, 18:01 GMT
This is done by makepkg. Sure, lto can be disabled, and that is possibly the easiest way to fix this, but still, there is a bug here somewhere (sigil or gcc) that need to be identified and properly fixed eventually.
Comment by Doug Massay (dougmassay) - Wednesday, 01 June 2022, 22:37 GMT
I get it. I really do. But as one of the Sigil devs, I naturally don't want to see a non-functioning Sigil package hanging around for the months it might take to nail this down, either. So in the meantime, what can I do to help eliminate (or confirm) Sigil as the one with the bug so that a fixed package might be released?
Comment by K. Takacs (silent) - Thursday, 02 June 2022, 18:56 GMT
Doug, may be you could revive the orphaned sigil-git package in AUR? https://aur.archlinux.org/packages/sigil-git
Comment by K. Takacs (silent) - Thursday, 02 June 2022, 19:31 GMT
Comment by Doug Massay (dougmassay) - Saturday, 04 June 2022, 21:18 GMT
We're pretty sure this is on GCC's -flto. We've worked around the issue for now, but don't feel there's anything wrong with the code that's segfaulting when -flto=auto is employed. The other Sigil maintainer has a simple test case that demonstrates the bug in action (by adding/removing -flto=auto from the makefile).

It needs a little cleaning up, but before that, we wondering where best to submit it.

https://github.com/Sigil-Ebook/Sigil/commit/ab629582d065b25a7f6f198c6bd4875c23bae474#commitcomment-75337660
Comment by K. Takacs (silent) - Monday, 06 June 2022, 09:44 GMT
Could it be a stack overflow as described here in the last case (LTO typically causes large increases to the stack space needed):
https://interrupt.memfault.com/blog/best-and-worst-gcc-clang-compiler-flags#-flto
Comment by Doug Massay (dougmassay) - Monday, 06 June 2022, 10:55 GMT
This just so frustrating. It's all still a bit over my head, but it's pretty clear to me now that -flto shouldn't be used as a default option in any package building situation in any distro with gcc. It's one thing if it's a developer decision to do so with their own code, but it's another to use it on other's code, when it's clear that -flto can (and does in many situations) outright defy the intentions of the devs. It's a strange day when Microsoft's compiler is more reasonable than gcc. I respectfully ask that this Sigil package be rebuilt without -flto=auto.

More compelling evidence of lto's misbehavior at: https://github.com/Sigil-Ebook/Sigil/commit/ab629582d065b25a7f6f198c6bd4875c23bae474

Loading...