Bug 84864 - Freeze when deleting sheet from (nearly empty) spreadsheet doc
Summary: Freeze when deleting sheet from (nearly empty) spreadsheet doc
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Spreadsheet (show other bugs)
Version: 4.2.0.4 release
Hardware: All All
: high major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: notBibisectable
Keywords: have-backtrace, regression
Depends on:
Blocks:
 
Reported: 2014-10-10 08:47 UTC by Anton Derbenev
Modified: 2014-12-29 06:55 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
delete 2nd sheet ('БАНК') from that file to get freeze. Doc is mostly empty. (83.50 KB, application/vnd.ms-excel)
2014-10-10 08:47 UTC, Anton Derbenev
Details
OSX backtrace from breaking into the infinite loop (9.86 KB, text/plain)
2014-10-10 16:25 UTC, Matthew Francis
Details

Description Anton Derbenev 2014-10-10 08:47:43 UTC
Created attachment 107652 [details]
delete 2nd sheet ('БАНК') from that file to get freeze. Doc is mostly empty.

Problem description: 

Steps to reproduce:
1. Open attached document
2. Delete second sheet (titled "БАНК")
3. If LO still works, close file (do not save), open it again, and delete that sheet again.

Current behavior:
For me, from 2nd time and on, LO freezes.

Expected behavior:
Sheet deleted successfully.

Note: reproduction in not 100% stable, but of 4 PCs I tested on (32- bit Windowses 7 and 8.1; different users, different preferences; also tried with fresh LO profile) it steadly halts when document is opened second and next time from e-mail attachment (each time it's saved from email to %TEMP% with new name).
If document is re-saved to ods before deleting, it may succeed, or may not. Saving to ods, re-opening and deleting that sheet leads to same freeze.
Comment 1 Matthew Francis 2014-10-10 16:19:54 UTC
Confirmed on OSX / 4.3.2.2 and master

Master shows an unending stream of

warn:legacy.osl:64997:1:sc/source/core/data/document.cxx:3817: Wrong sheet number

Setting to:
-> NEW
-> OS: All
-> Importance: High
Comment 2 Matthew Francis 2014-10-10 16:25:10 UTC
Created attachment 107672 [details]
OSX backtrace from breaking into the infinite loop

Backtrace - from deliberately stopping the infinite loop rather than a crash
Comment 3 Matthew Francis 2014-10-10 16:57:19 UTC
Based on a selection of past releases on OSX:

4.2.5.2: Present
4.2.0.4: Present
4.1.6.2: Not present
4.1.0.4: Not present

Unfortunately I can't reproduce this on Linux, which is going to make bibisecting it challenging if not impossible

Setting Version -> 4.2.0.4 release (earliest known)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.