Bug 246195 - Cannot create Google Contacts akonadi resource [strlen, strdup,extract_and_check_multi, ..., gcal_get_contacts]
Summary: Cannot create Google Contacts akonadi resource [strlen, strdup,extract_and_ch...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: GoogleData Resource (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Adenilson Cavalcanti
URL:
Keywords:
: 255153 256259 256331 256680 257527 258053 258407 259551 262609 266076 266877 266954 267050 269983 271662 271724 275377 278494 278785 279593 281542 283889 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-29 22:59 UTC by Hugo Costelha
Modified: 2016-09-25 09:11 UTC (History)
36 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (2.63 KB, text/plain)
2010-12-02 19:07 UTC, omega
Details
Check for strchr() return not NULL (850 bytes, patch)
2011-01-04 19:19 UTC, Roman Gnatyuk
Details
New crash information added by DrKonqi (1.65 KB, text/plain)
2011-01-09 02:16 UTC, Paul van Erk
Details
New crash information added by DrKonqi (1.10 KB, text/plain)
2011-04-03 11:20 UTC, Edward Oubrayrie
Details
New crash information added by DrKonqi (2.06 KB, text/plain)
2011-05-07 20:15 UTC, margueritesu
Details
New crash information added by DrKonqi (6.13 KB, text/plain)
2011-09-06 07:17 UTC, Lukas Redynk
Details
New crash information added by DrKonqi (1.73 KB, text/plain)
2011-11-23 21:20 UTC, Zachary Aletheia
Details
New crash information added by DrKonqi (5.36 KB, text/plain)
2011-12-31 16:04 UTC, km
Details
New crash information added by DrKonqi (1.74 KB, text/plain)
2012-01-17 00:43 UTC, Lucas Linard
Details
New crash information added by DrKonqi (1.83 KB, text/plain)
2012-02-22 16:48 UTC, Kees Verhagen
Details
New crash information added by DrKonqi (5.92 KB, text/plain)
2012-06-12 08:00 UTC, Xavier Gonzalez
Details
New crash information added by DrKonqi (5.96 KB, text/plain)
2012-07-06 16:18 UTC, Xavier Gonzalez
Details
New crash information added by DrKonqi (1.68 KB, text/plain)
2012-08-08 12:07 UTC, Gary Cobb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Costelha 2010-07-29 22:59:21 UTC
Application: akonadi_googledata_resource (0.1)
KDE Platform Version: 4.4.4 (KDE 4.4.4) "release 2"
Qt Version: 4.6.3
Operating System: Linux 2.6.34-12-desktop i686
Distribution: "openSUSE 11.3 (i586)"

-- Information about the crash:
Simply try to add a googledata contacts from the KDE Resources, but always crashes..

Running on openSUSE 11.3

 -- Backtrace:
Application: Akonadi Resource (akonadi_googledata_resource), signal: Segmentation fault
[KCrash Handler]
#6  0xb5e2747b in strlen () from /lib/libc.so.6
#7  0xb5e271a6 in strdup () from /lib/libc.so.6
#8  0xb6e8705f in extract_and_check_multi (doc=0x83ad7a0, xpath_expression=0xb6ea0e85 "//atom:entry/gd:im", getContent=0, attr1=0xb6ea0d34 "address", attr2=0xb6ea0d30 "rel", attr3=
    0xb6ea0e7c "protocol", attr4=0xb6ea0d28 "primary", values=0x8394fb8, types=0x8394fc0, protocols=0x8394fbc, pref=0x8394fc8) at /usr/src/debug/libgcal-0.9.5/src/atom_parser.c:295
#9  0xb6e88c64 in atom_extract_contact (entry=0x814e138, ptr_entry=0x8394f5c) at /usr/src/debug/libgcal-0.9.5/src/atom_parser.c:753
#10 0xb6e9421b in extract_all_contacts (doc=0x80ecfd8, data_extract=0x8394b18, length=419) at /usr/src/debug/libgcal-0.9.5/src/gcal_parser.c:437
#11 0xb6e9cc1d in gcal_get_all_contacts (gcalobj=0x81598c8, length=0x810cb74) at /usr/src/debug/libgcal-0.9.5/src/gcont.c:111
#12 0xb6e9795e in gcal_get_contacts (gcalobj=0x81598c8, contact_array=0x810cb70) at /usr/src/debug/libgcal-0.9.5/src/gcontact.c:155
#13 0x0805ef46 in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2010-11-13 16:06:40 UTC
*** Bug 256680 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Feck 2010-11-13 16:07:07 UTC
*** Bug 255153 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Feck 2010-11-13 16:07:30 UTC
*** Bug 256259 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2010-11-13 16:07:54 UTC
*** Bug 256331 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2010-11-13 16:08:42 UTC
From bug 256331:

"This bug seems to be caused by libgcal 0.9.6 as also the minimal test program
for contacts on libgcal's homepage crashes with a segfault."
Comment 6 Dario Andres 2010-11-27 22:50:15 UTC
[Comment from a bug triager]
From bug 257527:
-- Information about the crash:
The akonadi_googledata agent crashes every time it is started. Akonadi tries
restarting it a few times, each giving the same result and another DrKonqi
dialog.

My data is not altered in any way, and an old cache of the data is available
(it worked in the past using older versions of libgcal and/or
akonadi-googledata)

After those few times, I can see the agent is not running (the process
akonadi_googled is not running)

An easy way to reproduce it is adding it, giving it your google login-info and
wait until it crashes (within a second)

- Another backtrace with Akonadi functions on it (KDE SC 4.5.3):
[KCrash Handler]
#6  0x00007fe85c5e4712 in strlen () from /lib/libc.so.6
#7  0x00007fe85c5e4456 in strdup () from /lib/libc.so.6
#8  0x00007fe85e0b3aec in extract_and_check_multi (doc=0xef22d0,
xpath_expression=0x7fe85e0bc5bd "//atom:entry/gd:im", getContent=0,
attr1=0x7fe85e0bc45c "address", attr2=0x7fe85e0bc458 "rel",
attr3=0x7fe85e0bc5b4 "protocol", attr4=0x7fe85e0bc47a "primary",
values=0xff1900, types=0xff1910, protocols=0xff1908, pref=0xff191c) at
../src/atom_parser.c:295
#9  0x00007fe85e0b4918 in atom_extract_contact (entry=0xf05190,
ptr_entry=0xff1850) at ../src/atom_parser.c:753
#10 0x00007fe85e0b5ad1 in extract_all_contacts (doc=0xe92dd0,
data_extract=0xfefe70, length=37) at ../src/gcal_parser.c:434
#11 0x00007fe85e0b700f in gcal_get_all_contacts (gcalobj=0xec69e0,
length=0xdf7928) at ../src/gcont.c:111
#12 0x00007fe85e0b94d6 in gcal_get_contacts (gcalobj=0xec69e0,
contact_array=0xdf7920) at ../src/gcontact.c:155
#13 0x0000000000412ef8 in GoogleContactsResource::retrieveItems (this=0xdf78d0,
collection=<value optimized out>) at
/home/matthijs/akonadi-googledata/src/akonadi-googledata-1.2.0/contacts/googledataresource.cpp:224
#14 0x00007fe85f6efa85 in ?? () from /usr/lib/libakonadi-kde.so.4
#15 0x00007fe85f6f146e in Akonadi::ResourceBase::qt_metacall(QMetaObject::Call,
int, void**) () from /usr/lib/libakonadi-kde.so.4
#16 0x000000000040ad95 in GoogleContactsResource::qt_metacall (this=0xdf78d0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff80bc6b40)
at
/home/matthijs/akonadi-googledata/src/build/contacts/googledataresource.moc:80
#17 0x00007fe85f2a133f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) () from /usr/lib/libQtCore.so.4
#18 0x00007fe85f6f2d35 in ?? () from /usr/lib/libakonadi-kde.so.4
#19 0x00007fe85f6f7744 in ?? () from /usr/lib/libakonadi-kde.so.4
#20 0x00007fe85f6f8438 in ?? () from /usr/lib/libakonadi-kde.so.4
Comment 7 Dario Andres 2010-11-27 22:50:33 UTC
*** Bug 257527 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2010-11-27 22:50:35 UTC
*** Bug 258053 has been marked as a duplicate of this bug. ***
Comment 9 omega 2010-12-02 19:07:45 UTC
Created attachment 53998 [details]
New crash information added by DrKonqi

