Petter Reinholdtsen schrieb:
When trying to delete a character in edit mode, Noteedit crashes.
Can you try running noteedit under valgrind and report the crash
information provided that way?
To run it under valgrind, start it like this on the command line in a
terminal:
valgrind noteedit
I do not know much about noteedit, but do know how to debug crash
bugs. :)
Happy hacking,
Hallo Petter,
I am really very amazed, but today I couldn't reproduce the bug (haven't
applied noteedit for a longer time now). Perhaps the bug was caused by
kde libs that meanwhile have been updated. When I sent the bug report
noteedit behaved in the descripted way (also after restarting the
computer). However, I send you the output of valgrind (not completely
because the terminal swallows the first part and the command "valgrind
noteedit >> noteedit.txt" didn't redirect the whole output into that
file, only three lines).
Thanks for your efforts and I will further have a look if the bug comes
back or if it is reproduceable in special situations.
Best regards
Benedikt Bock
==5251== by 0x43D4454: (below main) (in /lib/i686/cmov/libc-2.7.so)
==5251== Address 0x742a374 is 76 bytes inside a block of size 192 free'd
==5251== at 0x402272A: operator delete(void*) (vg_replace_malloc.c:342)
==5251== by 0x413BE70: NMainWindow::~NMainWindow() (in
/usr/lib/noteedit/libnoteedit.so.0.1.0)
==5251== by 0x4AC3347: QObject::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4AFD5EB: QWidget::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4BBD521: QMainWindow::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5E7C4: QApplication::internalNotify(QObject*, QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5F77C: QApplication::notify(QObject*, QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x5112B91: KApplication::notify(QObject*, QEvent*) (in
/usr/lib/libkdecore.so.4.2.0)
==5251== by 0x4A609A6: QApplication::sendPostedEvents(QObject*, int) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A77211: QEventLoop::enterLoop() (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A77065: QEventLoop::exec() (in /usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5EE5E: QApplication::exec() (in /usr/lib/libqt-mt.so.3.3.8)
==5251==
==5251== Invalid read of size 4
==5251== at 0x50AC780: KConfigBase::writeEntry(char const*, QRect const&,
bool, bool, bool) (in /usr/lib/libkdecore.so.4.2.0)
==5251== by 0x804A9C3: (within /usr/bin/noteedit)
==5251== by 0x43D4454: (below main) (in /lib/i686/cmov/libc-2.7.so)
==5251== Address 0x742a380 is 88 bytes inside a block of size 192 free'd
==5251== at 0x402272A: operator delete(void*) (vg_replace_malloc.c:342)
==5251== by 0x413BE70: NMainWindow::~NMainWindow() (in
/usr/lib/noteedit/libnoteedit.so.0.1.0)
==5251== by 0x4AC3347: QObject::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4AFD5EB: QWidget::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4BBD521: QMainWindow::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5E7C4: QApplication::internalNotify(QObject*, QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5F77C: QApplication::notify(QObject*, QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x5112B91: KApplication::notify(QObject*, QEvent*) (in
/usr/lib/libkdecore.so.4.2.0)
==5251== by 0x4A609A6: QApplication::sendPostedEvents(QObject*, int) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A77211: QEventLoop::enterLoop() (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A77065: QEventLoop::exec() (in /usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5EE5E: QApplication::exec() (in /usr/lib/libqt-mt.so.3.3.8)
==5251==
==5251== Invalid read of size 4
==5251== at 0x50AC786: KConfigBase::writeEntry(char const*, QRect const&,
bool, bool, bool) (in /usr/lib/libkdecore.so.4.2.0)
==5251== by 0x804A9C3: (within /usr/bin/noteedit)
==5251== by 0x43D4454: (below main) (in /lib/i686/cmov/libc-2.7.so)
==5251== Address 0x742a378 is 80 bytes inside a block of size 192 free'd
==5251== at 0x402272A: operator delete(void*) (vg_replace_malloc.c:342)
==5251== by 0x413BE70: NMainWindow::~NMainWindow() (in
/usr/lib/noteedit/libnoteedit.so.0.1.0)
==5251== by 0x4AC3347: QObject::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4AFD5EB: QWidget::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4BBD521: QMainWindow::event(QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5E7C4: QApplication::internalNotify(QObject*, QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5F77C: QApplication::notify(QObject*, QEvent*) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x5112B91: KApplication::notify(QObject*, QEvent*) (in
/usr/lib/libkdecore.so.4.2.0)
==5251== by 0x4A609A6: QApplication::sendPostedEvents(QObject*, int) (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A77211: QEventLoop::enterLoop() (in
/usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A77065: QEventLoop::exec() (in /usr/lib/libqt-mt.so.3.3.8)
==5251== by 0x4A5EE5E: QApplication::exec() (in /usr/lib/libqt-mt.so.3.3.8)
==5251== Warning: invalid file descriptor -1 in syscall close()
==5251== Warning: invalid file descriptor -1 in syscall close()
==5251== Warning: invalid file descriptor -1 in syscall close()
==5251== Warning: invalid file descriptor -1 in syscall close()
==5251==
==5251== ERROR SUMMARY: 765 errors from 22 contexts (suppressed: 341 from 5)
==5251== malloc/free: in use at exit: 1,670,354 bytes in 9,601 blocks.
==5251== malloc/free: 852,296 allocs, 842,695 frees, 49,616,570 bytes allocated.
==5251== For counts of detected errors, rerun with: -v
==5251== searching for pointers to 9,601 not-freed blocks.
==5251== checked 2,971,740 bytes.
==5251==
==5251== LEAK SUMMARY:
==5251== definitely lost: 402,182 bytes in 2,944 blocks.
==5251== possibly lost: 12,251 bytes in 340 blocks.
==5251== still reachable: 1,255,921 bytes in 6,317 blocks.
==5251== suppressed: 0 bytes in 0 blocks.
==5251== Rerun with --leak-check=full to see details of leaked memory.