Created attachment 108374 [details] gdb backtrace / strace.log / hs_err_pid.log / +2 files in order to reproduce the crash LibreOffice Version: 4.2.6.3 Build ID: 420m0(Build:3) Ubuntu 14.04 The crash is easily reproductible. In the attached files, you find the code of the macro. Its execution leads to a crash on almost ( but not all ) documents. I also include the document with which I got the backtrace and the strace log files.
Oswald: on which Linux distrib are you? Could you give a try to last stable LO version 4.3.2?
Created attachment 108534 [details] the macro I run
Created attachment 108535 [details] gdb backtrace log
Created attachment 108537 [details] LO document in which I run the macro
Version: 4.3.2.2 Build ID: edfb5295ba211bd31ad47d0bad0118690f76407d Still crashes with LO version 4.3.2
Thank you for your feedback. I put it at NEW since there's a feedback.
Re reading my last comment, I meant I put it at NEW since there's a stacktrace.
Bibisect result from 43all: 89740762f0af849e492932bd71e59149cdcd5a00 is the first bad commit commit 89740762f0af849e492932bd71e59149cdcd5a00 Author: Bjoern Michaelsen <bjoern.michaelsen@canonical.com> Date: Mon Dec 10 01:57:45 2012 +0000 source-hash-06f20d73da21342046a480a6b22af69901351328 commit 06f20d73da21342046a480a6b22af69901351328 Author: Stephan Bergmann <sbergman@redhat.com> AuthorDate: Fri Jul 20 11:10:05 2012 +0200 Commit: Stephan Bergmann <sbergman@redhat.com> CommitDate: Fri Jul 20 11:10:05 2012 +0200
Created attachment 114535 [details] bt with debug symbols (master sources) the bt is equivalent to the previous one but with more information (since debug build)
In fact, comment 8 is wrong - it is harder to reproduce before that point, but running the macro twice still ends in a crash with what appears to be the same backtrace. Testing on release versions suggests the issue was introduced between 3.4 and 3.5.0
there's a SwPaM on the stack, then the node its SwIndex points to is deleted but the SwPam is still used later - good thing we added the assert there. fixed on master
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=847b4537928ff64cfdd6532704f7c48d947ac00f tdf#85424: sw: fix ~SwIndexReg assert in SwXText::insertControlCharacter() It will be available in 5.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: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-4-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1a2a094795e10f514eb421e68bbd705ea5251b76&h=libreoffice-4-4 tdf#85424: sw: fix ~SwIndexReg assert in SwXText::insertControlCharacter() It will be available in 4.4.4. 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: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (preBibisect) [NinjaEdit]