Issue 68361

Summary: Valgrind ID:147, Invalid read of size 4
Product: General Reporter: Martin Hollmichel <nesshof>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P2 CC: issues, nikolai.pretzell
Version: BEA300m2   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Martin Hollmichel 2006-08-10 15:33:49 UTC
This task has been generated by valgrind checks.

Source code candidates:
sw/source/filter/ww8/dump/ww8scan.cxx
sw/source/filter/ww8/ww8scan.cxx

Possible task owner cmc@openoffice.org
ErrorType:   Invalid read
ErrorText:   Invalid read of size 4

Stack:
    WW8PLCFspecial::SeekPosExact(long) ww8scan.cxx:2197 0xB597A31
    WW8PLCFx_Book::SeekPos(long) ww8scan.cxx:4000 0xB59914C
    WW8PLCFMan::SeekPos(long) ww8scan.cxx:4553 0xB599543
    WW8PLCFMan::WW8PLCFMan(WW8ScannerBase*, short, long, bool) ww8scan.cxx:4424 0xB5A2402
    SwWW8ImplReader::ReadText(long, long, short) ww8par.cxx:3093 0xB556D14
    SwWW8ImplReader::Read_HdFtFtnText(SwNodeIndex const*, long, long, short) ww8par.cxx:1858 0xB557C41
    SwWW8ImplReader::Read_HdFtText(long, long, SwFrmFmt*) ww8par.cxx:1979 0xB55850E
    SwWW8ImplReader::Read_HdFt(bool, int, SwPageDesc const*, wwSection const&) ww8par.cxx:2097 0xB558B43
    wwSectionManager::SetHdFt(wwSection&, int, wwSection const*) ww8par.cxx:2124 0xB558BDF
    wwSectionManager::SetSwFmtPageDesc(_STL::_Deque_iterator<wwSection, _STL::_Nonconst_traits<wwSection> >&, _STL::_Deque_iterator<wwSection, _STL::_Nonconst_traits<wwSection> >&, bool) _deque.h:178 0xB558F4E
    wwSectionManager::InsertSegments() ww8par.cxx:3554 0xB5591EB
    SwWW8ImplReader::CoreLoad(WW8Glossary*, SwPosition const&) ww8par.cxx:4089 0xB55AF22
  
Address allocation Stack:
ADDR:  Address 0xFE1F894 is 0 bytes after a block of size 556 alloc'd
    malloc vg_replace_malloc.c:149 0x401C4CE
    rtl_allocateMemory alloc_global.c:311 0x40208B2
    NO_SYMBOL() soffice.bin 0x807FEDC
    operator new[](unsigned) soffice.bin 0x8080057
    WW8PLCFspecial::WW8PLCFspecial(SvStream*, long, long, long, long, bool) ww8scan.cxx:2126 0xB5977D4
    WW8PLCFx_Book::WW8PLCFx_Book(SvStream*, WW8Fib const&) ww8scan.cxx:3943 0xB5A1846
    WW8ScannerBase::WW8ScannerBase(SvStream*, SvStream*, SvStream*, WW8Fib const*) ww8scan.cxx:1828 0xB5A330D
    SwWW8ImplReader::CoreLoad(WW8Glossary*, SwPosition const&) ww8par.cxx:3889 0xB55A0A6
    SwWW8ImplReader::LoadThroughDecryption(SwPaM&, WW8Glossary*) pam.hxx:224 0xB55BC9E
    SwWW8ImplReader::LoadDoc(SwPaM&, WW8Glossary*) ww8par.cxx:4748 0xB55BF9F
    WW8Reader::Read(SwDoc&, String const&, SwPaM&, String const&) ww8par.cxx:4810 0xB55C14C
    SwReader::Read(Reader const&) shellio.hxx:228 0xB455198
  
