Re: Bug in CVS 18/05/00 #6

2000-05-19 Thread Lars Gullik Bjønnes

Michael Schmitt <[EMAIL PROTECTED]> writes:

|   UMR: Uninitialized memory read (2 times)
|   This is occurring while in:
| bool MathedXIter::Next() [math_iter.C:632]

Ok, should be fixed now.

Lgb



Re: Bug in CVS 18/05/00 #6

2000-05-18 Thread Michael Schmitt

Jean-Marc Lasgouttes wrote:

> I am looking now for an easy fix. The theory is that, the more purify
> warning we shut off, the easier it gets to see the others.

Correct! And whenever I get a warning I need to run LyX from scratch
again in order to ensure that one report is not caused by a former one.
(I.e. the reports you get are the initial ones).

Michael

-- 
==
Michael Schmittphone: +49 451 500 3725
Institute for Telematics   secretary: +49 451 500 3721
Medical University of Luebeck  fax:   +49 451 500 3722
Ratzeburger Allee 160  eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany   WWW:   http://www.itm.mu-luebeck.de
==



Re: Bug in CVS 18/05/00 #6

2000-05-18 Thread Jean-Marc Lasgouttes

> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes:

Michael> Hi, below please find some reports concerning 'math'
Michael> operations. This will be the last report for today (sigh?). I
Michael> hope you will be able to fix at least some of the 'bugs'. It
Michael> should be fairly easy to fix Uninitialized Memory Reads
Michael> (UMRs). If you think that some of them are corrected, I will
Michael> continue testing.

I think this one comes from the constructor of MathStackXIter:

MathStackXIter(int n = MAX_STACK_ITEMS): imax(n) {
item = new MathedXIter[imax];
i = 0;
}

If I am not mistaken, the contructor of MathedXIter is not called
here. What is the best way to make it happen? I know the proper way is
to use a vector, but an even better way would be to dump the struct
altogether and use an existing STL template.

I am looking now for an easy fix. The theory is that, the more purify
warning we shut off, the easier it gets to see the others.

JMarc




Bug in CVS 18/05/00 #6

2000-05-18 Thread Michael Schmitt

Hi,

below please find some reports concerning 'math' operations. This will
be the last report for today (sigh?). I hope you will be able to fix at
least some of the 'bugs'. It should be fairly easy to fix Uninitialized
Memory Reads (UMRs). If you think that some of them are corrected, I
will continue testing.

Michael

PS: Bug report #4 must be fixed definitively. I got a long sequence of
complaints after the one I sent you.


  UMR: Uninitialized memory read (2 times)
  This is occurring while in:
bool MathedXIter::Next() [math_iter.C:632]
bool MathedCursor::Right(bool) [math_cursor.C:285]
UpdatableInset::RESULT
InsetFormula::LocalDispatch(BufferView*,int,const
std::basic_string,std::allocator >&)
[formula.C:758]
   
std::basic_string,std::allocator
>LyXFunc::Dispatch(int,const char*) [lyxfunc.C:578]
int LyXFunc::processKeyEvent(_XEvent*) [lyxfunc.C:305]
int LyXView::KeyPressMask_raw_callback(forms_*,void*)
[LyXView.C:419]
C_LyXView_KeyPressMask_raw_callback [LyXView.C:452]
do_interaction_step [libforms.a]
fl_treat_interaction_events [libforms.a]
fl_check_forms [libforms.a]
void LyXGUI::runTime() [lyx_gui.C:621]
LyX::LyX(int*,char**) [lyx_main.C:148]
main   [main.C:75]
_start [crt1.o]
  Reading 4 bytes from 0xa71a04 in the heap.
  Address 0xa71a04 is 172 bytes into a malloc'd block at 0xa71958 of
2824 bytes.
  This block was allocated from:
malloc [rtlib.o]
c2n6Fi_Pv_ [libCrun.so.1]
void*operator new(unsigned) [rtlib.o]
void*operator new[](unsigned) [rtlib.o]
MathStackXIter::MathStackXIter(int) [libmathed.a]
void __STATIC_CONSTRUCTOR() [libmathed.a]
_init  [crti.o]
_start [crt1.o]


  UMR: Uninitialized memory read
  This is occurring while in:
bool MathedXIter::Next() [math_iter.C:632]
void MathedIter::goPosAbs(int) [math_iter.C:156]
void MathedXIter::Merge(LyxArrayBase*) [math_iter.C:508]
void MathedCursor::SelPaste() [math_cursor.C:868]
UpdatableInset::RESULT
InsetFormula::LocalDispatch(BufferView*,int,const
std::basic_string,std::allocator >&)
[formula.C:843]
   
std::basic_string,std::allocator
>LyXFunc::Dispatch(int,const char*) [lyxfunc.C:578]
int LyXFunc::processKeyEvent(_XEvent*) [lyxfunc.C:305]
int LyXView::KeyPressMask_raw_callback(forms_*,void*)
[LyXView.C:419]
C_LyXView_KeyPressMask_raw_callback [LyXView.C:452]
do_interaction_step [libforms.a]
fl_treat_interaction_events [libforms.a]
fl_check_forms [libforms.a]
void LyXGUI::runTime() [lyx_gui.C:621]
LyX::LyX(int*,char**) [lyx_main.C:148]
main   [main.C:75]
_start [crt1.o]
  Reading 4 bytes from 0xa71a5c in the heap.
  Address 0xa71a5c is 260 bytes into a malloc'd block at 0xa71958 of
2824 bytes.
  This block was allocated from:
malloc [rtlib.o]
c2n6Fi_Pv_ [libCrun.so.1]
void*operator new(unsigned) [rtlib.o]
void*operator new[](unsigned) [rtlib.o]
MathStackXIter::MathStackXIter(int) [libmathed.a]
void __STATIC_CONSTRUCTOR() [libmathed.a]
_init  [crti.o]
_start [crt1.o]



  UMR: Uninitialized memory read
  This is occurring while in:
bool MathedXIter::Next() [math_iter.C:602]
void MathedXIter::Merge(LyxArrayBase*) [math_iter.C:527]
void MathedCursor::SelPaste() [math_cursor.C:868]
UpdatableInset::RESULT
InsetFormula::LocalDispatch(BufferView*,int,const
std::basic_string,std::allocator >&)
[formula.C:843]
   
std::basic_string,std::allocator
>LyXFunc::Dispatch(int,const char*) [lyxfunc.C:578]
int LyXFunc::processKeyEvent(_XEvent*) [lyxfunc.C:305]
int LyXView::KeyPressMask_raw_callback(forms_*,void*)
[LyXView.C:419]
C_LyXView_KeyPressMask_raw_callback [LyXView.C:452]
do_interaction_step [libforms.a]
fl_treat_interaction_events [libforms.a]
fl_check_forms [libforms.a]
void LyXGUI::runTime() [lyx_gui.C:621]
LyX::LyX(int*,char**) [lyx_main.C:148]
main   [main.C:75]
_start [crt1.o]
  Reading 4 bytes from 0xa71a5c in the heap.
  Address 0xa71a5c is 260 bytes into a malloc'd block at 0xa71958 of
2824 bytes.
  This block was allocated from:
malloc [rtlib.o]
c2n6Fi_Pv_ [libCrun.so.1]
void*operator new(unsigned) [rtlib.o]
void*operator new[](unsigned) [rtlib.o]
MathStackXIter::MathStackXIter(int) [libmathed.a]