Created attachment 137251 [details]
File with embedded macro
Open attached document. It contains a macro. Open Basic IDE and go to that macro.
Set the cursor at the start of a line, e.g. at start of line#14. Press Enter key. LibreOffice crashes.
Same in LO 5.4 does not crash.
This seems to have begun at the below commit.
Adding Cc: to Julien Nabet ; Could you possibly take a look at this one?
cfd5792e4e7972f234d2c79517d8b5c6f5c13067 is the first bad commit
Author: Jenkins Build User <firstname.lastname@example.org>
Date: Thu Sep 28 14:50:35 2017 +0200
author Julien Nabet <email@example.com> 2017-09-27 22:18:05 (GMT)
committer Michael Stahl <firstname.lastname@example.org> 2017-09-28 11:10:58 (GMT)
commit 19910c461230f70bb9e98ad44db3525f0d755724 (patch)
parent 4fca2ef76a6dfe6c74ada71ab4806dc4ad568b82 (diff)
tdf#112658: fix leak when calling TextEngine::SetAttrib
Created attachment 137263 [details]
bt with debug symbols
On pc Debian x86-64 with master sources updated today, I could reproduce this.
Indeed when reverting the quoted commit, I don't reproduce the crash.
I submitted this patch to review on gerrit:
Thank you Raal for having pinpointed the faulty commit and having pinged me! :-)
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":
tdf#113400: fix crash by destroying returned unique_ptr
It will be available in 6.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Don't hesitate to reopen this tracker if it still crashes for you with a build including the commit https://cgit.freedesktop.org/libreoffice/core/commit/?id=f49ba490a566225d2c6b3925cfe39756a01625ba