Issue 68366 - Valgrind ID:176, Invalid read of size 2
Summary: Valgrind ID:176, Invalid read of size 2
Status: CLOSED DUPLICATE of issue 68365
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: BEA300m2
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 3.0.1
Assignee: groucho266
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 15:36 UTC by groucho266
Modified: 2008-08-26 14:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description groucho266 2006-08-10 15:36:36 UTC
This task has been generated by valgrind checks.

Source code candidate:
sd/source/ui/inc/DrawViewShell.hxx

ErrorType:   Invalid read
ErrorText:   Invalid read of size 2

Stack:
    sd::outliner::OutlinerContainer::GetPageIndex(SdDrawDocument*, sd::DrawViewShell*, PageKind, EditMode, bool, sd::outliner::IteratorLocation) DrawViewShell.hxx:303 0xB0C8CB2
    sd::outliner::OutlinerContainer::CreateDocumentIterator(SdDrawDocument*, sd::DrawViewShell*, bool, sd::outliner::IteratorLocation) OutlinerIterator.cxx:350 0xB0C95B2
    sd::outliner::OutlinerContainer::CreateIterator(sd::outliner::IteratorLocation) OutlinerIterator.cxx:244 0xB0C9648
    sd::outliner::OutlinerContainer::current() OutlinerIterator.cxx:225 0xB0C9663
    sd::Outliner::Initialize(bool) Outliner.cxx:635 0xB0C5CE0
    sd::Outliner::StartSearchAndReplace(SvxSearchItem const*) srchitem.hxx:161 0xB0C85F4
    sd::FuSearch::SearchAndReplace(SvxSearchItem const*) fusearch.cxx:182 0xB12A7C4
    sd::DrawDocShell::Execute(SfxRequest&) ref.hxx:179 0xB13B71D
    SfxStubDrawDocShellExecute(SfxShell*, SfxRequest&) sdslots.hxx:14997 0xB1380FD
    SfxDispatcher::Call_Impl(SfxShell&, SfxSlot const&, SfxRequest&, unsigned char) shell.hxx:226 0x9E5A272
    SfxDispatcher::_Execute(SfxShell&, SfxSlot const&, SfxRequest&, unsigned short) dispatch.cxx:1073 0x9E5A794
    SfxBindings::Execute_Impl(SfxRequest&, SfxSlot const*, SfxShell*) bindings.cxx:1727 0x9E508EC
  
Address allocation Stack:
ADDR:  Address 0xCE8D04C is 4 bytes inside a block of size 65 free'd
    free vg_replace_malloc.c:233 0x401D097
    rtl_freeMemory alloc_global.c:318 0x40208CE
    rtl_string_release strtmpl.c:1054 0x4AECCA7
    stoc_simreg::RegistryKeyImpl::getAsciiListValue() string.hxx:206 0x5EDFD20
    stoc_smgr::retrieveAsciiValueList(com::sun::star::uno::Reference<com::sun::star::registry::XSimpleRegistry> const&, rtl::OUString const&) Reference.h:339 0x5EC0C2A
    stoc_smgr::retrieveAsciiValueList(com::sun::star::uno::Reference<com::sun::star::registry::XSimpleRegistry> const&, rtl::OUString const&) servicemanager.cxx:252 0x5EC0A1B
    stoc_smgr::ORegistryServiceManager::getFromServiceName(rtl::OUString const&) ustrbuf.hxx:181 0x5EC0DDE
    stoc_smgr::ORegistryServiceManager::createContentEnumeration(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) servicemanager.cxx:2004 0x5EC7C9F
    stoc_smgr::ORegistryServiceManager::createContentEnumeration(rtl::OUString const&) servicemanager.cxx:2023 0x5EBEB0F
    com::sun::star::i18n::loadBody(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>&, rtl::OUString&, com::sun::star::uno::Reference<com::sun::star::i18n::XExtendedTransliteration>&) Reference.h:339 0xC45B765
    com::sun::star::i18n::TransliterationImpl::loadModuleByName(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::i18n::XExtendedTransliteration>&, com::sun::star::lang::Locale const&) transliterationImpl.cxx:630 0xC45BB7E
    com::sun::star::i18n::TransliterationImpl::loadModule(com::sun::star::i18n::TransliterationModules, com::sun::star::lang::Locale const&) ustring.hxx:1226 0xC45ABA7
  
TESTS: g_findreplace
Comment 1 groucho266 2006-08-14 09:15:17 UTC
Accepted.
Comment 2 Mathias_Bauer 2007-12-04 15:04:01 UTC
wrong component
Comment 3 Martin Hollmichel 2008-01-27 07:46:20 UTC
set target to 3.x
Comment 4 nikolai.pretzell 2008-08-06 12:39:16 UTC
This appeared similarly in Valgrind run on BEA300m2, VID 148.


Detailed Valgrind Info:

Invalid read of size 2
    TabBar::GetCurPageId() const tabbar.hxx:450 0xBF30DE6
    sd::DrawViewShell::GetCurPageId() DrawViewShell.hxx:280 0xBF34F39
    sd::outliner::OutlinerContainer::GetPageIndex(SdDrawDocument*,
sd::DrawViewShell*, PageKind, EditMode, bool, sd::outliner::IteratorLocation)
OutlinerIterator.cxx:363 0xBF92811
    sd::outliner::OutlinerContainer::CreateDocumentIterator(SdDrawDocument*,
sd::DrawViewShell*, bool, sd::outliner::IteratorLocation)
OutlinerIterator.cxx:328 0xBF9271C
   
sd::outliner::OutlinerContainer::CreateIterator(sd::outliner::IteratorLocation)
OutlinerIterator.cxx:225 0xBF92494
    sd::outliner::OutlinerContainer::current() OutlinerIterator.cxx:207 0xBF923E2
    sd::Outliner::Initialize(bool) Outliner.cxx:586 0xBF8DF9A
    sd::Outliner::StartSearchAndReplace(SvxSearchItem const*) Outliner.cxx:552
0xBF8DE6D
    sd::FuSearch::SearchAndReplace(SvxSearchItem const*) fusearch.cxx:161 0xC1F04CF
    sd::DrawDocShell::Execute(SfxRequest&) docshel3.cxx:183 0xBFDE9A0
    SfxStubDrawDocShellExecute(SfxShell*, SfxRequest&) sdslots.hxx:14683 0xBFDA40B
    SfxShell::CallExec(void (*)(SfxShell*, SfxRequest&), SfxRequest&)
shell.hxx:204 0x4ACA9B1

ADDR:  Address 0x6871098 is not stack'd, malloc'd or (recently) free'd

TESTS: g_findreplace

Changed prio and target, because this is a potential crash.
Comment 5 groucho266 2008-08-26 14:45:39 UTC
Duplicate.

*** This issue has been marked as a duplicate of 68365 ***
Comment 6 groucho266 2008-08-26 14:46:16 UTC
Closing duplicate issue.