| Summary: | Kmail: Occasional endless loop with IMAP checking | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Kris <krisgamrat> |
| Component: | tdepim | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | albator78, bugwatch, darrella, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: |
kdepim: FIx (again) the addquotes/removequots functions
kdepim: FIx (again) the addquotes/removequots functions (2) kdepim: Fix more SEGV in imapparser kdepim : fix another endless loop |
||
|
Description
Kris
2012-09-23 17:22:48 CDT
I too have this problem. There is definitely a problem in kio_imap when parsing some special caracters and/or quotes. Look at bug #1009 : I think it's the same bug again. Created attachment 826 [details]
kdepim: FIx (again) the addquotes/removequots functions
Here is a patch for 3.5.13.1 that enhances (again) the addquotes/removequots functions in libkmime.
I have no more "unknown" messages in big Imap folders, I hope I will also have no crash at all.
It seems like a lot of hot candidate for inclusion before the official release 3.5.13.1. Pfff now I have segfaults again in imapparser.cpp ... There are some strangeness in the code, I will push another patch soon. (Odpověď na komentář #4)
> Pfff now I have segfaults again in imapparser.cpp ...
> There are some strangeness in the code, I will push another patch soon.
I've tried the patch, and even in a box with lots of garbage (samples for learning spam) I have not seen the accident. Only filtering in such a large folder is sometime very slow (60.000 emails).
(In reply to comment #1) > I too have this problem. > There is definitely a problem in kio_imap when parsing some special caracters > and/or quotes. > > Look at bug #1009 : I think it's the same bug again. That cannot be the same issue. My Kmail doesn't hang, nor does it use 100% CPU. It simply loops through rechecking my IMAP accounts until I close it. In addition, all my folders have relatively few messages (between 0 and 20 messages per folder, four folders per account, two accounts). Now I remember that I had a same problem on the original 3.5.13, which was a problem with non-ascii characters in the name of the folders. After solving the problem with non-ascii characters for me problem with infinite checking disappeared. (In reply to comment #7) > Now I remember that I had a same problem on the original 3.5.13, which was a > problem with non-ascii characters in the name of the folders. After solving the > problem with non-ascii characters for me problem with infinite checking > disappeared. Unfortunately, I cannot control how Google names the folders. However, AFAIK, all the characters are ASCII. If it is the same bug as yours, it must be something random (maybe the specific packages installed, or specific configuration combinations within PIM apps). I don't remember seeing that in 3.5.13, and this only came up within the past month after running a dist-upgrade on my Debian install. (In reply to comment #8) > (In reply to comment #7) > > Now I remember that I had a same problem on the original 3.5.13, which was a > > problem with non-ascii characters in the name of the folders. After solving the > > problem with non-ascii characters for me problem with infinite checking > > disappeared. > > Unfortunately, I cannot control how Google names the folders. However, AFAIK, > all the characters are ASCII. > > If it is the same bug as yours, it must be something random (maybe the specific > packages installed, or specific configuration combinations within PIM apps). I > don't remember seeing that in 3.5.13, and this only came up within the past > month after running a dist-upgrade on my Debian install. The only updates that had showed on that particular dist-upgrade were R14 nightlies. I do not recall seeing any updates from Debian. Created attachment 827 [details]
kdepim: FIx (again) the addquotes/removequots functions (2)
Created attachment 828 [details]
kdepim: Fix more SEGV in imapparser
The attached patch adresses the following issues:
1) function "parseUntagged": check that string 'what' is not empty before parsing it (was causing SEGV)
2) function "parseLiteralC": fix parse string may not find '}' caracter (was causing infinite loop)
Slavek, please test the new 2 patches and if it works, push them in 3.5.13.1. In the worst scenario they are useless, but should not cause any harm. Created attachment 829 [details]
kdepim : fix another endless loop
Patched (all three patches), builded, tested, have not noticed any problems. I'm ready to push patches to git. Please, will be after a little time next patch? ;) No, no more quick patch for now :-) Patches pushed to GIT in hash e09b1f3d, 590161fd a 786fea2f. And also into v3.5.13-sru branch. |