| Summary: | Crash in: (anonymous namespace)::XFrameImpl::implts_sendFrameActionEvent(com::sun::star::frame::FrameAction const&) | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | guillaume.kobena |
| Component: | BASIC | Assignee: | Matt K <mattkse> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | ilmari.lauhakangas |
| Priority: | high | Keywords: | haveBacktrace |
| Version: | 4.1.0.4 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | target:24.2.0 | ||
| Crash report or crash signature: | ["(anonymous namespace)::XFrameImpl::implts_sendFrameActionEvent(com::sun::star::frame::FrameAction const&)"] | Regression By: | |
| Attachments: |
GDB trace of crash
Example file with macro |
||
|
Description
guillaume.kobena
2023-08-07 07:45:26 UTC
I begin in running the subroutine StartFrameActionListener. Then, as soon as I set focus on the component frame, LO crashes. Created attachment 189741 [details] GDB trace of crash For me it crashes when I focus back to the macro editor after running the macro through Tools. Arch Linux 64-bit, X11 Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 899522378bfb754af757c1a4a0f6bce699ac8721 CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 21 September 2023 Repro already in oldest of Linux 41max bibisect repo. Created attachment 189742 [details]
Example file with macro
The problem is that createUnoListener doesn't return anything. You should check existence of the return value before adding it as a listener. That said, the LO code shouldn't allow an empty listener. Code fix for that coming shortly. Fix is posted at https://gerrit.libreoffice.org/c/core/+/159978 Matt K committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/61308112435628177b7884ab833ece843d37cd28 tdf#156648 Prevent LO from adding an empty event listener It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |