[Bug 169646] Kmail crashes when applying filter with no rules
https://bugs.kde.org/show_bug.cgi?id=169646 Christophe Giboudeaux cgiboude...@gmail.com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|REMIND | -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs
[Bug 169646] Kmail crashes when applying filter with no rules
https://bugs.kde.org/show_bug.cgi?id=169646 Christophe Giboudeaux cgiboude...@gmail.com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||DUPLICATE --- Comment #8 from Christophe Giboudeaux cgiboudeaux gmail com 2011-02-10 11:26:31 --- *** This bug has been marked as a duplicate of bug 169048 *** -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs
[Bug 169646] Kmail crashes when applying filter with no rules
https://bugs.kde.org/show_bug.cgi?id=169646 Mr. Janne Toivola jatoi...@niksula.hut.fi changed: What|Removed |Added CC||jatoi...@niksula.hut.fi --- Comment #7 from Mr. Janne Toivola jatoivol niksula hut fi 2011-02-06 22:34:51 --- *** Bug 265649 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs
[Bug 169646] Kmail crashes when applying filter with no rules
https://bugs.kde.org/show_bug.cgi?id=169646 Siu Chung (Clement) Cheung clement...@gmail.com changed: What|Removed |Added CC||clement...@gmail.com --- Comment #4 from Siu Chung (Clement) Cheung clement cc gmail com 2010-04-17 05:41:45 --- This bug is still happening. kmail 1.13.2 KDE 4.4.2 linux kernel 2.6.33-gentoo-r1 (x86_64) Gentoo packages. Interestingly, my other setup with 32-bit linux on Sabayon Linux doesn't crash using exact same rule. Not sure why. Backtrace: Thread 1 (Thread 0x7f457240c750 (LWP 11155)): [KCrash Handler] #5 0x7f4570dbfb62 in KMail::ActionScheduler::actionMessage(KMFilterAction::ReturnCode) () from /usr/lib64/libkmailprivate.so.4 #6 0x7f4570dbfe1a in KMail::ActionScheduler::filterMessage() () from /usr/lib64/libkmailprivate.so.4 #7 0x7f4570dc05ba in KMail::ActionScheduler::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkmailprivate.so.4 #8 0x7f456ccb7147 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4 #9 0x7f456ccb3bd3 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 Liberal sprinkling of debug statements in the area reveals that the variable action is pointing at 0x21, an invalid but non-zero address which passes the mFilterAction check in actionMessage(). This causes a segfault when accessed later. How does that happen? Here's the current code that checks for the end of the action list: 498 KMFilterAction *action = mFilterAction; 499 // mFilterAction = (*mFilterIt).actions()-next(); 500 if ( ++mFilterActionIt == (*mFilterIt)-actions()-end() ) 501 mFilterAction = 0; 502 else mFilterAction = (*mFilterActionIt); 503 action-processAsync( *mMessageIt ); 504 } The problem is we're checking if the *NEXT* action is the end. What about the *CURRENT* one? Sure it's supposed to be already checked when we advance the pointer there. Except that the first action isn't assigned by this iterator advancing code. It's initialized in filterMessage(): mFilterActionIt = (*mFilterIt)-actions()-begin(); mFilterAction = (*mFilterActionIt); actionMessage(); What's happening here is that begin() == end() since the list is empty. We didn't verify that mFilterActionIt isn't end (and therefore invalid) before dereferencing it. Since this is an iterator, not a pointer, we won't crash -- yet. But mFilterAction will get random garbage. If said random garbage happens to be non-zero, actionMessage() will then try to dereference it as a pointer and hence the crash. -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs
[Bug 169646] Kmail crashes when applying filter with no rules
https://bugs.kde.org/show_bug.cgi?id=169646 --- Comment #6 from Siu Chung (Clement) Cheung clement cc gmail com 2010-04-17 05:54:55 --- As a temporary work around, people like me who need this to set a stop processing here rule with no action and matching sender = my_b...@my_company.com to make sure important messages doesn't get filtered can assign a sound as action. That action will have no effect except being extremely irritating when a whole bunch of messages matching the rule arrives. This can be avoided by recording a wav file of silence and using it as the action. -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs
[Bug 169646] Kmail crashes when applying filter with no rules
http://bugs.kde.org/show_bug.cgi?id=169646 Bram Schoenmakers bramschoenmakers kde nl changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||REMIND --- Comment #3 from Bram Schoenmakers bramschoenmakers kde nl 2008-10-27 20:01:23 --- Closing due to lack of feedback. Please reopen if you obtained a better backtrace by following the steps described in http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports . Thank you. -- Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs
[Bug 169646] Kmail crashes when applying filter with no rules
http://bugs.kde.org/show_bug.cgi?id=169646 Christophe Giboudeaux cgiboudeaux gmail com changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Comment #1 from Christophe Giboudeaux cgiboudeaux gmail com 2008-08-23 11:26:56 --- Please read the following page and provide a useful backtrace for this crash : http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports -- Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs
[Bug 169646] Kmail crashes when applying filter with no rules
http://bugs.kde.org/show_bug.cgi?id=169646 Thomas McGuire mcguire kde org changed: What|Removed |Added Component|general |filtering --- Comment #2 from Thomas McGuire mcguire kde org 2008-08-23 11:40:29 --- I can not reproduce this. With a clean configuration / new user, I composed a empty test message with just a subject, saved that as a draft, created a folder named Test under the inbox and moved the draft message to there. Then I tried your steps. No crash. Please try to reproduce this with a clean config or a new user and post the steps to reproduce. Also, your backtrace is unfortunately useless, because it misses the debug symbols of KMail. See http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports on how to get a better backtrace. -- Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs