Bug 164992 - Crash when sending a message if the main window is hidden
Summary: Crash when sending a message if the main window is hidden
Status: RESOLVED WORKSFORME
Alias: None
Product: kdepimlibs
Classification: Applications
Component: kabc (show other bugs)
Version: 4.1
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 166160 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-26 10:00 UTC by Florian Kriener
Modified: 2008-07-10 17:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Kriener 2008-06-26 10:00:59 UTC
Version:            (using KDE 4.0.83)
Installed from:    Debian testing/unstable Packages

when sending a message and the main window is hidden kmail crashes:

Application: KMail (kmail), signal SIGSEGV
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f6df9d1b780 (LWP 5396)]
[KCrash handler]
#5  QFactoryLoader::keys (this=0x0) at plugin/qfactoryloader_p.h:71
#6  0x00007f6df78235f5 in createWriteHandlerHelper (device=0x7fff01e66cb0, 
    format=@0x1009620) at image/qimagewriter.cpp:137
#7  0x00007f6df782558c in QImageWriter::canWrite (this=0x7fff01e66c10)
    at image/qimagewriter.cpp:547
#8  0x00007f6df7825633 in QImageWriter::write (this=0x7fff01e66ab0, 
    image=@0x0) at image/qimagewriter.cpp:567
#9  0x00007f6df780eb96 in QImage::save (this=0x7fff01e66c50, 
    device=0x7fff01e66cb0, format=<value optimized out>, quality=-1)
    at image/qimage.cpp:4591
#10 0x00007f6df5cdf849 in KABC::VCardTool::createPicture (
    this=<value optimized out>, identifier=<value optimized out>, 
    pic=@0x7fff01e67cb0)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/vcardtool.cpp:712
#11 0x00007f6df5ce2565 in KABC::VCardTool::createVCards (this=0x7fff01e685f0, 
    list=<value optimized out>, version=KABC::VCard::v3_0)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/vcardtool.cpp:254
#12 0x00007f6df5cd3ef0 in KABC::VCardConverter::createVCards (
    this=<value optimized out>, list=
        {<QList<KABC::Addressee>> = {{p = {static shared_null = {ref = {_q_value = 2314}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x7fff01e68650}, d = 0x7fff01e68650}}, d = {d = 0x7fff01e686a0}}, 
    version=KABC::VCardConverter::v3_0)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/vcardconverter.cpp:47
#13 0x00007f6df5cd4cbb in KABC::VCardFormat::saveAll (
    this=<value optimized out>, resource=0x1843e10, file=0x7fff01e68720)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/vcardformat.cpp:101
#14 0x00007f6de2316529 in KABC::ResourceFile::saveToFile (this=0x1843e10, 
    file=0x7fff01e68720)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/plugins/file/resourcefile.cpp:377
#15 0x00007f6de23168d3 in KABC::ResourceFile::save (this=0x1843e10, 
    ticket=<value optimized out>)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/plugins/file/resourcefile.cpp:260
#16 0x00007f6df5ca274a in KABC::AddressBook::save (
    this=<value optimized out>, ticket=0x195def0)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/addressbook.cpp:383
#17 0x00007f6df5cd2ec5 in KABC::StdAddressBook::Private::saveAll (
    this=0x183f4a0)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/stdaddressbook.cpp:173
#18 0x00007f6df5cd3119 in ~StdAddressBook (this=0x182fc10)
    at /tmp/buildd/kdepimlibs-4.0.82+svn819867/kabc/stdaddressbook.cpp:109
#19 0x00007f6df5cd3d5f in ~K3StaticDeleter (this=0x7f6df5f09160)
    at /usr/include/k3staticdeleter.h:174
#20 0x00007f6df6d69d68 in __cxa_finalize () from /lib/libc.so.6
#21 0x00007f6df5c9acf6 in __do_global_dtors_aux () from /usr/lib/libkabc.so.4
#22 0x00000000023318e0 in ?? ()
#23 0x00007fff01e68ec0 in ?? ()
#24 0x00007f6df5cf5bd1 in _fini () from /usr/lib/libkabc.so.4
#25 0x0000000000000093 in ?? ()
#26 0x00007f6df9c5ce04 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
#0  0x00007f6df6dd31f1 in nanosleep () from /lib/libc.so.6
Comment 1 George Kiagiadakis 2008-07-08 16:21:47 UTC
I can confirm this on kde 4.0.84 (from debian packages) and I can say it is really anoying. Clicking a mailto: link in konqueror and sending the mail always results in crash...
Comment 2 Thomas McGuire 2008-07-09 18:18:08 UTC
I can't reproduce this. It looks like the actual problem is that KMail tries to save the addressbook after composer is closed, but that fails for some reason due to a bug in the KABC library.
Reassigning to KABC.
Comment 3 Thomas McGuire 2008-07-09 19:05:25 UTC
*** Bug 166160 has been marked as a duplicate of this bug. ***
Comment 4 Salvatore Brigaglia 2008-07-09 20:33:36 UTC
I thought the same because i was using GCALdaemon's ldap resource as main resource of Kaddressbook. Then I changed it to a file resource and deleted the ldap resource but kmail still crashes when sending mail when hidden.
Comment 5 Thomas McGuire 2008-07-09 22:02:35 UTC
Could you please test KDE 4.1 RC1 as soon as it is out? I fixed a bug there which might possibly related.
Comment 6 Salvatore Brigaglia 2008-07-09 23:09:14 UTC
RC1 wasn't present in the drop-down list when i reported the bug. I'm running latest Factory packages from openSUSE which are KDE 4.0.85 (i think from tree July). I am waiting updates in minutes, i can't compile...
Comment 7 Thomas McGuire 2008-07-10 12:46:31 UTC
> RC1 wasn't present in the drop-down list when i reported the bug.

Yes, it will only be available in a few days, and then it probably takes some 
time for the opensuse packages to appear.
Comment 8 Torgny Nyblom 2008-07-10 17:59:44 UTC
Yesterday I could reproduce this 100% of the times but today (after a svn up) it's gone, therefore I'm closing it.

Please reopen if you can reproduce this with a fresh copy.