https://bugs.freedesktop.org/show_bug.cgi?id=42714

             Bug #: 42714
           Summary: [EDITING] report builder: copy/paste of control ->
                    segfault
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.4.3 release
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: UNCONFIRMED
          Severity: major
          Priority: medium
         Component: Database
        AssignedTo: [email protected]
        ReportedBy: [email protected]
            Blocks: 35673


Reproduced with libreoffice 3.4.3 (Debian package), libreoffice 3.4.4-rc
(self-built of libreoffice-3-4 branch) and master (self-built).

Edit a report. Cut (or copy) a control, e.g. a label. Paste it. Segfault.


Messages on stderr (master, debug build):


** (soffice:5871): WARNING **: Execute command: 'getPropertySetInfo' with NO
interaction env

** (soffice:5871): WARNING **: QueryContent: ''

** (soffice:5871): WARNING **: New Content ('')

(several times)

Error: No Service Name given! From File
/home/master/src/libreoffice/core/reportdesign/source/core/sdr/ReportDrawPage.cxx
at Line 82
Error: No Service Name given! From File
/home/master/src/libreoffice/core/reportdesign/source/core/sdr/ReportDrawPage.cxx
at Line 82
Error: ::comphelper::copyProperties: could not copy property 'CustomShapeData'
to the destination set (a 'com.sun.star.comp.report.Shape' implementation).
Caught an exception of type 'com.sun.star.lang.WrappedTargetException', saying
'non-RuntimeException occurred when accessing an interface type attribute'.
>From File
/home/master/src/libreoffice/core/comphelper/source/property/property.cxx at
Line 139
Error: ::comphelper::copyProperties: could not copy property
'CustomShapeEngine' to the destination set (a 'com.sun.star.comp.report.Shape'
implementation).
Caught an exception of type 'com.sun.star.lang.WrappedTargetException', saying
'non-RuntimeException occurred when accessing an interface type attribute'.
>From File
/home/master/src/libreoffice/core/comphelper/source/property/property.cxx at
Line 139
Error: ::comphelper::copyProperties: could not copy property
'CustomShapeGeometry' to the destination set (a
'com.sun.star.comp.report.Shape' implementation).
Caught an exception of type 'com.sun.star.lang.WrappedTargetException', saying
'non-RuntimeException occurred when accessing an interface type attribute'.
>From File
/home/master/src/libreoffice/core/comphelper/source/property/property.cxx at
Line 139
Error: OUnoObject::StartListening: already listening! From File
/home/master/src/libreoffice/core/reportdesign/source/core/sdr/RptObject.cxx at
Line 366


Running in gdb gives weird result:


Program received signal SIGSEGV, Segmentation fault.
0x00007fffc77d15f0 in vtable for rptui::OPropertyMediator ()
   from
/home/master/src/libreoffice/core/solver/unxlngx6/installation/opt/program/../program/librptlo.so
(gdb) list
24     * <http://www.openoffice.org/license.html>
25     * for a copy of the LGPLv3 License.
26     *
27    
************************************************************************/
28    
29    #include "sal/main.h"
30    
31    #include "sofficemain.h"
32    
33    SAL_IMPLEMENT_MAIN() {
(gdb) bt
#0  0x00007fffc77d15f0 in vtable for rptui::OPropertyMediator ()
   from
/home/master/src/libreoffice/core/solver/unxlngx6/installation/opt/program/../program/librptlo.so
#1  0x00007fffd7e9acdd in SdrHint::SdrHint (this=0x7fffffffa460, rNewObj=...)
    at /home/master/src/libreoffice/core/svx/source/svdraw/svdmodel.cxx:2133
#2  0x00007fffd7f466aa in SdrObjList::InsertObject (this=0x228fe10,
pObj=0x2909800, nPos=18446744073709551615, pReason=0x7fffffffa540)
    at /home/master/src/libreoffice/core/svx/source/svdraw/svdpage.cxx:405
#3  0x00007fffc6738fc5 in rptui::OReportSection::Paste (this=0x22fe778,
_aAllreadyCopiedObjects=uno::Sequence of length 1 = {...}, _bForce=true)
    at
/home/master/src/libreoffice/core/reportdesign/source/ui/report/ReportSection.cxx:283
#4  0x00007fffc674cbb9 in rptui::OViewsWindow::Paste (this=0x22a97d8)
    at
/home/master/src/libreoffice/core/reportdesign/source/ui/report/ViewsWindow.cxx:425
#5  0x00007fffc6741288 in rptui::OReportWindow::Paste (this=0x22a90f8)
    at
/home/master/src/libreoffice/core/reportdesign/source/ui/report/ReportWindow.cxx:288
#6  0x00007fffc674311e in rptui::OScrollWindowHelper::Paste (this=0x22a86e8)
    at
/home/master/src/libreoffice/core/reportdesign/source/ui/report/ScrollHelper.cxx:258
#7  0x00007fffc66f0708 in rptui::ODesignView::Paste (this=0x22a7f70)
    at
/home/master/src/libreoffice/core/reportdesign/source/ui/report/DesignView.cxx:407
#8  0x00007fffc6728ce2 in std::mem_fun_t<void, rptui::ODesignView>::operator()
(this=0x7fffffffcc20, __p=0x22a7f70)
    at /usr/include/c++/4.6/bits/stl_function.h:551
#9  0x00007fffc6714789 in rptui::OReportController::executeMethodWithUndo
(this=0x2332680, _nUndoStrId=30789, _pMemfun=...)
    at
/home/master/src/libreoffice/core/reportdesign/source/ui/report/ReportController.cxx:2606
#10 0x00007fffc670a1c1 in rptui::OReportController::Execute (this=0x2332680,
_nId=5712, aArgs=empty uno::Sequence)
    at
/home/master/src/libreoffice/core/reportdesign/source/ui/report/ReportController.cxx:1064
--------------> snip
(gdb) up
#1  0x00007fffd7e9acdd in SdrHint::SdrHint (this=0x7fffffffa460, rNewObj=...)
    at /home/master/src/libreoffice/core/svx/source/svdraw/svdmodel.cxx:2133
2133        maRectangle = rNewObj.GetLastBoundRect();
(gdb) list
2128    :   mpPage(rNewObj.GetPage()),
2129        mpObj(&rNewObj),
2130        mpObjList(rNewObj.GetObjList()),
2131        meHint(HINT_OBJCHG)
2132    {
2133        maRectangle = rNewObj.GetLastBoundRect();
2134    }
2135    
2136    SdrHint::SdrHint(const SdrObject& rNewObj, const Rectangle& rRect)
2137    :   mpPage(rNewObj.GetPage()),


I run a second time with a breakpoint on svdmodel.cxx:2133


Breakpoint 1, SdrHint::SdrHint (this=0x7fffffffa440, rNewObj=...) at
/home/master/src/libreoffice/core/svx/source/svdraw/svdmodel.cxx:2133
2133        maRectangle = rNewObj.GetLastBoundRect();

(gdb) s

Program received signal SIGSEGV, Segmentation fault.
0x000000000168cd28 in ?? ()
(gdb) bt
#0  0x000000000168cd28 in ?? ()
#1  0x00007fffd2f50cdd in SdrHint::SdrHint (this=0x7fffffffa440, rNewObj=...)
    at /home/master/src/libreoffice/core/svx/source/svdraw/svdmodel.cxx:2133
-----------------> snip

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to