Bug 44129 - programming error removing Writer document header? (DEBUG build crash)
Summary: programming error removing Writer document header? (DEBUG build crash)
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 Beta2
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-24 14:39 UTC by Kevin Hunter
Modified: 2012-08-05 19:07 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Hunter 2011-12-24 14:39:09 UTC
I'm afraid I don't have access to an earlier build than LO 3.5.0 beta2, but the behavior is an assertion (it's a debug build) in:

SwIndexReg::~SwIndexReg()
{
    assert(!m_pFirst && !m_pLast); // There are still indices registered
}

Steps to reproduce:

1. Open LO.
2. Open a new Writer Document
3. Insert a header via Insert -> Header -> Default
4. Immediately click the down arrow on the blue "Header (Default)"
   tag and select "Delete Header"
5. Click "Yes" to the "Do you want to delete this text?" dialog box.

LO crashes, apparently due to the assert at sw/source/core/bastyp/index.cxx:236 with this on the console:

-----
soffice.bin: /home/kevin/devel/libreoffice/sw/source/core/bastyp/index.cxx:236: virtual SwIndexReg::~SwIndexReg(): Assertion `!m_pFirst && !m_pLast' failed.
-----

Given that it's "only" an assert it may not be an issue for the upcoming release, but here's at least a howto for recreating it.
Comment 1 Kevin Hunter 2011-12-24 14:40:09 UTC
Recreated with

$ git branch; git log -1 --format=oneline
* libreoffice-3-5
  master 7dfc54c7337f77be8e258a218df741c330904f73 support libebook-1.2.so.12 (evolution 3.2)
Comment 2 Rafael Dominguez 2012-08-05 19:07:12 UTC
Tested on linux libreoffice 3.5.4 and current master and i cant reproduce it, so ill mark it as fixed.

Thanks for the report