Bug 178038 - "kmail crashes when creating new mail"
Summary: "kmail crashes when creating new mail"
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.10.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 08:44 UTC by tkornel
Modified: 2008-12-21 23:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tkornel 2008-12-18 08:44:06 UTC
Version:           1.10.3 (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

Kmail crashes when creating new mail. 
Maybe the problem is that the file /usr/include/qt4/QtCore/qstring.h isn't exist. 
Console output (last 10 lines):
kmail(6057) KMFolderImap::finishMailCheck: "INBOX"  finishMailCheck getMessage 3
---------------------"creating new mail at this point"---------------------------
kmail(6057) KMail::TemplateParser::findTemplate: Folder found: KMFolder(0x8b93988)
kmail(6057) KMail::TemplateParser::findTemplate: Identity found: 341066778
kmail(6057) KMail::TemplateParser::processWithTemplate: Command: CURSOR
kmail(6057) KMail::TemplateParser::processWithTemplate: Command: REM=
kmail(6057) KMail::TemplateParser::processWithTemplate: Command: -
ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 646
*** KMail got signal 6 (Crashing)
KCrash: Application 'kmail' crashing...
sock_file=/home/kornel/.kde/socket-kornel-laptop/kdeinit4__0
Comment 1 tkornel 2008-12-18 09:03:28 UTC
At the moment it crashes when I use custom template messages for my identity.
Comment 2 Jaime Torres 2008-12-18 11:51:11 UTC
Hi,

  Thanks for your bug report. We need more information to solve it, like:

* Are you able to reproduce it? yes? 
  * Is it always when you use the custom template messages? 
  * Is it possible to have a copy of the template?

* It could be also very valuable if you provide a backtrace, take a look at:
https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

Best Regards.
Comment 3 Jaime Torres 2008-12-18 13:32:14 UTC
I am not able to reproduce it with current trunk, but I let the developers see if they are aware of it.

I do not attach the emailed backtrace as it does not contains enought information.

The template is:

[Templates #IDENTITY_341066778]
QuoteString=>%_
TemplateForward=%REM="Default forward template"%-\n\n----------
Forwarded Message  ----------\n\nSubject: %OFULLSUBJECT\nDate: %ODATE
\nFrom: %OFROMADDR\nTo: %OTOADDR\n\n%TEXT
\n-------------------------------------------------------\n
TemplateNewMessage=%CURSOR\n\nÜdvözlettel\n\nTakó Kornél\n
\nwww.www.hu\n%REM="Default new message template"%-\n
TemplateReply=%CURSOR\n\nÜdvözlettel\n\nTakó Kornél\n\nwww.www.hu\n
\n%REM="Default reply template"%-\nOn %ODATEEN %OTIMELONGEN you wrote:\n
%QUOTE\n\n
TemplateReplyAll=%REM="Default reply all template"%-\nOn %ODATEEN %
OTIMELONGEN %OFROMNAME wrote:\n%QUOTE\n%CURSOR\n
Comment 4 Allen Winter 2008-12-18 14:15:41 UTC
SVN commit 898607 by winterz:

fix crashing in templates when using the %- (dnl) in certain conditions.
BUG: 178038


 M  +4 -3      templateparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=898607
Comment 5 Thomas McGuire 2008-12-21 23:47:16 UTC
SVN commit 899969 by tmcguire:

Backport r898607 by winterz from trunk to the 4.1 branch:

fix crashing in templates when using the %- (dnl) in certain conditions.
CCBUG: 178038



 M  +4 -3      templateparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=899969