Bug 163308 - Crash on startup after attempt to import large VCF file
Summary: Crash on startup after attempt to import large VCF file
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
: 164323 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-05 22:06 UTC by Sysoev DA
Modified: 2009-08-05 16:36 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 Sysoev DA 2008-06-05 22:06:51 UTC
Version:            (using KDE 3.5.9)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc (GCC) 4.2.4 (Debian 4.2.4-1) 
OS:                Linux

I've tried to import big VCF file (about 187.8MB) to an empty address book. I've got SIGSEGV. Now, every time I'm starting KAddressBook it uses 100% CPU and after a few mintues I've got Segmentation Fault. I've tried to rename VCF file, but no luck.

Crash log is:
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb5f006c0 (LWP 14412)]
[KCrash handler]
#5  0xb7c41d96 in raise () from /lib/libc.so.6
#6  0xb7c43541 in abort () from /lib/libc.so.6
#7  0xb7e3b838 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#8  0xb7e396f5 in ?? () from /usr/lib/libstdc++.so.6
#9  0xb7e39732 in std::terminate () from /usr/lib/libstdc++.so.6
#10 0xb7e3986a in __cxa_throw () from /usr/lib/libstdc++.so.6
#11 0xb7e39ec3 in operator new () from /usr/lib/libstdc++.so.6
#12 0xb7e39fad in operator new[] () from /usr/lib/libstdc++.so.6
#13 0xb73b58df in QString::setLength (this=0xbfdcfe84, newLen=67108922)
    at tools/qstring.cpp:1706
#14 0xb73b5a80 in QString::grow (this=0xbfdcfe84, newLen=14412)
    at tools/qstring.cpp:1797
#15 0xb73b9f35 in QString::operator+= (this=0xbfdcfe84, str=@0xbfdcfe7c)
    at tools/qstring.cpp:5566
#16 0xb689f95f in KABC::VCardParser::parseVCards (text=@0xbfdd01a8)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardparser/vcardparser.cpp:80
#17 0xb688cce0 in KABC::VCardTool::parseVCards (this=0xbfdd0120, 
    vcard=@0xbfdd01a8)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardtool.cpp:361
#18 0xb688efdb in KABC::VCardConverter::parseVCards (this=0xbfdd01a0, 
    vcard=@0xbfdd01a8)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardconverter.cpp:72
#19 0xb688f0bd in KABC::VCardFormatPlugin::loadAll (this=0x8111cc8, 
    resource=0x811ad50, file=0xbfdd01e4)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardformatplugin.cpp:68
#20 0xb6e52b77 in KABC::ResourceFile::load (this=0x811ad50)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/plugins/file/resourcefile.cpp:224
#21 0xb6e52899 in KABC::ResourceFile::asyncLoad (this=0x811ad50)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/plugins/file/resourcefile.cpp:233
#22 0xb68695bb in KABC::AddressBook::asyncLoad (this=0x80e9060)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/addressbook.cpp:364
#23 0xb6869c9c in KABC::StdAddressBook::init (this=0x80e9060, 
    asynchronous=true)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/stdaddressbook.cpp:130
#24 0xb6869e20 in StdAddressBook (this=0x80e9060, asynchronous=false)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/stdaddressbook.cpp:86
#25 0xb6869e93 in KABC::StdAddressBook::self (
    asynchronous=<value optimized out>)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/stdaddressbook.cpp:68
#26 0xb7f07760 in KABCore::KABCore () from /usr/lib/libkaddressbook.so.0
#27 0x08050a45 in ?? ()
#28 0x080e7bb8 in ?? ()
#29 0x08099afc in ?? ()
#30 0x00000001 in ?? ()
#31 0x08099a48 in ?? ()
#32 0xbfdd0498 in ?? ()
#33 0x00000000 in ?? ()
Comment 1 Sysoev DA 2008-06-06 10:12:10 UTC
Now, KMail and Kopete made the same action: crash on startup. For example:

This is KMail crash log:
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb57e26c0 (LWP 17303)]
[New Thread 0xb3973b90 (LWP 17307)]
[New Thread 0xb4173b90 (LWP 17306)]
[New Thread 0xb4973b90 (LWP 17305)]
[New Thread 0xb5173b90 (LWP 17304)]
[KCrash handler]
#5  0xb770ad96 in raise () from /lib/libc.so.6
#6  0xb770c541 in abort () from /lib/libc.so.6
#7  0xb7904838 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#8  0xb79026f5 in ?? () from /usr/lib/libstdc++.so.6
#9  0xb7902732 in std::terminate () from /usr/lib/libstdc++.so.6
#10 0xb790286a in __cxa_throw () from /usr/lib/libstdc++.so.6
#11 0xb7902ec3 in operator new () from /usr/lib/libstdc++.so.6
#12 0xb7902fad in operator new[] () from /usr/lib/libstdc++.so.6
#13 0xb72d08df in QString::setLength (this=0xbf83d5f4, newLen=67108922)
    at tools/qstring.cpp:1706
#14 0xb72d0a80 in QString::grow (this=0xbf83d5f4, newLen=17303)
    at tools/qstring.cpp:1797
