Summary: | kabcclient crashes | ||
---|---|---|---|
Product: | [Applications] kdepim | Reporter: | Russ Fineman <upscope> |
Component: | libkdepim | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | j.zaitseff, krammer, upscope |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | New crash information added by DrKonqi |
Description
Russ Fineman
2010-05-29 18:12:53 UTC
Created attachment 59951 [details]
New crash information added by DrKonqi
kabcclient (0.8.1) on KDE Platform 4.6.3 (4.6.3) using Qt 4.7.2
- What I was doing when the application crashed:
I can confirm that kabcclient crashes (segmentation fault) when invoked from the command line as "kabcclient -L".
-- Backtrace (Reduced):
#8 0x08061eb7 in length (this=0x98672a8, addresseeList=..., stream=...) at /usr/include/c++/4.5/bits/char_traits.h:263
#9 operator<< <std::char_traits<char> > (this=0x98672a8, addresseeList=..., stream=...) at /usr/include/c++/4.5/ostream:513
#10 VCardOutput::writeAddresseeList (this=0x98672a8, addresseeList=..., stream=...) at ../../../../console/kabcclient/src/outputformatimpls.cpp:234
#11 0x08059ddb in KABCClient::performList (this=0xbf9b4744) at ../../../../console/kabcclient/src/kabcclient.cpp:459
#12 0x0805e078 in KABCClient::slotAddressBookLoaded (this=0xbf9b4744) at ../../../../console/kabcclient/src/kabcclient.cpp:750
Further to my confirmatory post: running "kabcclient -L -oc utf8" causes the application to segfault; running "kabcclient -L -oc iso8859-1" works, even though the output is NOT ISO-8859-1 but UTF-8 (a bug in itself!). I've tried to reproduce this with the executable shipped on Debian and the one I built from master. Also tried running the excutable from Debian (KDEPIM 4.4.10 I think) with newer KDE. All tests so far worked. Since both backtraces indicate a problem when writing the results to output, it is probably dependent on some data in one of your address book entries. Maybe one of you has time to try finding the problematic entry using kabcclient -S "name" This is almost certainly related to the encoding problem, so it is most likely an entry with any field containing non ASCII characters. Git commit f5bf00638a3cefe7f23cd5f428598fb0ca921833 by Kevin Krammer. Committed on 16/06/2011 at 17:12. Pushed by krake into branch '4.6'. Fix output encoding for vcard output KABC::VCardConverter creates UTF-8 encoded output, so implicitly converting that to QString and then converting with output codec resulted in a broken chain conversions. Now check if output codec is not UTF-8 and then recode vcard output from UTF-8 to QString before passing that to the chosen output converter. BUG: 239996 M +16 -4 console/kabcclient/src/outputformatimpls.cpp http://commits.kde.org/kdepim/f5bf00638a3cefe7f23cd5f428598fb0ca921833 Git commit c2ff3d4dc89883773d9cf3cb9fb206520cf22e45 by Kevin Krammer. Committed on 16/06/2011 at 17:12. Pushed by krake into branch 'master'. Fix output encoding for vcard output KABC::VCardConverter creates UTF-8 encoded output, so implicitly converting that to QString and then converting with output codec resulted in a broken chain conversions. Now check if output codec is not UTF-8 and then recode vcard output from UTF-8 to QString before passing that to the chosen output converter. BUG: 239996 M +16 -4 console/kabcclient/src/outputformatimpls.cpp http://commits.kde.org/kdepim/c2ff3d4dc89883773d9cf3cb9fb206520cf22e45 |