Bug 154373 - crash when pressed on new mail
Summary: crash when pressed on new mail
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: SVN trunk (KDE 4)
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 170428 176333 191896 195379 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-20 13:25 UTC by Suayb Eroglu
Modified: 2009-06-08 23:18 UTC (History)
5 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 Suayb Eroglu 2007-12-20 13:25:56 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
OS:                Linux

when i pressed on to new mail for opening new mail sending dialog, kmail crashing.



Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2b44476320d0 (LWP 4100)]
[KCrash handler]
#5  0x00002b44415b4fd5 in raise () from /lib/libc.so.6
#6  0x00002b44415b6a30 in abort () from /lib/libc.so.6
#7  0x00002b44415ae3df in __assert_fail () from /lib/libc.so.6
#8  0x00002b4437b8d05a in KMMessage::setBodyFromUnicode (this=0x111cf50, 
    str=@0x7fff749f4830)
    at /home/ser/Download/kde4/kdepim/kmail/kmmessage.cpp:4220
#9  0x00002b4437eb331d in KMail::TemplateParser::processWithTemplate (
    this=0x7fff749f4ae0, tmpl=@0x7fff749f4aa0)
    at /home/ser/Download/kde4/kdepim/kmail/templateparser.cpp:852
#10 0x00002b4437eb272d in KMail::TemplateParser::process (
    this=0x7fff749f4ae0, aorig_msg=<value optimized out>, 
    afolder=<value optimized out>, append=<value optimized out>)
    at /home/ser/Download/kde4/kdepim/kmail/templateparser.cpp:184
#11 0x00002b4437dd60a4 in KMMainWidget::slotCompose (this=0x8c2f80)
    at /home/ser/Download/kde4/kdepim/kmail/kmmainwidget.cpp:1124
#12 0x00002b4437de247d in KMMainWidget::qt_metacall (this=0x8c2f80, 
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fff749f50b0)
    at /home/ser/Download/kde4/kdepim_/kmail/kmmainwidget.moc:364
#13 0x00002b44363da361 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#14 0x00002b443fc5f587 in QAction::triggered () from /usr/lib/libQtGui.so.4
#15 0x00002b443fc6004d in QAction::activate () from /usr/lib/libQtGui.so.4
#16 0x00002b443ff2bf34 in ?? () from /usr/lib/libQtGui.so.4
#17 0x00002b443ff2c171 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#18 0x00002b443ffd8a7a in QToolButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#19 0x00002b443fca7d12 in QWidget::event () from /usr/lib/libQtGui.so.4
#20 0x00002b443ff2b160 in QAbstractButton::event ()
   from /usr/lib/libQtGui.so.4
#21 0x00002b443ffd87c9 in QToolButton::event () from /usr/lib/libQtGui.so.4
#22 0x00002b443fc652eb in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#23 0x00002b443fc693bd in QApplication::notify () from /usr/lib/libQtGui.so.4
#24 0x00002b443b0b750b in KApplication::notify (this=0x7fff749f6440, 
    receiver=0xd19d00, event=0x7fff749f58f0)
    at /home/ser/Download/kde4/kdelibs/kdeui/kernel/kapplication.cpp:319
#25 0x00002b44363c8510 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#26 0x00002b443fcb92e2 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00002b443fcb8331 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#28 0x00002b443fcdade7 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00002b4441d1fd54 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#30 0x00002b4441d2303d in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00002b4441d2350e in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#32 0x00002b44363e9541 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#33 0x00002b443fcdac1f in ?? () from /usr/lib/libQtGui.so.4
#34 0x00002b44363c79f8 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#35 0x00002b44363c7b16 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#36 0x00002b44363c9c71 in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#37 0x00000000004031c4 in main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /home/ser/Download/kde4/kdepim/kmail/main.cpp:129
#0  0x00002b4441620ab0 in nanosleep () from /lib/libc.so.6
Comment 1 Thomas McGuire 2007-12-20 15:49:56 UTC
I can not reproduce this crash, pressing the "New" button in the toolbar works fine for me.
Please be more specific. 
Are you using templates?
Can you reproduce the bug reliably?
Does it happen also with a clean config file (of a new test user, for example)?
Comment 2 Suayb Eroglu 2007-12-20 17:47:34 UTC
no i'm not using templates or anything else and
i've recompiled the kdepim and cleaned the share data but result is same,
here is the bash output, maybe helpful:


kmail(1698) KMail::TemplateParser::findTemplate: Folder found:
KMFolder(0x7c88f0)
kmail(1698)/kdecore (KConfigSkeleton)
KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton
( 0x7fff55eb07a0 )
kmail(1698)/kdepimlibs (kpimutils) KPIMUtils::extractEmailAddress: Input: aStr
Error: "You have to enter something in the email address field."
kmail(1698) KMail::TemplateParser::findTemplate: Identity found: 1370342759
kmail(1698)/kdecore (KConfigSkeleton)
KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton
( 0x7fff55eb07a0 )
kmail(1698) KMail::TemplateParser::processWithTemplate: Command: REM=
kmail(1698) KMail::TemplateParser::processWithTemplate: Command: -
kmail(1698) KMail::TemplateParser::processWithTemplate: Command: BLANK
kmail: /home/ser/Download/kde4/kdepim/kmail/kmmessage.cpp:4220: void
KMMessage::setBodyFromUnicode(const QString&): Sav `codec'
ba
Comment 3 Thomas McGuire 2007-12-20 19:26:17 UTC
> i've recompiled the kdepim and cleaned the share data but result is same,
> here is the bash output, maybe helpful:

No, It unfortunateley doesn't help with the problem. I have no idea for the 
reasons. Maybe it is caused by your locale, but I really can't figure 
anything out.
Comment 4 Thomas McGuire 2008-09-05 16:19:21 UTC
*** Bug 170428 has been marked as a duplicate of this bug. ***
Comment 5 Jaime Torres 2008-12-09 10:40:54 UTC
*** Bug 176333 has been marked as a duplicate of this bug. ***
Comment 6 Christophe Marin 2009-05-23 15:48:48 UTC
*** Bug 191896 has been marked as a duplicate of this bug. ***
Comment 7 Suayb Eroglu 2009-05-27 14:11:22 UTC
Ayarlar>KMail'i uygulamasını yapılandır>Düzenleyici

Tabdan Karakter Kümesi

utf-8 (locale) i en üste taşı, uygula yap.
Comment 8 Dario Andres 2009-06-07 23:51:10 UTC
Was this properly fixed? Can someone translate the last comment ? Thanks
Comment 9 Dario Andres 2009-06-07 23:51:21 UTC
*** Bug 195379 has been marked as a duplicate of this bug. ***
Comment 10 Suayb Eroglu 2009-06-08 11:44:09 UTC
Soory, i wrote it in Turkish because all of this bug's reporters are Turks. 
Actually it's not a bug, it is a template parser matter when using us-ascii charset. Simply open up Kmail go to Settings from menu and click the Configure KMail..., in configuration window select the Editor on the left pane and Charset on the tab select the right charset(in my case it is utf8).
Comment 11 zcatav 2009-06-08 23:18:07 UTC
Yes, it's works. Thanks.