kaddressbook (4.4.7) on KDE Platform 4.5.80 (4.6 Beta1) using Qt 4.7.1

- What I was doing when the application crashed:

application crashed trying to add/view a googledata contacts from Kaddressbook

-- Backtrace (Reduced):
#12 0x00007f259c6b6692 in QEventLoop::exec (this=0x7ffffdaf42f0, flags=...) at kernel/qeventloop.cpp:214
#13 0x00007f259c6ba9bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#14 0x0000000000405285 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../kaddressbook/main.cpp:58
Comment 10 Dario Andres 2010-12-11 21:35:41 UTC
*** Bug 259551 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2010-12-12 14:44:01 UTC
*** Bug 258407 has been marked as a duplicate of this bug. ***
Comment 12 Roman Gnatyuk 2011-01-04 19:19:39 UTC
Created attachment 55575 [details]
Check for strchr() return not NULL

Works for me
Comment 13 Dario Andres 2011-01-08 12:59:56 UTC
[Comment from a bug triager]
Upstream report: http://code.google.com/p/libgcal/issues/detail?id=69&q=extract_and_check_multi (it already contains the mentioned patch)
Comment 14 Paul van Erk 2011-01-09 02:16:54 UTC
Created attachment 55759 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (0.1) on KDE Platform 4.5.5 (KDE 4.5.5) "release 1" using Qt 4.6.3

