Description: Opening Help > About is not possible as it leads to a crash with std::bad_cast. This happens in a debug build. Steps to Reproduce: 1. Open LibreOffice 2. Open Help > About Actual Results: Crash with std::bad_cast. Expected Results: No crash should happen. Reproducible: Always User Profile Reset: No Additional Info: The problem happens with both gtk3 and gen user interfaces. $ instdir/program/soffice --version LibreOfficeDev 24.2.0.0.alpha0 9951ffedd6941234447b9655fbc49ed6ca4cc64c $ SAL_USE_VCLPLUGIN=gen instdir/program/soffice instdir/program/soffice terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast terminate called recursively Fatal exception: Signal 6 Stack: /home/hossein/Projects/libreoffice/core/instdir/program/libuno_sal.so.3(+0x93d21)[0x7f01c47aad21] /home/hossein/Projects/libreoffice/core/instdir/program/libuno_sal.so.3(+0x93f59)[0x7f01c47aaf59] /home/hossein/Projects/libreoffice/core/instdir/program/libuno_sal.so.3(+0x9429e)[0x7f01c47ab29e] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f01c4042520] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f01c4096a7c] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f01c4042476] /lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f01c40287f3] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xb046a)[0x7f01c3cb046a] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xae24c)[0x7f01c3cae24c] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xad229)[0x7f01c3cad229] /lib/x86_64-linux-gnu/libstdc++.so.6(__gxx_personality_v0+0x99)[0x7f01c3cad999] /lib/x86_64-linux-gnu/libgcc_s.so.1(+0x16c64)[0x7f01c46c9c64] /lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0x12d)[0x7f01c46ca6bd] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0xc8a084)[0x7f01bc88a084] /home/hossein/Projects/libreoffice/core/instdir/program/libuno_sal.so.3(+0x1aaca)[0x7f01c4731aca] /home/hossein/Projects/libreoffice/core/instdir/program/libuno_sal.so.3(+0x94263)[0x7f01c47ab263] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f01c4042520] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f01c4096a7c] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f01c4042476] /lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f01c40287f3] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xa2bbe)[0x7f01c3ca2bbe] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xae24c)[0x7f01c3cae24c] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xae2b7)[0x7f01c3cae2b7] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xae518)[0x7f01c3cae518] /lib/x86_64-linux-gnu/libstdc++.so.6(__cxa_bad_typeid+0x0)[0x7f01c3ca2637] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x2aeee)[0x7f01b0489eee] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x44b83)[0x7f01b04a3b83] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x3bc15)[0x7f01b049ac15] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x36390)[0x7f01b0495390] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x26470)[0x7f01b0485470] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x36390)[0x7f01b0495390] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x26470)[0x7f01b0485470] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x36390)[0x7f01b0495390] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x26470)[0x7f01b0485470] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x36390)[0x7f01b0495390] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x5866d)[0x7f01b04b766d] /home/hossein/Projects/libreoffice/core/instdir/program/../program/libsvgiolo.so(+0x77405)[0x7f01b04d6405] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZN17VectorGraphicData22ensureSequenceAndRangeEv+0x15a)[0x7f01bc6c5cea] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZNK17VectorGraphicData8getRangeEv+0x1c)[0x7f01bc6c6b10] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(_ZN14SfxApplication12loadBrandSvgEPKcR8BitmapExi+0x1c1)[0x7f01c136bc4d] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x133a35)[0x7f01a9f33a35] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x2749c5)[0x7f01aa0749c5] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x272122)[0x7f01aa072122] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x26ed7e)[0x7f01aa06ed7e] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x2690e8)[0x7f01aa0690e8] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x2644be)[0x7f01aa0644be] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x2614a7)[0x7f01aa0614a7] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x25d359)[0x7f01aa05d359] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x255659)[0x7f01aa055659] /home/hossein/Projects/libreoffice/core/instdir/program/libcuilo.so(+0x243ab3)[0x7f01aa043ab3] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(+0x188c64)[0x7f01c1388c64] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(+0x16b328)[0x7f01c136b328] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(+0x2713f6)[0x7f01c14713f6] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(_ZN13SfxDispatcher8Execute_ER8SfxShellRK7SfxSlotR10SfxRequest11SfxCallMode+0x2ba)[0x7f01c14741f2] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(_ZN13SfxDispatcher7ExecuteEt11SfxCallModePK10SfxItemSetS3_t+0x1f8)[0x7f01c1474554] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(+0x2ed095)[0x7f01c14ed095] /home/hossein/Projects/libreoffice/core/instdir/program/libsfxlo.so(+0x2eab4b)[0x7f01c14eab4b] /home/hossein/Projects/libreoffice/core/instdir/program/libfwklo.so(+0x318901)[0x7f01c2718901] /home/hossein/Projects/libreoffice/core/instdir/program/libfwklo.so(+0x3185cf)[0x7f01c27185cf] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0x5b8be7)[0x7f01bc1b8be7] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZN4Menu6SelectEv+0x95)[0x7f01bc1aaa71] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0x5b3431)[0x7f01bc1b3431] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0x5b33ff)[0x7f01bc1b33ff] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0x68d035)[0x7f01bc28d035] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0x689dda)[0x7f01bc289dda] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0x68bc88)[0x7f01bc28bc88] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0xf5fa4a)[0x7f01bcb5fa4a] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZN17SalGenericDisplay12ProcessEventEN16SalUserEventList12SalUserEventE+0x25)[0x7f01bcb813cb] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0xbdbf1e)[0x7f01bc7dbf1e] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZN16SalUserEventList18DispatchUserEventsEb+0x25b)[0x7f01bc7dc181] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZN17SalGenericDisplay21DispatchInternalEventEb+0x27)[0x7f01bcb81337] /home/hossein/Projects/libreoffice/core/instdir/program/libvclplug_genlo.so(+0x39fa5)[0x7f01b3b96fa5] /home/hossein/Projects/libreoffice/core/instdir/program/libvclplug_genlo.so(+0x3198d)[0x7f01b3b8e98d] /home/hossein/Projects/libreoffice/core/instdir/program/libvclplug_genlo.so(+0x2d387)[0x7f01b3b8a387] /home/hossein/Projects/libreoffice/core/instdir/program/libvclplug_genlo.so(+0x2dc1b)[0x7f01b3b8ac1b] /home/hossein/Projects/libreoffice/core/instdir/program/libvclplug_genlo.so(+0x43ba6)[0x7f01b3ba0ba6] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(+0xc75710)[0x7f01bc875710] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZN11Application5YieldEv+0x196)[0x7f01bc8763f2] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_ZN11Application7ExecuteEv+0x1ad)[0x7f01bc875415] /home/hossein/Projects/libreoffice/core/instdir/program/libsofficeapp.so(+0x30f7f)[0x7f01c4430f7f] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_Z10ImplSVMainv+0x235)[0x7f01bc88a2c4] /home/hossein/Projects/libreoffice/core/instdir/program/libvcllo.so(_Z6SVMainv+0xd)[0x7f01bc88a3ed] /home/hossein/Projects/libreoffice/core/instdir/program/libsofficeapp.so(soffice_main+0x141)[0x7f01c4490527] /home/hossein/Projects/libreoffice/core/instdir/program/soffice.bin(+0x930)[0x5555ef96d930] /home/hossein/Projects/libreoffice/core/instdir/program/soffice.bin(+0x912)[0x5555ef96d912] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f01c4029d90] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f01c4029e40] /home/hossein/Projects/libreoffice/core/instdir/program/soffice.bin(+0x825)[0x5555ef96d825]
Created attachment 188321 [details] gdb backtrace Backtrace created in Linux using gdb, as the problem only happens in Linux.
Bisected to: 9951ffedd6941234447b9655fbc49ed6ca4cc64c is the first bad commit commit 9951ffedd6941234447b9655fbc49ed6ca4cc64c Author: Xisco Fauli <xiscofauli@libreoffice.org> Date: Mon Jun 26 22:16:12 2023 +0200 Revert "tdf#132246, tdf#155735: Add support for SourceAlpha" This reverts commit 75399b8aad6c0f0998b9d0a6eddb2e29f8bc114c. it was incomplete. While at it, do not parse 'in' attribute for now, so only in="SourceGraphic" is used. Implementing the 'in' attribute is not trivial
Strange: I have disabled pre-compiled headers completely, and I no longer see the problem.
(In reply to Hossein from comment #3) > Strange: I have disabled pre-compiled headers completely, and I no longer > see the problem. ok. then do 'make clean && make' and test again. Setting to NEEDINFO meanwhile
(In reply to Xisco Faulí from comment #4) > (In reply to Hossein from comment #3) > > Strange: I have disabled pre-compiled headers completely, and I no longer > > see the problem. > > ok. then do 'make clean && make' and test again. Setting to NEEDINFO > meanwhile I did 'make clean', then enabled PCH, and built again. After that, the problem is still there, and I can not open Help > About. It causes LibreOffice to hang. --enable-debug --enable-odk --without-doxygen --disable-online-update --enable-ccache --with-lang=fa de --enable-python=fully-internal --enable-pch=full
[Automated Action] NeedInfo-To-Unconfirmed
Hi Hossein, Can you confirm that reverting the commit mentioned in comment 3 fixes the issue ?
(In reply to Xisco Faulí from comment #7) > Hi Hossein, > Can you confirm that reverting the commit mentioned in comment 3 fixes the > issue ? I've just did a revert. I can not confirm, because there are "other" symptoms with PCH enabled, and those symptoms do not go away with the revert. I see: malloc(): unsorted double linked list corrupted LO hangs, and after pressing ctrl+c, I see: soffice.bin: /home/hossein/Projects/libreoffice/core/sal/osl/unx/thread.cxx:443: void osl_joinWithThread(oslThread): Assertion `false' failed. I think building 9951ffedd6941234447b9655fbc49ed6ca4cc64c and 1 commit before that is better. I'll do it again.
> I think building 9951ffedd6941234447b9655fbc49ed6ca4cc64c and 1 commit > before that is better. I'll do it again. Result with PCH enabled: 1be3ab048d417611055a76d1776a0a69eb6fc6dd No crash 9951ffedd6941234447b9655fbc49ed6ca4cc64c crash throwing std::bad_cast terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast terminate called recursively Fatal exception: Signal 6
I can open helpabout, and everything seem normal. Version: 7.5.4.2 (X86_64) / LibreOffice Community Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6 CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded
Hi Hossein, is this issue still reproducible in a master build ?
Dear Hossein, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Hossein, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp