Created attachment 57863 [details] test document 1) lsb_release -rd Description: Ubuntu precise (development branch) Release: 12.04 2) apt-cache policy libreoffice-calc libreoffice-calc: Installed: 1:3.5.0-1ubuntu4 Candidate: 1:3.5.0-1ubuntu4 3) What is expected to happen in Calc via the Terminal: cd ~/Desktop && wget -c https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/942005/+attachment/2788084/+files/Tableaux%20OK.ods -O example.ods && localc --nologo example.ods copy ( ctrl + C ) the chart named "Produit de sortie AC" in the first sheet and Calc does not crash. 4) What happens instead is it crashes consistently. Original Reporter Comments: this file comes from Excel and I created charts with Calc.
This is a strange lifetime problem in the shared import/export code and happens somewhere in the process where we move the chart to the copy/paste document. I'm inspecting it a bit more.
Yeah, another problem introduced by the half finished chart cws from Ingrid Halama. SchXMLCell contained a pointer to a uno::Sequence but since the copy constructor of uno::Sequence does only a flat copy you should never create instances with new/delete. Fixed in master and send for review to the ML.
Markus Mohrhard committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=8f2d3c47ad40039a842fa09d98137155dcfdfe9e don't create uno::Sequence with new, fdo#46825
Markus Mohrhard committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=61600b62068bf7837c532c8b32377984ee76af1e&g=libreoffice-3-5 don't create uno::Sequence with new, fdo#46825 It will be available in LibreOffice 3.5.2.
Markus Mohrhard committed a patch related to this issue. It has been pushed to "libreoffice-3-5-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=7f1f734113cc443caa2be4fbe376ab85d09eefac&g=libreoffice-3-5-1 don't create uno::Sequence with new, fdo#46825 It will be available already in LibreOffice 3.5.1.