https://bugs.documentfoundation.org/show_bug.cgi?id=105077

            Bug ID: 105077
           Summary: assertion in SwRegHistory::InsertItems
           Product: LibreOffice
           Version: 5.4.0.0.alpha0+ Master
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
This happened to me as I was trying to reproduce tdf#104920 "Clone
Formatting in Writer Does Not Properly Copy Attributes Sometimes".
Perhaps both bugs come from one cause.

STR
---

(0) Download "Example 1.odt" attached to tdf#104920.

(1) Open "Example 1.odt" from the command line.  Caret is before the
    bullet on the first line

(2) "<right><right><right>".  Caret is after "I".

(3) "<alt>+O C".  Mouse cursor is paint can.

(4) Drag mouse cursor throught the text of second bullet point ("This
    text ... this line.").  The selection is reverse image.

(5) Release mouse button.  Program crashes with error message in
    terminal :

        soffice.bin:
/home/terry/lo_hacking/git/libo6/sw/source/core/undo/rolbck.cxx:1328: bool
SwRegHistory::InsertItems(const SfxItemSet&, sal_Int32, sal_Int32,
SetAttrMode): Assertion `std::find_if( m_pHistory->m_SwpHstry.begin(),
m_pHistory->m_SwpHstry.end(), [nExpected](SwHistoryHint *const pHint) -> bool {
SwHistoryResetText const*const pReset( dynamic_cast<SwHistoryResetText
const*>(pHint)); return pReset && (pReset->GetWhich() == nExpected); }) !=
m_pHistory->m_SwpHstry.end()' failed.


The backtrace is from local build of commit ae18926c, configured ...
    CC=ccache /usr/bin/gcc
    CXX=ccache /usr/bin/g++
    --enable-option-checking=fatal
    --enable-dbgutil
    --enable-debug
    --without-system-postgresql
    --without-myspell-dicts
    --with-extra-buildid
    --without-doxygen
    --with-external-tar=/home/terry/lo_hacking/git/src
    --without-package-format
built and executed on debian-stretch.


Working in the daily Linux dbgutil bibisect repository, I see that
crash came into LibreOffice on the same day as the menu option Format
> "Clone Formatting", the 86 commits :

          commit    s-h       date
          --------  --------  -------------------
    good  d0d39f17  27ae0020  2016-05-31 01:14:40
    bad   dc618681  cbf36dd4  2016-06-01 00:31:23


I am setting keyword haveBacktrace, and see also tdf#104920.


Steps to Reproduce:
See above

Actual Results:  
Crash.

Expected Results:
I do not know.  This is not a feature that I normally use.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Firefox/45.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to