#15 0xb72d4f35 in QString::operator+= (this=0xbf83d5f4, str=@0xbf83d5ec)
    at tools/qstring.cpp:5566
#16 0xb622795f in KABC::VCardParser::parseVCards (text=@0xbf83d918)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardparser/vcardparser.cpp:80
#17 0xb6214ce0 in KABC::VCardTool::parseVCards (this=0xbf83d890, 
    vcard=@0xbf83d918)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardtool.cpp:361
#18 0xb6216fdb in KABC::VCardConverter::parseVCards (this=0xbf83d910, 
    vcard=@0xbf83d918)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardconverter.cpp:72
#19 0xb62170bd in KABC::VCardFormatPlugin::loadAll (this=0x849a930, 
    resource=0x84a6c90, file=0xbf83d954)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/vcardformatplugin.cpp:68
#20 0xb2dc8b77 in KABC::ResourceFile::load (this=0x84a6c90)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/plugins/file/resourcefile.cpp:224
#21 0xb2dc8899 in KABC::ResourceFile::asyncLoad (this=0x84a6c90)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/plugins/file/resourcefile.cpp:233
#22 0xb61f15bb in KABC::AddressBook::asyncLoad (this=0x844d728)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/addressbook.cpp:364
#23 0xb61f1c9c in KABC::StdAddressBook::init (this=0x844d728, 
    asynchronous=true)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/stdaddressbook.cpp:130
#24 0xb61f1e20 in StdAddressBook (this=0x844d728, asynchronous=false)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/stdaddressbook.cpp:86
#25 0xb61f1e93 in KABC::StdAddressBook::self (
    asynchronous=<value optimized out>)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kabc/stdaddressbook.cpp:68
#26 0xb7cca64d in KMail::FancyHeaderStyle::format ()
   from /usr/lib/libkmailprivate.so
#27 0xb7bb4704 in KMReaderWin::writeMsgHeader ()
   from /usr/lib/libkmailprivate.so
#28 0xb7bb4d5e in KMReaderWin::parseMsg () from /usr/lib/libkmailprivate.so
#29 0xb7bb1338 in KMReaderWin::displayMessage ()
   from /usr/lib/libkmailprivate.so
#30 0xb7bb1545 in KMReaderWin::updateReaderWin ()
   from /usr/lib/libkmailprivate.so
#31 0xb7bb44ed in KMReaderWin::qt_invoke () from /usr/lib/libkmailprivate.so
#32 0xb700bf6d in QObject::activate_signal (this=0x82a76f0, clist=0x82f6fb8, 
    o=0xbf843824) at kernel/qobject.cpp:2359
#33 0xb700caed in QObject::activate_signal (this=0x82a76f0, signal=2)
    at kernel/qobject.cpp:2328
#34 0xb7338279 in QTimer::timeout (this=0x82a76f0)
    at .moc/release-shared-mt/moc_qtimer.cpp:82
#35 0xb702ed3f in QTimer::event (this=0x82a76f0, e=0xbf843b24)
    at kernel/qtimer.cpp:222
#36 0xb6fae18a in QApplication::internalNotify (this=0xbf843d10, 
    receiver=0x82a76f0, e=0xbf843b24) at kernel/qapplication.cpp:2638
#37 0xb6faef76 in QApplication::notify (this=0xbf843d10, receiver=0x82a76f0, 
    e=0xbf843b24) at kernel/qapplication.cpp:2361
#38 0xb765eec2 in KApplication::notify (this=0xbf843d10, receiver=0x82a76f0, 
    event=0xbf843b24)
    at /build/buildd/kdelibs-3.5.9.dfsg.1/./kdecore/kapplication.cpp:550
#39 0xb6fa356e in QEventLoop::activateTimers (this=0x80821c0)
    at kernel/qapplication.h:523
#40 0xb6f5d348 in QEventLoop::processEvents (this=0x80821c0, flags=4)
    at kernel/qeventloop_x11.cpp:392
#41 0xb6fc4b80 in QEventLoop::enterLoop (this=0x80821c0)
    at kernel/qeventloop.cpp:201
#42 0xb6fc4a16 in QEventLoop::exec (this=0x80821c0)
    at kernel/qeventloop.cpp:148
#43 0xb6fadcff in QApplication::exec (this=0xbf843d10)
    at kernel/qapplication.cpp:2761
#44 0x0804a2ed in ?? ()
#45 0xbf843d10 in ?? ()
#46 0xbf843f00 in ?? ()
#47 0x00000000 in ?? ()

I had remove kaddressbook from system, but problem still exists.
Comment 2 Christophe Marin 2008-06-17 22:20:40 UTC
*** Bug 164323 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2008-06-17 22:23:03 UTC
Note:  you might look at bug 162013 (and the last comment from the bug reporter)
Comment 4 Tobias Koenig 2008-09-04 15:20:10 UTC
Hej,

well, what shall I say... you vCard is too big :)
The linux system runs out of memory in your case. Please try to
split up the vCard in several smaller ones and then use the
directory based address book as backend.

Ciao,
Tobias
Comment 5 Tobias Koenig 2009-08-05 16:36:22 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.