[Upstream] Libreoffice-calc crashes when trying to copy a chart

Bug #942005 reported by Pierre-Olivier Megret
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Critical
libreoffice (Ubuntu)
Fix Released
Medium
Björn Michaelsen

Bug Description

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
  Version table:
 *** 1:3.5.0-1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

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.

Revision history for this message
Pierre-Olivier Megret (sorrodje) wrote :
Revision history for this message
Pierre-Olivier Megret (sorrodje) wrote :

I forgot all informations:

I'm on Precise 12.04 AMD 64 . All upgrades done . LO 3.5 .

I'm ready to give all information you need.

penalvch (penalvch)
tags: added: precise regression-release
penalvch (penalvch)
description: updated
Revision history for this message
penalvch (penalvch) wrote :

Pierre-Olivier Megret, the issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at http://wiki.documentfoundation.org/BugReport . If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
tags: added: amd64 i386
Changed in df-libreoffice:
status: New → Incomplete
Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

Created attachment 57863
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.

Changed in df-libreoffice:
importance: Undecided → Unknown
status: Incomplete → Unknown
penalvch (penalvch)
summary: - Libreoffice-calc crashes when trying to copy a chart
+ [Upstream] Libreoffice-calc crashes when trying to copy a chart
Revision history for this message
In , Markus Mohrhard (moggi) wrote :

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.

Revision history for this message
In , Markus Mohrhard (moggi) wrote :

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.

Revision history for this message
In , Libreoffice-bugs (libreoffice-bugs) wrote :

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

Revision history for this message
In , Libreoffice-bugs (libreoffice-bugs) wrote :

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.

Revision history for this message
In , Libreoffice-bugs (libreoffice-bugs) wrote :

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.

Changed in df-libreoffice:
importance: Unknown → Critical
status: Unknown → Fix Released
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in libreoffice (Ubuntu):
assignee: nobody → Björn Michaelsen (bjoern-michaelsen)
milestone: none → ubuntu-12.04
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.