TESTS: w_layout_regression
Comment 1 Martin Hollmichel 2006-11-05 11:05:00 UTC
reassign
Comment 2 Mathias_Bauer 2007-09-05 08:35:44 UTC
target 2.4
Comment 3 openoffice 2007-09-05 10:30:19 UTC
proposed line points to read access of nIMax in m225
Comment 4 Mathias_Bauer 2008-01-11 14:42:36 UTC
target 3.0
Comment 5 openoffice 2008-05-30 15:20:48 UTC
reset target due to lack of resources
Comment 6 nikolai.pretzell 2008-08-06 12:02:41 UTC
Occurred also on BEA300.m2, VID 102.

Detailed Valgrind Info:

Invalid read of size 4
    WW8PLCFspecial::SeekPosExact(long) ww8scan.cxx:2175 0xC5C9B47
    WW8PLCFx_Book::SeekPos(long) ww8scan.cxx:4019 0xC5CF098
    WW8PLCFMan::SeekPos(long) ww8scan.cxx:4571 0xC5D075D
    WW8PLCFMan::WW8PLCFMan(WW8ScannerBase*, short, long, bool) ww8scan.cxx:4442
0xC5D0319
    SwWW8ImplReader::ReadText(long, long, short) ww8par.cxx:2928 0xC57F9C3
    SwWW8ImplReader::Read_HdFtFtnText(SwNodeIndex const*, long, long, short)
ww8par.cxx:1642 0xC57C987
    SwWW8ImplReader::Read_HdFtText(long, long, SwFrmFmt*) ww8par.cxx:1763 0xC57D2C7
    SwWW8ImplReader::Read_HdFt(bool, int, SwPageDesc const*, wwSection const&)
ww8par.cxx:1881 0xC57D7A9
    wwSectionManager::SetHdFt(wwSection&, int, wwSection const*) ww8par.cxx:1908
0xC57D8B1
    wwSectionManager::SetSwFmtPageDesc(_STL::_Deque_iterator<wwSection,
_STL::_Nonconst_traits<wwSection> >&, _STL::_Deque_iterator<wwSection,
_STL::_Nonconst_traits<wwSection> >&, bool) ww8par.cxx:3353 0xC581834
    wwSectionManager::InsertSegments() ww8par.cxx:3412 0xC581BA8
    SwWW8ImplReader::CoreLoad(WW8Glossary*, SwPosition const&) ww8par.cxx:3970
0xC583B9D
 
ADDR:  Address 0x1094efec is 0 bytes after a block of size 556 alloc'd
    malloc vg_replace_malloc.c:207 0x401E215
    rtl_allocateMemory alloc_global.c:294 0x40218BA
    NO_SYMBOL() soffice.bin 0x8048F39
    operator new[](unsigned) soffice.bin 0x80490EC
    WW8PLCFspecial::WW8PLCFspecial(SvStream*, long, long, long, long, bool)
ww8scan.cxx:2104 0xC5C99EE
    WW8PLCFx_Book::WW8PLCFx_Book(SvStream*, WW8Fib const&) ww8scan.cxx:3962
0xC5CECE9
    WW8ScannerBase::WW8ScannerBase(SvStream*, SvStream*, SvStream*, WW8Fib
const*) ww8scan.cxx:1806 0xC5C8CD3
    SwWW8ImplReader::CoreLoad(WW8Glossary*, SwPosition const&) ww8par.cxx:3770
0xC583139
    SwWW8ImplReader::LoadThroughDecryption(SwPaM&, WW8Glossary*) ww8par.cxx:4320
0xC584EAE
    SwWW8ImplReader::LoadDoc(SwPaM&, WW8Glossary*) ww8par.cxx:4629 0xC585A35
    WW8Reader::Read(SwDoc&, String const&, SwPaM&, String const&)
ww8par.cxx:4691 0xC585BF3
    SwReader::Read(Reader const&) shellio.cxx:193 0xC45AABE

TEST: w_layout_regression

Changed prio and target, because this is a potential crash.

Comment 7 nikolai.pretzell 2008-08-06 12:24:04 UTC
.
Comment 8 Martin Hollmichel 2009-01-22 17:14:32 UTC
set target 3.x
Comment 9 Marcus 2017-05-20 10:47:53 UTC
Reset assigne to the default "issues@openoffice.apache.org".