- What I was doing when the application crashed:

Same as above: added the resource, resource tries to load: crash

-- Backtrace (Reduced):
#8  0x00007f9188e96453 in extract_and_check_multi (doc=<value optimized out>, xpath_expression=<value optimized out>, getContent=0, attr1=0x7f9188ea47a0 "address", attr2=0x7f9188ea479c "rel", attr3=
    0x7f9188ea47e2 "protocol", attr4=0x7f9188ea47be "primary", values=0xa16aa0, types=0xa16ab0, protocols=0xa16aa8, pref=0xa16abc) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007f9188e979fe in atom_extract_contact (entry=<value optimized out>, ptr_entry=0xa169f0) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007f9188e9dc36 in extract_all_contacts (doc=<value optimized out>, data_extract=<value optimized out>, length=<value optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007f9188ea1c25 in gcal_get_all_contacts (gcalobj=0x911690, length=0x875bd8) at /usr/src/debug/libgcal-0.9.6/src/gcont.c:111
#12 0x00007f9188e9f0c2 in gcal_get_contacts (gcalobj=0x911690, contact_array=0x875bd0) at /usr/src/debug/libgcal-0.9.6/src/gcontact.c:155
Comment 15 Edward Oubrayrie 2011-04-03 11:20:42 UTC
Created attachment 58533 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (0.1) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.2

- What I was doing when the application crashed:
After adding the akonadi gcal resource and on each following restart

- Custom settings of the application:
add a new akonadi-googledata-resource to akonadi

-- Backtrace (Reduced):
#7  __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:56
#8  0x08b22a95 in __strdup (s=0x1 <Address 0x1 out of bounds>) at strdup.c:42
[...]
#10 0x0033ca43 in atom_extract_contact () from /usr/lib/libgcal.so.0
#11 0x00345ce1 in extract_all_contacts () from /usr/lib/libgcal.so.0
#12 0x0034b081 in gcal_get_all_contacts () from /usr/lib/libgcal.so.0
Comment 16 Jan Drewes 2011-04-27 15:22:45 UTC
It worked fine for me for a couple of weeks, then since approx. last week it started crashing on me, too. I am not sure what caused the change. Kubuntu 10.10, KDE 4.6.1 installed via kubuntu-ppa, akonadi-googledata-1.2.0 and libgcal-0.9.6 sourced via apt then compiled manually. Note that calendar sync still works fine, just the contacts part can't be started according to akonadi. An (old/outdated) contacts database however is still available and can be used through akonadi, just no sync (with google) occurs anymore.


---backtrace---
Application: Akonadi Resource (akonadi_googledata_resource), signal: Segmentation fault
[KCrash Handler]
#6  __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
#7  0x00007f4a4c772b76 in __strdup (s=0x0) at strdup.c:42
#8  0x00007f4a4ef8da9a in extract_and_check_multi (doc=0x29a6c70, xpath_expression=0x7f4a4efa2b3d "//atom:entry/gd:im", getContent=0, attr1=0x7f4a4efa29dc "address", attr2=0x7f4a4efa29d8 "rel", attr3=0x7f4a4efa2b34 "protocol", attr4=0x7f4a4efa29fa "primary", values=0x281ba70, types=0x281ba80, protocols=0x281ba78, pref=0x281ba8c) at /usr/src/kontactfixes/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007f4a4ef8f179 in atom_extract_contact (entry=0x2954800, ptr_entry=0x281b9c0) at /usr/src/kontactfixes/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007f4a4ef98308 in extract_all_contacts (doc=0x27c4610, data_extract=0x2814040, length=119) at /usr/src/kontactfixes/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007f4a4ef9f0e9 in gcal_get_all_contacts (gcalobj=0x2365830, length=0x237efd8) at /usr/src/kontactfixes/libgcal-0.9.6/src/gcont.c:111
#12 0x00007f4a4ef9acd1 in gcal_get_contacts (gcalobj=0x2365830, contact_array=0x237efd0) at /usr/src/kontactfixes/libgcal-0.9.6/src/gcontact.c:155
#13 0x000000000041b247 in GoogleContactsResource::retrieveItems (this=<value optimized out>, collection=<value optimized out>) at /usr/src/kontactfixes/akonadi-googledata-1.2.0/contacts/googledataresource.cpp:224
#14 0x00007f4a506889d5 in Akonadi::ResourceBasePrivate::slotSynchronizeCollection (this=<value optimized out>, col=<value optimized out>) at ../../akonadi/resourcebase.cpp:572
#15 0x00007f4a5068b045 in Akonadi::ResourceBase::qt_metacall (this=0x237ef80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff94ef2da0) at ./moc_resourcebase.cpp:142
#16 0x000000000040ad25 in GoogleContactsResource::qt_metacall (this=0x0, _c=4294967295, _id=0, _a=0x1) at /usr/src/kontactfixes/akonadi-googledata-1.2.0/contacts/googledataresource.moc:80
#17 0x00007f4a5021eb27 in QMetaObject::activate (sender=0x2320660, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3280
#18 0x00007f4a5068c015 in Akonadi::ResourceScheduler::executeCollectionSync (this=0x0, _t1=<value optimized out>) at ./resourcescheduler_p.moc:141
#19 0x00007f4a5068f9cc in Akonadi::ResourceScheduler::executeNext (this=0x2320660) at ../../akonadi/resourcescheduler.cpp:275
#20 0x00007f4a5068fb98 in Akonadi::ResourceScheduler::qt_metacall (this=0x2320660, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x23dde00) at ./resourcescheduler_p.moc:116
#21 0x00007f4a50218bde in QObject::event (this=0x2320660, e=0x0) at kernel/qobject.cpp:1219
#22 0x00007f4a4d3c9fdc in QApplicationPrivate::notify_helper (this=0x22927a0, receiver=0x2320660, e=0x27ccf90) at kernel/qapplication.cpp:4396
#23 0x00007f4a4d3cfaed in QApplication::notify (this=0x7fff94ef3aa0, receiver=0x2320660, e=0x27ccf90) at kernel/qapplication.cpp:4277
#24 0x00007f4a4e92b2f6 in KApplication::notify (this=0x7fff94ef3aa0, receiver=0x2320660, event=0x27ccf90) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007f4a50206cdc in QCoreApplication::notifyInternal (this=0x7fff94ef3aa0, receiver=0x2320660, event=0x27ccf90) at kernel/qcoreapplication.cpp:732
#26 0x00007f4a50209c22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x2277610) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x2277610) at kernel/qcoreapplication.cpp:1373
#28 0x00007f4a50233653 in sendPostedEvents (s=0x229a100) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#29 postEventSourceDispatch (s=0x229a100) at kernel/qeventdispatcher_glib.cpp:277
#30 0x00007f4a4b2b7342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#31 0x00007f4a4b2bb2a8 in ?? () from /lib/libglib-2.0.so.0
#32 0x00007f4a4b2bb45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#33 0x00007f4a50233193 in QEventDispatcherGlib::processEvents (this=0x2276d00, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#34 0x00007f4a4d47ca4e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f4a50205a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#36 0x00007f4a50205dec in QEventLoop::exec (this=0x7fff94ef3a30, flags=) at kernel/qeventloop.cpp:201
#37 0x00007f4a50209ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#38 0x00007f4a50685ad2 in Akonadi::ResourceBase::init (r=0x237ef80) at ../../akonadi/resourcebase.cpp:302
#39 0x000000000040b8b8 in init<GoogleContactsResource> (argc=<value optimized out>, argv=<value optimized out>) at /usr/include/akonadi/resourcebase.h:188
#40 main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/kontactfixes/akonadi-googledata-1.2.0/contacts/googledataresource.cpp:1546
Comment 17 margueritesu 2011-05-07 20:15:39 UTC
Created attachment 59738 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (0.1) on KDE Platform 4.6.41 (4.7 >= 20110106) "release 1" using Qt 4.7.2

- What I was doing when the application crashed:
1. Background Information: 
   OS: OpenSUSE 11.5 Factory;
   Akonadi Version: 4.6.41_20110423-1.2;
   Akonadi-GoogleData Version: 1.2.0-3.1;
   libgcal version: 0.9.6-6.32

   I launched Akonadi Configuration, added Google Contacts, then Crashed.

- Custom settings of the application:
  No opportunity to custom, it just crashed suddenly after adding Google Contacts to Akonadi.

-- Backtrace (Reduced):
#8  0x00007f447c7a9403 in extract_and_check_multi (doc=<optimized out>, xpath_expression=<optimized out>, getContent=0, attr1=0x7f447c7b8140 "address", attr2=0x7f447c7b813c "rel", attr3=0x7f447c7b8182 "protocol", attr4=0x7f447c7b815e "primary", values=0x7f446a6eb600, types=0x7f446a6eb610, protocols=0x7f446a6eb608, pref=0x7f446a6eb61c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007f447c7aa9ae in atom_extract_contact (entry=<optimized out>, ptr_entry=0x7f446a6eb550) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007f447c7b14e6 in extract_all_contacts (doc=<optimized out>, data_extract=<optimized out>, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007f447c7b54c5 in gcal_get_all_contacts (gcalobj=0x8e0df0, length=0x82ae88) at /usr/src/debug/libgcal-0.9.6/src/gcont.c:111
#12 0x00007f447c7b296e in gcal_get_contacts (gcalobj=0x8e0df0, contact_array=0x82ae80) at /usr/src/debug/libgcal-0.9.6/src/gcontact.c:155
Comment 18 Zbynek Kocur 2011-05-17 06:34:36 UTC
I have the same problem on kde sc 4.6.3 and with kdepim 4.5.96.
Comment 19 Christophe Marin 2011-07-09 15:38:11 UTC
*** Bug 275377 has been marked as a duplicate of this bug. ***
Comment 20 Christophe Marin 2011-07-09 15:38:49 UTC
*** Bug 271662 has been marked as a duplicate of this bug. ***
Comment 21 Christophe Marin 2011-07-09 15:39:01 UTC
*** Bug 269983 has been marked as a duplicate of this bug. ***
Comment 22 Christophe Marin 2011-07-09 15:39:11 UTC
*** Bug 267050 has been marked as a duplicate of this bug. ***
Comment 23 Christophe Marin 2011-07-09 15:39:32 UTC
*** Bug 266954 has been marked as a duplicate of this bug. ***
Comment 24 Christophe Marin 2011-07-09 15:39:50 UTC
*** Bug 266877 has been marked as a duplicate of this bug. ***
Comment 25 Christophe Marin 2011-07-09 15:39:55 UTC
*** Bug 266076 has been marked as a duplicate of this bug. ***
Comment 26 Christophe Marin 2011-07-09 15:40:15 UTC
*** Bug 262609 has been marked as a duplicate of this bug. ***
Comment 27 Christophe Marin 2011-07-13 16:53:27 UTC
*** Bug 271724 has been marked as a duplicate of this bug. ***
Comment 28 frank 2011-07-24 22:29:47 UTC
*** This bug has been confirmed by popular vote. ***
Comment 29 Christophe Marin 2011-07-25 22:05:19 UTC
*** Bug 278494 has been marked as a duplicate of this bug. ***
Comment 30 Christophe Marin 2011-08-28 16:13:19 UTC
*** Bug 279593 has been marked as a duplicate of this bug. ***
Comment 31 Christophe Marin 2011-08-28 16:13:30 UTC
*** Bug 278785 has been marked as a duplicate of this bug. ***
Comment 32 Lukas Redynk 2011-09-06 07:17:58 UTC
Created attachment 63430 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (0.1) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.3

Bug still exist: Fedora 15 KDE, x86_64, KDE 4.6.5

-- Backtrace (Reduced):
#6  __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:32
#7  0x000000381e880606 in __GI___strdup (s=0x1 <Address 0x1 out of bounds>) at strdup.c:42
#8  0x00000037dc805c98 in extract_and_check_multi (doc=<optimized out>, xpath_expression=<optimized out>, getContent=0, attr1=0x37dc813279 "address", attr2=0x37dc813275 "rel", attr3=0x37dc8132bb "protocol", attr4=0x37dc813297 "primary", values=0x2224860, types=0x2224870, protocols=0x2224868, pref=0x222487c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00000037dc8071ed in atom_extract_contact (entry=<optimized out>, ptr_entry=0x22247b0) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00000037dc80c908 in extract_all_contacts (doc=<optimized out>, data_extract=<optimized out>, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
Comment 33 Christophe Marin 2011-09-07 13:03:29 UTC
*** Bug 281542 has been marked as a duplicate of this bug. ***
Comment 34 Adam Porter 2011-09-14 12:02:42 UTC
Would someone please patch this?  It's been available for 8 months.
Comment 35 Christophe Marin 2011-10-13 00:21:33 UTC
*** Bug 283889 has been marked as a duplicate of this bug. ***
Comment 36 Zachary Aletheia 2011-11-23 21:20:58 UTC
Created attachment 66000 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (4.7) on KDE Platform 4.7.2 (4.7.2) "release 5" using Qt 4.7.4

- What I was doing when the application crashed:

Trying to add my google contacts. After clicking add it crashing everytime.

-- Backtrace (Reduced):
#8  0x00007fa8bd0d35b8 in extract_and_check_multi (doc=<optimized out>, xpath_expression=<optimized out>, getContent=0, attr1=0x7fa8bd0e0bc5 "address", attr2=0x7fa8bd0e0bc1 "rel", attr3=0x7fa8bd0e0c07 "protocol", attr4=0x7fa8bd0e0be3 "primary", values=0xbd4740, types=0xbd4750, protocols=0xbd4748, pref=0xbd475c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007fa8bd0d4b0d in atom_extract_contact (entry=<optimized out>, ptr_entry=0xbd4690) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007fa8bd0da228 in extract_all_contacts (doc=<optimized out>, data_extract=<optimized out>, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007fa8bd0de0a5 in gcal_get_all_contacts (gcalobj=0x823760, length=0x7bf878) at /usr/src/debug/libgcal-0.9.6/src/gcont.c:111
#12 0x00007fa8bd0db68b in gcal_get_contacts (gcalobj=0x823760, contact_array=0x7bf870) at /usr/src/debug/libgcal-0.9.6/src/gcontact.c:155
Comment 37 Paul van Erk 2011-11-23 23:16:05 UTC
And just to confirm, it's still broken on 4.7.3 (openSUSE packages), as well. I think it worked for a while on KDE 4.5.x or something. But now I have to export my Google Contacts to a single vcf file (which I have set up as an Akonadi resource, of course), but that's not really how one wants integration to work. :(
Comment 38 km 2011-12-31 16:04:37 UTC
Created attachment 67280 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (4.7) on KDE Platform 4.7.4 (4.7.4) using Qt 4.8.0

- What I was doing when the application crashed:

I added Google Contacts resource in akonadi configuration and the process aconadi_googledata_resource crashed. Then it starts and crashes again and again, when akonadi tries to sync the resource.

-- Backtrace (Reduced):
#8  0x00007fb012a46403 in extract_and_check_multi (doc=<value optimized out>, xpath_expression=<value optimized out>, getContent=0, attr1=0x7fb012a55140 "address", attr2=0x7fb012a5513c "rel", attr3=0x7fb012a55182 "protocol", attr4=0x7fb012a5515e "primary", values=0xc13df0, types=0xc13e00, protocols=0xc13df8, pref=0xc13e0c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007fb012a479ae in atom_extract_contact (entry=<value optimized out>, ptr_entry=0xc13d40) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007fb012a4e4e6 in extract_all_contacts (doc=<value optimized out>, data_extract=<value optimized out>, length=<value optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007fb012a524c5 in gcal_get_all_contacts (gcalobj=0x8fc580, length=0x8676d8) at /usr/src/debug/libgcal-0.9.6/src/gcont.c:111
#12 0x00007fb012a4f96e in gcal_get_contacts (gcalobj=0x8fc580, contact_array=0x8676d0) at /usr/src/debug/libgcal-0.9.6/src/gcontact.c:155
Comment 39 Peter Antoniac 2012-01-05 18:52:26 UTC
It is unbelievable how slow this google akonadi integration work has been done. It just work against akonadi. I want to sync my calendar/contacts/emails, but if it is this buggy and I have to wait 3 years, it just doesn't serve the purpose... I am really considering Thunderbird more and more...
Comment 40 Lucas Linard 2012-01-17 00:43:36 UTC
Created attachment 67911 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (4.7) on KDE Platform 4.7.2 (4.7.2) "release 5" using Qt 4.7.4

- What I was doing when the application crashed:

- Unusual behavior I noticed:

crashes everytime I configurea  google contacts data

-- Backtrace (Reduced):
#8  0x00007f499a3155b8 in extract_and_check_multi (doc=<optimized out>, xpath_expression=<optimized out>, getContent=0, attr1=0x7f499a322bc5 "address", attr2=0x7f499a322bc1 "rel", attr3=0x7f499a322c07 "protocol", attr4=0x7f499a322be3 "primary", values=0x9dc440, types=0x9dc450, protocols=0x9dc448, pref=0x9dc45c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007f499a316b0d in atom_extract_contact (entry=<optimized out>, ptr_entry=0x9dc390) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007f499a31c228 in extract_all_contacts (doc=<optimized out>, data_extract=<optimized out>, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007f499a3200a5 in gcal_get_all_contacts (gcalobj=0x7206d0, length=0x7cc0c8) at /usr/src/debug/libgcal-0.9.6/src/gcont.c:111
#12 0x00007f499a31d68b in gcal_get_contacts (gcalobj=0x7206d0, contact_array=0x7cc0c0) at /usr/src/debug/libgcal-0.9.6/src/gcontact.c:155
Comment 41 Kees Verhagen 2012-02-22 16:48:42 UTC
Created attachment 69009 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (4.7) on KDE Platform 4.7.2 (4.7.2) "release 5" using Qt 4.7.4

- What I was doing when the application crashed: Just making up the akadoni google contacts resource after giving the login information and pushing the Ok button it crashed. Then after restarting the laptop it crashed inmiddely.

-- Backtrace (Reduced):
#8  0x00007f37354b05b8 in extract_and_check_multi (doc=<optimized out>, xpath_expression=<optimized out>, getContent=0, attr1=0x7f37354bdbc5 "address", attr2=0x7f37354bdbc1 "rel", attr3=0x7f37354bdc07 "protocol", attr4=0x7f37354bdbe3 "primary", values=0x87f060, types=0x87f070, protocols=0x87f068, pref=0x87f07c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007f37354b1b0d in atom_extract_contact (entry=<optimized out>, ptr_entry=0x87efb0) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007f37354b7228 in extract_all_contacts (doc=<optimized out>, data_extract=<optimized out>, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007f37354bb0a5 in gcal_get_all_contacts (gcalobj=0x756260, length=0x76d348) at /usr/src/debug/libgcal-0.9.6/src/gcont.c:111
#12 0x00007f37354b868b in gcal_get_contacts (gcalobj=0x756260, contact_array=0x76d340) at /usr/src/debug/libgcal-0.9.6/src/gcontact.c:155
Comment 42 Hugo Costelha 2012-05-01 10:30:53 UTC
Tried now in Ubuntu 12.04 (precise) and still get exactly the same outcome as in my first report (the one that started this bug).

Can it be due to some information or character stored in the contacts? Is there any easy/fast way to find why the crash happens? If it happens when synchronizing a specific contact?
Comment 43 Hugo Costelha 2012-05-01 10:37:04 UTC
(In reply to comment #42)
> Tried now in Ubuntu 12.04 (precise) and still get exactly the same outcome
> as in my first report (the one that started this bug).
> 
> Can it be due to some information or character stored in the contacts? Is
> there any easy/fast way to find why the crash happens? If it happens when
> synchronizing a specific contact?

Ok, I saw now that a patch has already been made available above but not integrated yet.
Comment 44 Christophe Marin 2012-05-01 12:18:37 UTC
Please don't use this resource anymore. Its author abandoned it two years ago.

Instead, please ask your distribution to provide the akonadi-google one
Comment 45 Hugo Costelha 2012-05-01 15:43:47 UTC
(In reply to comment #44)
> Please don't use this resource anymore. Its author abandoned it two years
> ago.
> 
> Instead, please ask your distribution to provide the akonadi-google one

Yes, I tryed that one and it seems to be working fine. Its homepage can be found here:
http://progdan.cz/category/akonadi-google/

And the KDE project page here: https://projects.kde.org/projects/kdereview/libkgoogle

(Check the news in those pages to find repositories of the package, while not available through the distribution own repositories)
Comment 46 Xavier Gonzalez 2012-06-12 08:00:33 UTC
Created attachment 71752 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (4.8) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.2

When trying to sync google contacts with kontact I recieve a seg fault

-- Backtrace (Reduced):
#6  __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:32
#7  0x0000003969085be6 in __GI___strdup (s=0x1 <Address 0x1 out of bounds>) at strdup.c:42
#8  0x00007f5323a80612 in extract_and_check_multi (doc=doc@entry=0x2487bd0, xpath_expression=xpath_expression@entry=0x7f5323a8e8a4 "//atom:entry/gd:im", getContent=getContent@entry=0, attr1=attr1@entry=0x7f5323a8e859 "address", attr2=attr2@entry=0x7f5323a8e855 "rel", attr3=attr3@entry=0x7f5323a8e89b "protocol", attr4=attr4@entry=0x7f5323a8e877 "primary", values=values@entry=0x21fa730, types=types@entry=0x21fa740, protocols=protocols@entry=0x21fa738, pref=pref@entry=0x21fa74c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007f5323a81b59 in atom_extract_contact (entry=<optimized out>, ptr_entry=ptr_entry@entry=0x21fa680) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007f5323a87848 in extract_all_contacts (doc=<optimized out>, data_extract=data_extract@entry=0x21ce9a0, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
Comment 47 Xavier Gonzalez 2012-07-06 16:18:46 UTC
Created attachment 72344 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (4.8) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2

- What I was doing when the application crashed:

Trying to configure and sync my gmail account in contacts

-- Backtrace (Reduced):
#6  __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:32
#7  0x0000003969085be6 in __GI___strdup (s=0x1 <Address 0x1 out of bounds>) at strdup.c:42
#8  0x0000003e05009612 in extract_and_check_multi (doc=doc@entry=0x332e200, xpath_expression=xpath_expression@entry=0x3e050178a4 "//atom:entry/gd:im", getContent=getContent@entry=0, attr1=attr1@entry=0x3e05017859 "address", attr2=attr2@entry=0x3e05017855 "rel", attr3=attr3@entry=0x3e0501789b "protocol", attr4=attr4@entry=0x3e05017877 "primary", values=values@entry=0x3094ca0, types=types@entry=0x3094cb0, protocols=protocols@entry=0x3094ca8, pref=pref@entry=0x3094cbc) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x0000003e0500ab59 in atom_extract_contact (entry=<optimized out>, ptr_entry=ptr_entry@entry=0x3094bf0) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x0000003e05010848 in extract_all_contacts (doc=<optimized out>, data_extract=data_extract@entry=0x3067bf0, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
Comment 48 Duarte Rocha 2012-07-13 13:37:14 UTC
As  a workaround, and as suggested in #Comment 44, switching to akonadi-google solved the problem.
Comment 49 Gary Cobb 2012-08-08 12:07:37 UTC
Created attachment 73047 [details]
New crash information added by DrKonqi

akonadi_googledata_resource (4.7) on KDE Platform 4.7.2 (4.7.2) "release 5" using Qt 4.7.4

- What I was doing when the application crashed:
Adding my Google account information, then akonadi crashed.

-- Backtrace (Reduced):
#8  0x00007f529b68d5b8 in extract_and_check_multi (doc=<optimized out>, xpath_expression=<optimized out>, getContent=0, attr1=0x7f529b69abc5 "address", attr2=0x7f529b69abc1 "rel", attr3=0x7f529b69ac07 "protocol", attr4=0x7f529b69abe3 "primary", values=0xa30630, types=0xa30640, protocols=0xa30638, pref=0xa3064c) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:295
#9  0x00007f529b68eb0d in atom_extract_contact (entry=<optimized out>, ptr_entry=0xa30580) at /usr/src/debug/libgcal-0.9.6/src/atom_parser.c:753
#10 0x00007f529b694228 in extract_all_contacts (doc=<optimized out>, data_extract=<optimized out>, length=<optimized out>) at /usr/src/debug/libgcal-0.9.6/src/gcal_parser.c:434
#11 0x00007f529b6980a5 in gcal_get_all_contacts (gcalobj=0x832ba0, length=0x79d828) at /usr/src/debug/libgcal-0.9.6/src/gcont.c:111
#12 0x00007f529b69568b in gcal_get_contacts (gcalobj=0x832ba0, contact_array=0x79d820) at /usr/src/debug/libgcal-0.9.6/src/gcontact.c:155
Comment 50 Denis Kurz 2016-09-24 20:31:50 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 51 Frits Spieker 2016-09-25 04:30:49 UTC
No longer present. Works fine now.