Copy and paste to a new document causes a segmentation fault
Bug #184569 reported by
Danny Staple
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tcm (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: tcm
While attempting to get more information for #184567, I tried to determine the behaviour of copying, creating a new document in the same instance (and thus closing the original document), then pasting in this new document.
This immediately causes a segmentation fault.
No core dump file or apport file is left behind currently and there is no debug package available so no backtrace yet, but I am able to reproduce this 100%.
To post a comment you must log in.
Ran in gdb for getting backtrace for this:
Program received signal SIGSEGV, Segmentation fault. :SnapPosition (this=0x84e6430) at gshape.c:174 :SetPosition (this=0x84e6430, pos=0x84e64c8, :GetShapesCopy (this=0x83896e0) at buffer.c:82 :Paste (this=0x83534f8) at diagramviewer.c:515 :PasteCB (cd=0x83534f8) at diagramstubs.c:100
0x0814f25d in ShapeView::Snap (this=0x84d9a00, i=290) at shapeview.c:73
73 int ShapeView::Snap(int i) {return viewer->Snap(i);}
(gdb) bt
#0 0x0814f25d in ShapeView::Snap (this=0x84d9a00, i=290) at shapeview.c:73
#1 0x0814e91d in Shape::SnapPosition (this=0x84e6430) at shape.c:207
#2 0x08136ecc in GShape:
#3 0x0814d915 in Shape::SetPosition (this=0x84e6430, pos=0x84e64c8, snap=true)
at shape.c:165
#4 0x08143127 in NodeShape:
snap=true) at nodeshape.c:489
#5 0x0814607f in NodeShape (this=0x84e6430, c=@0x84e8078, st=0x0)
at nodeshape.c:69
#6 0x08074714 in Box (this=0x84e6430) at box.h:28
#7 0x08074748 in Box::Clone (this=0x84e8078) at box.h:38
#8 0x08152880 in Shapes::CloneShape (this=0x84e5438, s=0x84e8078)
at shapes.c:48
#9 0x08152984 in Shapes (this=0x84e5438, shapes=@0x84e53b8) at shapes.c:37
#10 0x081753d7 in Buffer:
#11 0x08148806 in PasteShapesCmd (this=0x84e65e8, v=0x845aa60)
at pasteshapescmd.c:43
#12 0x0811efab in DiagramViewer:
#13 0x0811c34c in DiagramStubs:
#14 0xb7def40b in XtCallCallbackList () from /usr/lib/libXt.so.6
#15 0xb7ed66e2 in ?? () from /usr/lib/libXm.so.2
#16 0x084b13d0 in ?? ()
#17 0x084b17d0 in ?? ()
---Type <return> to continue, or q <return> to quit---
#18 0xbf995acc in ?? ()
#19 0x00000000 in ?? ()