On Tue, Jul 23, 2002 at 10:40:55PM +0100, John Levon wrote:
> On Tue, Jul 23, 2002 at 11:52:45PM +0300, Dekel Tsur wrote:
> 
> > > p.s. anyone using 2.95.x ? I've got some reports of problems with
> > > scoped_ptr members implicit construction and -O
> > 
> > I am. I don't have a problem with current CVS.
> 
> even with valgrind concerning the scoped_ptr ?
> 

I don't know what you mean here.
This is the output I get from valgrind when running lyx and loading
UserGuide.lyx:

==9998== valgrind-1.0pre6, a memory error detector for x86 GNU/Linux.
==9998== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==9998== Estimated CPU clock rate is 1530 MHz
==9998== For more details, rerun with: -v
==9998== 
==9998== Syscall param writev(vector[...]) contains uninitialised or unaddressable 
byte(s)
==9998==    at 0x40586037: (within /lib/libc-2.2.5.so)
==9998==    by 0x403C53C3: (within /usr/X11R6/lib/libX11.so.6.2)
==9998==    by 0x403C5EDB: (within /usr/X11R6/lib/libX11.so.6.2)
==9998==    by 0x403AB741: (within /usr/X11R6/lib/libX11.so.6.2)
==9998==    Address 0x415CF89E is 1774 bytes inside a block of size 2048 alloc'd
==9998==    at 0x400445FF: calloc (vg_clientfuncs.c:221)
==9998==    by 0x4039E236: (within /usr/X11R6/lib/libX11.so.6.2)
==9998==    by 0x40294009: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x831ADF4: lyx_gui::parse_init(int &, char **) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x4047897B: (within /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so)
==9998==    by 0x822BCD3: {anonymous}::initSymbols(void) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x822C2D4: initMath(void) (in /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x8201943: InsetFormulaBase::InsetFormulaBase(void) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x40478754: (within /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so)
==9998==    by 0x40478999: (within /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so)
==9998==    by 0x822BCD3: {anonymous}::initSymbols(void) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x822C2D4: initMath(void) (in /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998== 
==9998== Invalid read of size 4
==9998==    at 0x820C658: InsetFormulaMacro::read(istream &) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x820C55B: InsetFormulaMacro::read(Buffer const *, LyXLex &) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x80CCEBE: Buffer::readInset(LyXLex &, Paragraph *&, int &, LyXFont &) 
(in /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x80C4095: Buffer::parseSingleLyXformat2Token(LyXLex &, Paragraph *&, 
Paragraph *&, basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > const &, int &, unsigned int &, LyXFont &) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    Address 0x415F79A8 is 36 bytes inside a block of size 40 free'd
==9998==    at 0x400444BA: __builtin_delete (vg_clientfuncs.c:186)
==9998==    by 0x824647C: (within /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x8243798: (within /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x820D522: MathAtom::~MathAtom(void) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998== 
==9998== Invalid read of size 4
==9998==    at 0x820C658: InsetFormulaMacro::read(istream &) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x820C55B: InsetFormulaMacro::read(Buffer const *, LyXLex &) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x80CCEBE: Buffer::readInset(LyXLex &, Paragraph *&, int &, LyXFont &) 
(in /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x80C4095: Buffer::parseSingleLyXformat2Token(LyXLex &, Paragraph *&, 
Paragraph *&, basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > const &, int &, unsigned int &, LyXFont &) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    Address 0x41604800 is 36 bytes inside a block of size 40 free'd
==9998==    at 0x400444BA: __builtin_delete (vg_clientfuncs.c:186)
==9998==    by 0x824647C: (within /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x8243798: (within /home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998==    by 0x820D522: MathAtom::~MathAtom(void) (in 
/home/dekel/dev/lyx/lyx-devel/src/lyx)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x4029A8A2: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029AFDB: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B649: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B684: (within /usr/X11R6/lib/libforms.so.0.89)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x4029A8B1: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029AFDB: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B649: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B684: (within /usr/X11R6/lib/libforms.so.0.89)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x4029A8B9: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029AFDB: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B649: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B684: (within /usr/X11R6/lib/libforms.so.0.89)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x4029A8C1: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029AFDB: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B649: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B684: (within /usr/X11R6/lib/libforms.so.0.89)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x4029A8C9: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029AFDB: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B649: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B684: (within /usr/X11R6/lib/libforms.so.0.89)
==9998== 
==9998== Conditional jump or move depends on uninitialised value(s)
==9998==    at 0x4029A8D9: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029AFDB: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B649: (within /usr/X11R6/lib/libforms.so.0.89)
==9998==    by 0x4029B684: (within /usr/X11R6/lib/libforms.so.0.89)
==9998== ERROR SUMMARY: 215 errors from 11 contexts (suppressed: 15 from 1)
==9998== malloc/free: in use at exit: 888351 bytes in 3841 blocks.
==9998== malloc/free: 680247 allocs, 676406 frees, 11529758 bytes allocated.
==9998== For a detailed leak analysis,  rerun with: --leak-check=yes
==9998== For counts of detected errors, rerun with: -v

Reply via email to