Hi,

below please find a severe bug (free memory read with a lot of
operations between free and read operation).

Michael



I opened a couple of files (it seems like two are not sufficient), made
_no_ changes, then opened one of them again (reloaded).


      FMR: Free memory read
      This is occurring while in:
            bool text_fits::operator()(LyXText*&)
[QCfYDL9Ishn54ITXVBUe.o]
            __type_0
std::find_if<LyXText**,text_fits>(__type_0,__type_0,__type_1)
[algorithm]
            LyXText*TextCache::findFit(Buffer*,unsigned short)
[TextCache.C:49]
            int BufferView::Pimpl::resizeCurrentBuffer()
[BufferView_pimpl.C:235]
            void BufferView::Pimpl::buffer(Buffer*)
[BufferView_pimpl.C:133]
            void BufferView::buffer(Buffer*) [BufferView.C:66]
            void LyXFunc::MenuOpen() [lyxfunc.C:2820]
           
std::basic_string<char,std::char_traits<char>,std::allocator<char>
>LyXFunc::Dispatch(int,const char*) [lyxfunc.C:735]
            void Menus::ShowFileMenu(flobjs_*,long) [menus.C:641]
            C_Menus_ShowFileMenu [menus.C:71]
            fl_object_qread [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 0xbde420 in the heap.
      Address 0xbde420 is at the beginning of a freed block of 376
bytes.
      This block was allocated from:
            malloc         [rtlib.o]
            c2n6Fi_Pv_     [libCrun.so.1]
            void*operator new(unsigned) [rtlib.o]
            int BufferView::Pimpl::resizeCurrentBuffer()
[BufferView_pimpl.C:246]
            void BufferView::Pimpl::buffer(Buffer*)
[BufferView_pimpl.C:133]
            void BufferView::buffer(Buffer*) [BufferView.C:66]
            void LyXFunc::MenuOpen() [lyxfunc.C:2820]
           
std::basic_string<char,std::char_traits<char>,std::allocator<char>
>LyXFunc::Dispatch(int,const char*) [lyxfunc.C:735]
            void Menus::ShowFileMenu(flobjs_*,long) [menus.C:641]
            C_Menus_ShowFileMenu [menus.C:71]
            fl_object_qread [libforms.a]
            void LyXGUI::runTime() [lyx_gui.C:621]
            LyX::LyX(int*,char**) [lyx_main.C:148]
            main           [main.C:75]
            _start         [crt1.o]
      There have been 23967 frees since this block was freed from:
            free           [rtlib.o]
            c2k6FPv_v_     [libCrun.so.1]
            void operator delete(void*) [rtlib.o]
            void delete_text::operator()(LyXText*&)
[NVtqvRLYnAsav0BdKzxL.o]
            __type_1
std::for_each<LyXText**,delete_text>(__type_0,__type_0,__type_1)
[algorithm]
            void TextCache::removeAllWithBuffer(Buffer*)
[TextCache.C:137]
            void BufferStorage::release(Buffer*) [bufferlist.C:59]
            bool BufferList::close(Buffer*) [bufferlist.C:176]
            Buffer*BufferList::loadLyXFile(const
std::basic_string<char,std::char_traits<char>,std::allocator<char>
>&,bool) [bufferlist.C:436]
            void LyXFunc::MenuOpen() [lyxfunc.C:2818]
           
std::basic_string<char,std::char_traits<char>,std::allocator<char>
>LyXFunc::Dispatch(int,const char*) [lyxfunc.C:735]
            void Menus::ShowFileMenu(flobjs_*,long) [menus.C:641]
            C_Menus_ShowFileMenu [menus.C:71]
            fl_object_qread [libforms.a]
            void LyXGUI::runTime() [lyx_gui.C:621]
            LyX::LyX(int*,char**) [lyx_main.C:148]
            main           [main.C:75]
            _start         [crt1.o]




-- 
======================================================================
Michael Schmitt                            phone:     +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
======================================================================

Reply via email to