Bug 76008 - out_of_range exception from: copy formula, paste, delete
Summary: out_of_range exception from: copy formula, paste, delete
Status: RESOLVED DUPLICATE of bug 76470
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) Master
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Keywords: haveBacktrace
Depends on:
Reported: 2014-03-11 04:09 UTC by Terrence Enger
Modified: 2014-04-18 15:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

typescript (46.64 KB, text/plain)
2014-03-11 04:14 UTC, Terrence Enger

Note You need to log in before you can comment on or make changes to this bug.
Description Terrence Enger 2014-03-11 04:09:54 UTC
To reproduce:

(1) Download Calc-Bad-Math-Example.ods attached to bug 75987, and open
    it from the command line.

(2) Click on cell E14 and type <ctrl>+C.  The program places a
    flashing border around cell F14 and the formula bar shows

(3) Type <right-arrow> <ctrl>+V.  Cell F14 shows 80.50 and the formula
    bar shows "=(E14-D14)*24.

(4) Type <ctrl>+Z.  SIGABRT.

My LibreOffice is master commit 806f4d8, fetched 2014-03-04, configured:
built and running on debian-wheezy 64-bit.
Comment 1 Terrence Enger 2014-03-11 04:14:36 UTC
Created attachment 95568 [details]

line   4 : a longer series of steps.  Ignore
line 201 : execution of the given STR.
line 211 : error message
line 298 : backtrace from the core file
line 419 : breakpoints on catch and throw starting from the undo
line 569 : backtrace from the last throw
line 626 : error message
Comment 2 Terrence Enger 2014-03-15 00:09:23 UTC
*** Bug 76148 has been marked as a duplicate of this bug. ***
Comment 3 Terrence Enger 2014-03-15 00:45:49 UTC
*** Bug 76149 has been marked as a duplicate of this bug. ***
Comment 4 Terrence Enger 2014-03-21 23:38:28 UTC
I should have mentioned that the terminal output says:

    terminate called after throwing an instance of 'std::out_of_range'
      what():  vector::_M_range_check
    Application Error
    Fatal exception: Signal 6
Comment 5 Laurent Balland 2014-03-22 09:37:58 UTC

Cannot reproduce on Win 7 with
Build ID: 9278df2c21fed09b6b10465ca33b227ad7c49b41
TinderBox: Win-x86@47-TDF, Branch:MASTER, Time: 2014-03-19_08:44:54

Build ID: 3d4fc3d9dbf8f4c0aeb61498a81f91c5b7922f13

Build ID: 63950ec72806489b41c2109f5c3840dcf22f4c6c

Could you check with a fresh profile?

However I can reproduce bug 76148 which is similar for me as bug 76470.
That's why I set this bug as NEEDINFO and change duplicate bug # of bug 76148

Feel free to change status if you think I made a mistake.
Comment 6 Terrence Enger 2014-03-22 16:01:06 UTC
The problem persists with a fresh user profile.

The different behaviour of LO on Win7, this bug vs. 76148, suggests
that this bug is not a dup of that, does it not?  I am setting status
back to NEW.  I notice that Kohei has just commited a patch for
bug 76470.  It will be interesting to see if it changes the behaviour
reported in this bug.

If, instead of <ctrl>+Z in step 4, I type <Delete>, LibreOffice
terminates with the same exception and the same backtrace.  So, in
summary I am changing "undo" to "delete".  By contrast, if I replace
copy-and-paste by typing in the formula, my LibreOffice has no problem
with the <Delete>.
Comment 7 Terrence Enger 2014-03-24 12:37:26 UTC
The crash has gone away between commit 924635e (fetched 2014-03-22
01:18 UTC) and commit 8931ab3 (fetched 2014-03-23 02:37 UTC).  That
range includes commit c78d1bb "fdo#76470: Avoid joining new formula
cells individually.".  I am resolving this bug as a duplicate of bug

*** This bug has been marked as a duplicate of bug 76470 ***
Comment 8 Terrence Enger 2014-04-18 15:12:11 UTC
The coincidental appearance of _M_range_check is uninteresting.  So I am removing see-also 76470 and 76148.