Georg Baum wrote:
so I did neither run gdb nor valgrind,


some valgrind output below (i opened new doc, typed a bit of text cut n paste once and closed)


i don't know anything about this stuff but perhaps it's useful:

==28267== ERROR SUMMARY: 3383 errors from 102 contexts (suppressed: 71 from 2)
==28267== malloc/free: in use at exit: 865,788 bytes in 16,674 blocks.
==28267== malloc/free: 450,223 allocs, 433,549 frees, 22,398,535 bytes allocated.
==28267== For counts of detected errors, rerun with: -v
==28267== searching for pointers to 16,674 not-freed blocks.
==28267== checked 1,204,944 bytes.
==28267==
==28267==
==28267== 20 bytes in 1 blocks are definitely lost in loss record 114 of 399
==28267==    at 0x401C422: malloc (vg_replace_malloc.c:149)
==28267==    by 0x4B4FEFF: strdup (in /lib/tls/libc-2.3.6.so)
==28267==    by 0x414B7AF: (within /usr/lib/libQtGui.so.4.1.2)
==28267== by 0x40FA8B5: QApplicationPrivate::construct() (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x40FACEB: QApplication::QApplication(int&, char**) (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x835BE7D: lyx::frontend::Application::Application(int&, char**) (Application.C:45)
==28267==    by 0x835C97E: lyx_gui::parse_init(int&, char**) (lyx_gui.C:131)
==28267==    by 0x8148DB0: LyX::priv_exec(int&, char**) (lyx_main.C:213)
==28267==    by 0x814A327: LyX::exec(int&, char**) (lyx_main.C:143)
==28267==    by 0x8061363: main (main.C:47)
==28267==
==28267==
==28267== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 163 of 399
==28267==    at 0x401C422: malloc (vg_replace_malloc.c:149)
==28267==    by 0x4BC55F9: (within /lib/tls/libc-2.3.6.so)
==28267==    by 0x4BC5C39: __nss_database_lookup (in /lib/tls/libc-2.3.6.so)
==28267==    by 0x4D570F9: ???
==28267==    by 0x4D57DAC: ???
==28267==    by 0x4B73222: getpwuid_r (in /lib/tls/libc-2.3.6.so)
==28267==    by 0x4B72C21: getpwuid (in /lib/tls/libc-2.3.6.so)
==28267==    by 0x84C693E: lyx::support::user_name() (userinfo.C:47)
==28267==    by 0x817DB65: LyXRC::setDefaults() (lyxrc.C:293)
==28267==    by 0x817E1E3: LyXRC::LyXRC() (lyxrc.C:192)
==28267== by 0x817E716: __static_initialization_and_destruction_0(int, int) (lyxrc.C:2532) ==28267== by 0x817E772: _GLOBAL__I__ZN56_GLOBAL__N_.._.._lyx_devel_src_lyxrc.C_00000000_1E48E28E2_1E (lyxrc.C:2536)
==28267==
==28267==
==28267== 48 bytes in 4 blocks are definitely lost in loss record 180 of 399
==28267==    at 0x401C422: malloc (vg_replace_malloc.c:149)
==28267== by 0x4614ECC: qMalloc(unsigned) (in /usr/lib/libQtCore.so.4.1.2)
==28267==    by 0x46BEADF: (within /usr/lib/libQtCore.so.4.1.2)
==28267== by 0x46C13CA: QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType) (in /usr/lib/libQtCore.so.4.1.2)
==28267==    by 0x43AFF6D: (within /usr/lib/libQtGui.so.4.1.2)
==28267== by 0x43B02A1: QAbstractScrollArea::QAbstractScrollArea(QWidget*) (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x842622D: lyx::frontend::QWorkArea::QWorkArea(LyXView&, int, int) (QWorkArea.C:109) ==28267== by 0x835BCFC: lyx::frontend::Application::newWorkArea(LyXView&, int, int) (Application.C:73) ==28267== by 0x835B6D5: WorkAreaFactory::create(LyXView&, int, int) (WorkAreaFactory.C:24) ==28267== by 0x806691B: BufferView::Pimpl::Pimpl(BufferView&, LyXView*, int, int) (BufferView_pimpl.C:146) ==28267== by 0x80626C3: BufferView::BufferView(LyXView*, int, int) (BufferView.C:65) ==28267== by 0x841E907: lyx::frontend::QtView::QtView(unsigned, unsigned) (QtView.C:81)
==28267==
==28267==
==28267== 128 bytes in 4 blocks are definitely lost in loss record 239 of 399
==28267==    at 0x401C422: malloc (vg_replace_malloc.c:149)
==28267==    by 0x4763B1F: (within /usr/lib/libXcursor.so.1.0.2)
==28267==    by 0x4763BD4: (within /usr/lib/libXcursor.so.1.0.2)
==28267== by 0x476413F: XcursorXcFileLoadImages (in /usr/lib/libXcursor.so.1.0.2) ==28267== by 0x4764B78: XcursorFileLoadImages (in /usr/lib/libXcursor.so.1.0.2) ==28267== by 0x4765910: XcursorLibraryLoadImages (in /usr/lib/libXcursor.so.1.0.2) ==28267== by 0x4765994: XcursorLibraryLoadCursor (in /usr/lib/libXcursor.so.1.0.2)
==28267==    by 0x41543A1: (within /usr/lib/libQtGui.so.4.1.2)
==28267== by 0x41547F5: QCursor::handle() const (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x4160AFA: qt_x11_enforce_cursor(QWidget*) (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x41642B5: QWidgetPrivate::create_sys(unsigned long, bool, bool) (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x413916A: QWidget::create(unsigned long, bool, bool) (in /usr/lib/libQtGui.so.4.1.2)
==28267==
==28267==
==28267== 1,136 bytes in 25 blocks are possibly lost in loss record 333 of 399
==28267==    at 0x401C422: malloc (vg_replace_malloc.c:149)
==28267== by 0x463D457: QMapData::node_create(QMapData::Node**, int) (in /usr/lib/libQtCore.so.4.1.2)
==28267==    by 0x421DDAD: (within /usr/lib/libQtGui.so.4.1.2)
==28267== by 0x4239D39: QFontDatabase::load(QFontPrivate const*, int) (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x421B814: QFont::exactMatch() const (in /usr/lib/libQtGui.so.4.1.2) ==28267== by 0x8361980: QLFontInfo::QLFontInfo(LyXFont const&) (qfont_loader.C:347) ==28267== by 0x8362F9D: font_metrics::width(char const*, unsigned, LyXFont const&) (qfont_loader.h:91) ==28267== by 0x836322C: font_metrics::signedWidth(std::string const&, LyXFont const&) (font_metrics.h:79)
==28267==    by 0x81E1651: LyXText::leftMargin(int, int) const (text.C:620)
==28267== by 0x81E18A6: LyXText::setRowWidth(int, Row&) const (text.C:793)
==28267==    by 0x81E5951: LyXText::redoParagraph(int) (text.C:1787)
==28267== by 0x8064BE7: BufferView::Pimpl::metrics(bool) (BufferView_pimpl.C:1449)
==28267==
==28267==
==28267== 9,150 bytes in 372 blocks are possibly lost in loss record 380 of 399
==28267==    at 0x401C825: operator new(unsigned) (vg_replace_malloc.c:164)
==28267== by 0x4A678BA: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.8) ==28267== by 0x4A6932F: std::string::_M_mutate(unsigned, unsigned, unsigned) (in /usr/lib/libstdc++.so.6.0.8) ==28267== by 0x4A694E9: std::string::_M_replace_safe(unsigned, unsigned, char const*, unsigned) (in /usr/lib/libstdc++.so.6.0.8) ==28267== by 0x4A69582: std::string::assign(char const*, unsigned) (in /usr/lib/libstdc++.so.6.0.8)
==28267==    by 0x817D942: LyXRC::setDefaults() (basic_string.h:910)
==28267==    by 0x817E1E3: LyXRC::LyXRC() (lyxrc.C:192)
==28267== by 0x817E716: __static_initialization_and_destruction_0(int, int) (lyxrc.C:2532) ==28267== by 0x817E772: _GLOBAL__I__ZN56_GLOBAL__N_.._.._lyx_devel_src_lyxrc.C_00000000_1E48E28E2_1E (lyxrc.C:2536)
==28267==    by 0x850C8F1: (within /home/leuven/svn/build/src/lyx-qt4)
==28267==    by 0x805CB38: (within /home/leuven/svn/build/src/lyx-qt4)
==28267== by 0x850C80E: __libc_csu_init (in /home/leuven/svn/build/src/lyx-qt4)
==28267==
==28267== LEAK SUMMARY:
==28267==    definitely lost: 232 bytes in 10 blocks.
==28267==    indirectly lost: 120 bytes in 10 blocks.
==28267==      possibly lost: 10,286 bytes in 397 blocks.
==28267==    still reachable: 855,150 bytes in 16,257 blocks.
==28267==         suppressed: 0 bytes in 0 blocks.
==28267== Reachable blocks (those to which a pointer was found) are not shown.
==28267== To see them, rerun with: --show-reachable=yes
l

Reply via email to