https://bugs.documentfoundation.org/show_bug.cgi?id=93423

            Bug ID: 93423
           Summary: Memory leak in SbMethod::Broadcast
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

As described in
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=6b4c596b01039324cfe78f38c4e3ffb9080bcd34>
"Fix memory leak for BASIC sub (as well as void function)" there are memory
leaks (as reported by lsan) when running CppunitTest_basic_vba.

However, that supposed fix turned out to cause regression bug 92446 and was
thus reverted with
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=9d094b9f0a05d2ea62181201efb8f9e46ecfc8f1>
"tdf#92446: Revert apparently bogus attempt at fixing a memory leak."

So the memory leaks are back on current master (towards libreoffice-5-1) and
await a proper fix:

> Indirect leak of 6336 byte(s) in 36 object(s) allocated from:
>  #0 0x4f2cc0 in operator new(unsigned long) 
> /home/sbergman/clang/trunk/src/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
>  #1 0x2b39ad21bf31 in SbMethod::Broadcast(unsigned int) 
> basic/source/classes/sbxmod.cxx:2138:31
>  #2 0x2b39ad99604c in SbxValue::SbxValue(SbxValue const&) 
> basic/source/sbx/sbxvalue.cxx:100:9
>  #3 0x2b39ad9e14dc in SbxVariable::SbxVariable(SbxVariable const&) 
> basic/source/sbx/sbxvar.cxx:75:7
>  #4 0x2b39ad9518ed in SbxMethod::SbxMethod(SbxMethod const&) 
> basic/source/sbx/sbxobj.cxx:884:7
>  #5 0x2b39ad6743e9 in SbiRuntime::FindElement(SbxObject*, unsigned int, 
> unsigned int, unsigned long, bool, bool) 
> basic/source/runtime/runtime.cxx:3569:37
>  #6 0x2b39ad67de6d in SbiRuntime::StepFIND_Impl(SbxObject*, unsigned int, 
> unsigned int, unsigned long, bool, bool) 
> basic/source/runtime/runtime.cxx:4001:14
>  #7 0x2b39ad61eb92 in SbiRuntime::StepFIND(unsigned int, unsigned int) 
> basic/source/runtime/runtime.cxx:4007:5
>  #8 0x2b39ad643fa5 in SbiRuntime::Step() 
> basic/source/runtime/runtime.cxx:785:13
>  #9 0x2b39ad1ec019 in SbModule::Run(SbMethod*) 
> basic/source/classes/sbxmod.cxx:1176:20
>  #10 0x2b39ad1e6a96 in SbModule::Notify(SfxBroadcaster&, SfxHint const&) 
> basic/source/classes/sbxmod.cxx:843:21
>  #11 0x2b399b30fac1 in SfxBroadcaster::Broadcast(SfxHint const&) 
> svl/source/notify/SfxBroadcaster.cxx:51:13
>  #12 0x2b39ad21cd51 in SbMethod::Broadcast(unsigned int) 
> basic/source/classes/sbxmod.cxx:2155:9
>  #13 0x2b39ad99604c in SbxValue::SbxValue(SbxValue const&) 
> basic/source/sbx/sbxvalue.cxx:100:9
>  #14 0x2b39ad9e14dc in SbxVariable::SbxVariable(SbxVariable const&) 
> basic/source/sbx/sbxvar.cxx:75:7
>  #15 0x2b39ad9518ed in SbxMethod::SbxMethod(SbxMethod const&) 
> basic/source/sbx/sbxobj.cxx:884:7
>  #16 0x2b39ad6743e9 in SbiRuntime::FindElement(SbxObject*, unsigned int, 
> unsigned int, unsigned long, bool, bool) 
> basic/source/runtime/runtime.cxx:3569:37
>  #17 0x2b39ad67de6d in SbiRuntime::StepFIND_Impl(SbxObject*, unsigned int, 
> unsigned int, unsigned long, bool, bool) 
> basic/source/runtime/runtime.cxx:4001:14
>  #18 0x2b39ad61eb92 in SbiRuntime::StepFIND(unsigned int, unsigned int) 
> basic/source/runtime/runtime.cxx:4007:5
>  #19 0x2b39ad643fa5 in SbiRuntime::Step() 
> basic/source/runtime/runtime.cxx:785:13
>  #20 0x2b39ad1ec019 in SbModule::Run(SbMethod*) 
> basic/source/classes/sbxmod.cxx:1176:20
>  #21 0x2b39ad1e6a96 in SbModule::Notify(SfxBroadcaster&, SfxHint const&) 
> basic/source/classes/sbxmod.cxx:843:21
>  #22 0x2b399b30fac1 in SfxBroadcaster::Broadcast(SfxHint const&) 
> svl/source/notify/SfxBroadcaster.cxx:51:13
>  #23 0x2b39ad21cd51 in SbMethod::Broadcast(unsigned int) 
> basic/source/classes/sbxmod.cxx:2155:9
>  #24 0x2b39ad99604c in SbxValue::SbxValue(SbxValue const&) 
> basic/source/sbx/sbxvalue.cxx:100:9
>  #25 0x2b39ad9e14dc in SbxVariable::SbxVariable(SbxVariable const&) 
> basic/source/sbx/sbxvar.cxx:75:7
>  #26 0x2b39ad9518ed in SbxMethod::SbxMethod(SbxMethod const&) 
> basic/source/sbx/sbxobj.cxx:884:7
>  #27 0x2b39ad6743e9 in SbiRuntime::FindElement(SbxObject*, unsigned int, 
> unsigned int, unsigned long, bool, bool) 
> basic/source/runtime/runtime.cxx:3569:37
>  #28 0x2b39ad67de6d in SbiRuntime::StepFIND_Impl(SbxObject*, unsigned int, 
> unsigned int, unsigned long, bool, bool) 
> basic/source/runtime/runtime.cxx:4001:14
>  #29 0x2b39ad61eb92 in SbiRuntime::StepFIND(unsigned int, unsigned int) 
> basic/source/runtime/runtime.cxx:4007:5

-- 
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