Bug Hunting Session
Bug 90483 - Calc has a shutdown unexpectedly when copying and pasting from another spreadsheet
Summary: Calc has a shutdown unexpectedly when copying and pasting from another spread...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.1.1 rc
Hardware: Other Windows (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-06 18:52 UTC by Robert Sink
Modified: 2015-06-12 07:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A Work in Process Spreadsheet (158.83 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-04-06 20:05 UTC, Robert Sink
Details
The data to import to the spreadsheet (9.22 KB, text/csv)
2015-04-06 20:06 UTC, Robert Sink
Details
lil screenie of error I get upon pasting [from one file to the next] (12.49 KB, image/png)
2015-04-07 17:03 UTC, Robert Sink
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Sink 2015-04-06 18:52:59 UTC
For my job, I typically dump data to .csv files, then import that data into a spreadsheet with anchored formulas.  Everything worked as expected up through 4.3.6.2, but with newer versions of LibreOffice [tested 4.4.1 & 4.4.2], I've noticed the program always has an unexpected shutdown whenever I try and copy/paste several cells of data.  This unfortunately makes the newer versions of LO Calc unusable to me at my workplace.  The bug may have appeared before 4.4.1, but I have not tested earlier versions.  All I know is the latest and greatest versions coming out touted as stable have this horrific bug.
Comment 1 raal 2015-04-06 19:09:18 UTC
Hello Robert,

Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have not problems with copy/paste in LO 4.4.1.2, win7.
Comment 2 Robert Sink 2015-04-06 20:05:28 UTC
Created attachment 114656 [details]
A Work in Process Spreadsheet

This file is fine by itself... but the data in the firm tab [3rd tab over - at the bottom] needs to be updated with the .csv data from the next attachment..; At which time, LibreOffice force closes or does an unexpected shutdown.
Comment 3 Robert Sink 2015-04-06 20:06:51 UTC
Created attachment 114657 [details]
The data to import to the spreadsheet

This is the data.. pop it open, select it all.. then copy paste it to the ods.  I get a shutdown every time with newer LO Calc versions.
Comment 4 Robert Sink 2015-04-06 20:08:58 UTC
save [link as] the data [2nd file] as csv I suppose, or it might just pop open on you.
Comment 5 raal 2015-04-07 16:35:19 UTC
I can copy, paste data from csv file without crash. I opened csv file in Calc and copied data from Calc.
LO 4.4.1.2, win7.

To be certain the reported issue is not related to corruption in the user profile, could you rename this LibreOffice user directory ( see https://wiki.documentfoundation.org/UserProfile#Default_location or http://ask.libreoffice.org/en/question/903/where-are-the-libreoffice-data-profile-files/ ) and re-test?
Comment 6 Robert Sink 2015-04-07 17:02:16 UTC
re-installed latest and greatest [LO 4.4.2], renamed user directory [to user-old], started LO and went through selecting data from csv and then pasting it to ods.. and again.. immediate shutdown.  I would think its related to this being a xeon machine, but my laptop has the same behavior.
Comment 7 Robert Sink 2015-04-07 17:03:09 UTC
Created attachment 114672 [details]
lil screenie of error I get upon pasting [from one file to the next]
Comment 8 Robert Sink 2015-04-07 17:09:03 UTC
noticed the Windows Task Manager keeps LO in memory even after this screenie.  I manually ended task, and it said Unknown SEH Exception [before ending].  Teach me to be a LO logcat jedi, and I'll run you more detailed error logs.
Comment 9 raal 2015-04-07 17:20:23 UTC
(In reply to Robert Sink from comment #8)
> noticed the Windows Task Manager keeps LO in memory even after this
> screenie.  I manually ended task, and it said Unknown SEH Exception [before
> ending].  Teach me to be a LO logcat jedi, and I'll run you more detailed
> error logs.

Great! Take a look here -  https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg
Comment 10 Robert Sink 2015-04-07 18:11:24 UTC
(180.1b8): C++ EH exception - code e06d7363 (first chance)
ModLoad: 00000000`72570000 00000000`72580000   C:\Windows\SysWOW64\OpenCL.dll
ModLoad: 00000000`192d0000 00000000`1a9e2000   C:\Windows\SysWOW64\amdocl.dll
ModLoad: 00000000`71930000 00000000`71a1b000   C:\Windows\SysWOW64\dbghelp.dll
ModLoad: 00000000`6dd10000 00000000`6dd42000   C:\Windows\SysWOW64\winmm.dll
ModLoad: 00000000`62500000 00000000`6250b000   C:\Windows\SysWOW64\atigktxx.dll
ModLoad: 00000000`08e70000 00000000`091d5000   C:\Windows\SysWOW64\atiumdva.dll
ModLoad: 00000000`07d10000 00000000`07d4d000   C:\Windows\SysWOW64\atiadlxy.dll
ModLoad: 00000000`6e450000 00000000`6e45d000   C:\Windows\SysWOW64\WTSAPI32.dll
(180.1b8): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
00000000 ??              ???
0:000:x86> g
(180.1b8): C++ EH exception - code e06d7363 (first chance)
(180.1b8): C++ EH exception - code e06d7363 (first chance)
ntdll!ZwTerminateProcess+0xa:
00000000`76ee157a c3              ret
Comment 11 Robert Sink 2015-04-07 18:12:40 UTC
hope that's worthwhile.. 1st experience using WinDBG.. but I think I followed the howto correctly.
Comment 12 Robert Sink 2015-04-07 18:28:08 UTC
0:000:x86> !analyze -v
*** WARNING: Unable to verify checksum for C:\Windows\SysWOW64\amdocl.dll
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\SysWOW64\amdocl.dll - 
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify checksum for C:\Windows\SysWOW64\OpenCL.dll
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\SysWOW64\OpenCL.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for opencllo.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for sclo.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for sfxlo.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for tllo.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for vcllo.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for sofficeapp.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Program Files (x86)\LibreOffice 4\program\soffice.bin - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for sal3.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for salhelper3MSC.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for lnglo.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for sysdtrans.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for updchklo.dll - 
GetPageUrlData failed, server returned HTTP status 404
URL requested: http://watson.microsoft.com/StageOne/soffice_bin/4_4_2_2/55144c5f/unknown/0_0_0_0/bbbbbbb4/c0000005/00000000.htm?Retriage=1

FAULTING_IP: 
+7026890
00000000 ??              ???

EXCEPTION_RECORD:  ffffffffffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 0000000000000000
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 0000000000000008
   Parameter[1]: 0000000000000000
Attempt to execute non-executable address 0000000000000000

FAULTING_THREAD:  0000000000001a40

PROCESS_NAME:  soffice.bin

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

EXCEPTION_PARAMETER1:  0000000000000008

EXCEPTION_PARAMETER2:  0000000000000000

WRITE_ADDRESS:  0000000000000000 

FOLLOWUP_IP: 
+7026890
00000000 ??              ???

FAILED_INSTRUCTION_ADDRESS: 
+7026890
00000000 ??              ???

MOD_LIST: <ANALYSIS/>

NTGLOBALFLAG:  0

APPLICATION_VERIFIER_FLAGS:  0

BUGCHECK_STR:  APPLICATION_FAULT_SOFTWARE_NX_FAULT_NULL_ZEROED_STACK

PRIMARY_PROBLEM_CLASS:  SOFTWARE_NX_FAULT_NULL

DEFAULT_BUCKET_ID:  SOFTWARE_NX_FAULT_NULL

STACK_TEXT:  
WARNING: Frame IP not in any known module. Following frames may be wrong.
0172db80 1737f938 09b187b0 00000000 0172dba4 0x0
0172db9c 174ac76f 09b187b0 0172dbb4 09b187b0 amdocl+0x3f938
0172dbbc 174acbfa 09b187b0 00000000 099e7f78 amdocl!clGetSamplerInfo+0x29d4f
0172dbe8 174ae190 0172dc00 00000000 099e7f78 amdocl!clGetSamplerInfo+0x2a1da
0172dc04 174b614a 00000000 00000000 767dcee9 amdocl!clGetSamplerInfo+0x2b770
0172dc2c 174b621a 174a516c 17478300 00000020 amdocl!clGetSamplerInfo+0x3372a
0172dcb0 174a5356 17478300 17487a41 17478310 amdocl!clGetSamplerInfo+0x337fa
0172dcdc 17478321 0172dd10 63271081 00000000 amdocl!clGetSamplerInfo+0x22936
0172dce4 63271081 00000000 00000000 0172dd0c amdocl!clIcdGetPlatformIDsKHR+0x11
0172dd10 63273f37 0172dd28 12d8dfa4 102c961c OpenCL+0x1081
0172e13c 63271219 102c961c 0172e190 511508b9 OpenCL!clGetExtensionFunctionAddress+0x8b7
0172e148 511508b9 00000000 00000000 0172e180 OpenCL!clGetPlatformIDs+0x9
0172e190 51151bb8 04886476 12d8dfa4 102c961c opencllo!opencl::fillOpenCLInfo+0xa9
0172e20c 0f6e1ccb 102c961c 00000001 00000000 opencllo!opencl::switchOpenCLDevice+0x38
0172e23c 0f6e07e7 102c961c 00000001 00000000 sclo!sc::FormulaGroupInterpreter::switchOpenCLDevice+0xdb
0172e26c 0f5ea456 048864ad 12d8df88 05286520 sclo!sc::FormulaGroupInterpreter::getStatic+0x87
0172e2c8 0f5e9f07 00000005 12d8df88 12ee77cc sclo!ScFormulaCell::InterpretFormulaGroup+0x106
0172e324 0f5eb64f 12ee77c8 0f45634f 12f1ede4 sclo!ScFormulaCell::Interpret+0x157
0172e34c 0f456df3 0172e39c 12dd5390 0172e414 sclo!ScFormulaCell::IsMultilineResult+0x3f
0172e454 0f45716e 0172e478 12dd5390 00000005 sclo!ScRefCellValue::swap+0x3c743
0172e49c 0f472452 0172e528 12dd5390 00000005 sclo!ScRefCellValue::swap+0x3cabe
0172e578 0f48e881 00000005 00000005 0172e600 sclo!ScCompiler::GetPos+0x2e2
0172e668 0f62a6c0 0172e744 00000005 01000078 sclo!ScConditionEntry::GetOperation+0x8d1
0172e69c 0f62b899 0172e744 12dd4e60 00000005 sclo!ScSubTotalParam::SetSubTotals+0x3a00
0172e6fc 0f5312ef 0172e744 00000005 00000078 sclo!ScSubTotalParam::SetSubTotals+0x4bd9
0172e71c 0fc7ae4c 0172e744 00000005 00000078 sclo!ScDocument::SetOptimalHeight+0x3f
0172e7e0 0fc85369 00000001 00000000 04886ded sclo!ScViewData::WriteUserDataSequence+0x376c
0172eb88 0fbcca12 123908ff 12e047b0 00000000 sclo!ScViewFunc::PasteFromClip+0x1389
0172ebf8 0fbbdebf 123908ff 12390048 00000001 sclo!ScTokenConversion::ConvertToTokenSequence+0x2a2f2
0172f698 0fbb800e 0172f854 0172f6f4 53a2788d sclo!ScTokenConversion::ConvertToTokenSequence+0x1b79f
0172f6a4 53a2788d 12d78330 0172f854 05de5c2c sclo!ScTokenConversion::ConvertToTokenSequence+0x158ee
0172f6f4 53a2b2db 12d78330 0001d800 0172f854 sfxlo!SfxDispatcher::Call_Impl+0x24d
0172f728 53a1d3a4 12d78330 102b9690 0172f854 sfxlo!SfxDispatcher::_Execute+0x6b
0172f784 53a6244f 0172f854 102b9690 12d78330 sfxlo!SfxBindings::Execute_Impl+0x2e4
0172f8b0 53a628ad 0543a0b8 057becd0 0172f930 sfxlo!ThumbnailView::updateItems+0x6dcf
0172f8f4 53a1fa9f 00000000 057becd0 0172f930 sfxlo!ThumbnailView::updateItems+0x722d
0172f940 53a1e55e 057bed00 0172f95c 602f4781 sfxlo!SfxBindings::StartUpdate_Impl+0xcf
0172f94c 602f4781 057becd0 057bed00 0172f984 sfxlo!SfxBindings::LinkStubNextJob_Impl+0x1e
0172f95c 55d46d7a 057bed00 55d469f3 002207b0 tllo!Link::Call+0x11
0172f984 55dbc54a 00000000 00000000 55dba7da vcllo!Timer::Timeout+0xa
0172f9bc 55dba8e0 0003092e 000004a2 00000000 vcllo!vcl::OpenTTFontBuffer+0x1946a
0172fa08 765062fa 0003092e 000004a2 00000000 vcllo!vcl::OpenTTFontBuffer+0x17800
0172fa34 76506d3a 55dba880 0003092e 000004a2 USER32!InternalCallWinProc+0x23
0172faac 765077c4 00000000 55dba880 0003092e USER32!UserCallWinProcCheckWow+0x109
0172fb0c 7650788a 55dba880 00000000 0172fb50 USER32!DispatchMessageWorker+0x3bc
0172fb1c 55dba2b4 0172fb34 002230d8 00000001 USER32!DispatchMessageW+0xf
0172fb50 55dbab43 00223001 00000000 56071720 vcllo!vcl::OpenTTFontBuffer+0x171d4
0172fb74 55d3e4a9 00223001 00000000 04ffc0f4 vcllo!vcl::OpenTTFontBuffer+0x17a63
0172fd1c 55d44c74 00000000 00000001 55d45029 vcllo!Application::Execute+0x69
0172fd34 632bc2f0 05de5748 001d3663 632f3378 vcllo!DeInitVCL+0x634
0172fd8c 00b5101e 001d3663 00b512af 00b50000 sofficeapp!soffice_main+0x80
0172fde0 766a338a 7efde000 0172fe2c 770a9f72 soffice+0x101e
0172fdec 770a9f72 7efde000 77465660 00000000 KERNEL32!BaseThreadInitThunk+0xe
0172fe2c 770a9f45 00b51183 7efde000 00000000 ntdll_77070000!__RtlUserThreadStart+0x70
0172fe44 00000000 00b51183 7efde000 00000000 ntdll_77070000!_RtlUserThreadStart+0x1b


SYMBOL_NAME:  ANALYSIS_INCONCLUSIVE

FOLLOWUP_NAME:  MachineOwner

IMAGE_NAME:  Unknown_Image

DEBUG_FLR_IMAGE_TIMESTAMP:  0

STACK_COMMAND:  ~0s ; kb

FAILURE_BUCKET_ID:  SOFTWARE_NX_FAULT_NULL_c0000005_Unknown_Image!Unloaded

BUCKET_ID:  X64_APPLICATION_FAULT_SOFTWARE_NX_FAULT_NULL_ZEROED_STACK_NULL_IP_ANALYSIS_INCONCLUSIVE

MODULE_NAME: ANALYSIS_INCONCLUSIVE

WATSON_STAGEONE_URL:  http://watson.microsoft.com/StageOne/soffice_bin/4_4_2_2/55144c5f/unknown/0_0_0_0/bbbbbbb4/c0000005/00000000.htm?Retriage=1

Followup: MachineOwner
---------
Comment 13 Robert Sink 2015-04-07 18:32:50 UTC
lemme know if you want me to procdump it and run it through as well.
Comment 14 Robert Sink 2015-04-07 19:00:23 UTC
for giggles I tried procdump.. keep getting 
Dump count not reached.
for this particular crash; so, I'd need to brush up on the command line flags to try and force something I suppose.  Anyway, I tried.
Comment 15 Robert Sink 2015-04-07 19:06:39 UTC
perhaps instead of the -h flag, I should try -t64; as, it's a 64 bit process and we want to capture termination error...
Comment 16 Robert Sink 2015-04-07 19:08:12 UTC
hmmm.. welp.. other procdump files write immediately and don't give me time to reproduce error.. I'll chalk this up to my greenness with procdump [and windows debugging in general].
Comment 17 Matthew Francis 2015-04-24 15:55:07 UTC
Backtrace suggests that this is OpenCL related - linking another bug for "amdocl" (bug 89844)
Comment 18 Robert Sink 2015-06-10 16:08:43 UTC
just to follow up.  An update to my video card drivers fixed the issue. :)  Thanks for looking at it with me.