After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319076 - crash when syncing with palm, conduit setting copy from palm
crash when syncing with palm, conduit setting copy from palm
Status: RESOLVED DUPLICATE of bug 363102
Product: evolution-data-server
Classification: Platform
Component: Calendar
1.6.x (obsolete)
Other other
: High critical
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
evolution[conduits]
: 272436 319266 319857 320825 335969 342920 347269 348351 382879 397230 (view as bug list)
Depends on:
Blocks: 327516
 
 
Reported: 2005-10-17 15:26 UTC by Norbert Preining
Modified: 2013-09-10 13:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Stack-trace with evolution and data-server with debug symbols (9.93 KB, text/plain)
2006-05-25 23:59 UTC, Klaas Groot
Details
stack-trace made with bug-buddy with debug evolution & libraries (11.05 KB, text/plain)
2006-05-26 12:03 UTC, Klaas Groot
Details
unoptimised backtrace of save_file_when_idle / icalcomponent / pvl_head crash (2.12 KB, text/plain)
2006-12-09 10:23 UTC, Matt Davey
Details
similar but not identical backtrace to previous attachment (1.55 KB, text/plain)
2006-12-09 11:21 UTC, Matt Davey
Details
gdb session showing, perhaps, memory corruption (1.58 KB, text/plain)
2006-12-09 14:59 UTC, Matt Davey
Details

Description Norbert Preining 2005-10-17 15:26:19 UTC
Distribution: Debian testing/unstable
Package: Evolution-Data-Server
Severity: major
Version: GNOME2.10.2 1.2.x
Gnome-Distributor: Debian
Synopsis: crash when syncing with palm, conduit setting copy from palm
Bugzilla-Product: Evolution-Data-Server
Bugzilla-Component: Calendar
Bugzilla-Version: 1.2.x
BugBuddy-GnomeVersion: 2.0 (2.10.1)
Description:
Description of the crash:
While syncronizing my palm with Evolution, the e data server crashes
while the ecalconduit is active. I have the settings "Copy from Pilot"
(because Evolutions just messes up my entries in the DateBk5) and around
5000 DateBk entries.

How often does this happen?
Every time.

Additional Information:
I believe that this is a timeout error: With setting "Copy from Pilot"
first all records are deleted from calender.ics. This takes really long.
Within this time either the pilot disconnectes or gpilotd stops
communicating (I don't know, this is purely hypothetical). As a point
which makes this reasonable is that if I prior to starting evolution and
gpilotd, remove the .evolution/calender/local/system/calender.ics*, then
syncronisation (copying from the pilot) works.


Debugging Information:

Backtrace was generated from '/usr/libexec/evolution-data-server-1.2'

Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1218852192 (LWP 4613)]
[New Thread -1280877648 (LWP 18029)]
[New Thread -1231045712 (LWP 4633)]
[New Thread -1222394960 (LWP 4614)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb7630c41 in waitpid () from /lib/tls/libc.so.6

Thread 1 (Thread -1218852192 (LWP 4613))

  • #0 waitpid
    from /lib/tls/libc.so.6
  • #1 strtold_l
    from /lib/tls/libc.so.6
  • #2 system
    from /lib/tls/libc.so.6
  • #3 system
    from /lib/tls/libpthread.so.0
  • #4 server_logging_register_domain
  • #5 <signal handler called>
  • #6 pvl_head
    from /usr/lib/libecal-1.2.so.2
  • #7 icalcomponent_as_ical_string
    from /usr/lib/libecal-1.2.so.2
  • #8 icalcomponent_as_ical_string
    from /usr/lib/libecal-1.2.so.2
  • #9 e_cal_backend_file_todos_get_type
    from /usr/lib/evolution-data-server-1.2/extensions/libecalbackendfile.so
  • #10 g_child_watch_add
    from /usr/lib/libglib-2.0.so.0
  • #11 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #12 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #13 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #14 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #15 main
  • #0 waitpid
    from /lib/tls/libc.so.6




------- Bug moved to this database by unknown@gnome.bugs 2005-10-17 15:26 UTC -------


The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here, unknown@gnome.bugs.
   Previous reporter was preining@logic.at.

Comment 1 Chenthill P 2005-10-24 08:47:41 UTC
I think this has been fixed in 1.4, dinesh ?
Comment 2 André Klapper 2005-11-20 23:44:43 UTC
no, not fixed. seems like this is the best stacktrace of all those duplicates
around, so confirming this and updating version number according to bug 320825
and bug 319266.
Comment 3 André Klapper 2005-11-20 23:44:54 UTC
*** Bug 320825 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2005-11-20 23:45:13 UTC
*** Bug 319266 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2005-11-20 23:45:26 UTC
*** Bug 319857 has been marked as a duplicate of this bug. ***
Comment 6 Karsten Bräckelmann 2006-03-25 16:15:52 UTC
*** Bug 335969 has been marked as a duplicate of this bug. ***
Comment 7 Christian Kirbach 2006-05-25 21:08:10 UTC
*** Bug 342920 has been marked as a duplicate of this bug. ***
Comment 8 Christian Kirbach 2006-05-25 21:10:49 UTC
last duplicate is version 1.6

it has good steps on how to reproduce

Can anyone get us a trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so.
Comment 9 Klaas Groot 2006-05-25 23:59:55 UTC
Created attachment 66234 [details]
Stack-trace with evolution and data-server with debug symbols

You needed a backtrace with debug info. I just installed evolution-dbg (2.6.1-3) and evolution-data-server-dbg (1.6.1-2) on my Debian system and did a synchronize. Attached the trace. I hope this helps. Let me know if you need something else.

I runned KDE 3.5.2 at this time, but Gnome would do the same (as far as I can see).

I noted however a strange line about data-server 1.2 ???? (i have 1.6 installed)
Comment 10 Klaas Groot 2006-05-26 12:03:28 UTC
Created attachment 66273 [details]
stack-trace made with bug-buddy with debug evolution & libraries

Now I read the description about debugging symbols completly, and installed debug libraries libglib2.0-0-dbg, libgtk2.0-0-dbg, and libgnomevfs2-0-dbg. I allready had installed debug versions of evolution (2.6.1-3) and evolution-data-server (1.6.1-2).

Attached another stack trace with evolution and libraries with debugging information.
Comment 11 Christian Kirbach 2006-05-29 16:54:40 UTC
thanks. it has some values missing due to enabled compiler optimisations, but following is the relevant part (unless I am mistaken)

  • #5 <signal handler called>
  • #6 pvl_head
    at pvl.c line 541
  • #7 icalcomponent_as_ical_string
    at icalcomponent.c line 334
  • #8 save_file_when_idle
    at e-cal-backend-file.c line 176
  • #9 g_idle_dispatch
    at gmain.c line 3796
  • #10 IA__g_main_context_dispatch
    at gmain.c line 1916
  • #11 g_main_context_iterate
    at gmain.c line 2547

Comment 12 Christian Kirbach 2006-05-29 16:58:08 UTC
*** Bug 272436 has been marked as a duplicate of this bug. ***
Comment 13 Christian Kirbach 2006-05-29 17:01:06 UTC
last duplicate has no optimisations and a helpful trace.
Confirming report finally.


  • #6 <signal handler called>
  • #7 pvl_head
    at pvl.c line 542
  • #8 icalcomponent_as_ical_string
    at icalcomponent.c line 334
  • #9 save_file_when_idle
    at e-cal-backend-file.c line 166
  • #10 g_idle_dispatch
    at gmain.c line 3821

Comment 14 André Klapper 2006-06-15 13:47:01 UTC
reassigning bugs assigned to dinesh layek to avoid rotting.
removing old target milestone.
Comment 15 Christian Kirbach 2006-07-12 18:23:27 UTC
*** Bug 347269 has been marked as a duplicate of this bug. ***
Comment 16 craig 2006-07-13 01:57:11 UTC
One thing I have noticed when Copying from the Palm is that the CPU is pegged during the whole process. I'm wondering if this would be part of the timeout issues noticed up above.
Comment 17 Karsten Bräckelmann 2006-07-22 19:01:25 UTC
*** Bug 348351 has been marked as a duplicate of this bug. ***
Comment 18 Karsten Bräckelmann 2006-07-22 19:04:46 UTC
Another duplicate. Why the hell is this crash with a bunch of dupes targetted for Future? Removing this bad target milestone. Fix this.

Hint: pvl_head() does not like to be called with a NULL pointer...
Comment 19 Karsten Bräckelmann 2006-07-22 19:17:09 UTC
Cross reference:  Same issue with pvl_head() for bug 347775.
Comment 20 dbet1 2006-11-29 15:54:02 UTC
I have backported gnome-pilot 2.0.14 from Ubuntu Edgy to Ubuntu Dapper. With this version, evolution-data-server does not crash any more using Copy from pilot. I have more entries in my calendar as before.
Comment 21 Christian Kirbach 2006-11-29 16:32:12 UTC
Cool. You may want to talk to Sebastien Bacher, the Ubuntu packaging guru.
Comment 22 Matt Davey 2006-12-07 16:50:40 UTC
dbet1: what are you suggesting that the crash is due to the version of gnome-pilot on Dapper?  I'm not convinced;  see bug 382879 which shows what is probably yet another duplicate, occuring with gnome-pilot 2.0.15

I'm seeing the crash on Edgy.  I can provide a full non-optimised backtrace if required (similar, but not identical to above).  It's in icalcomponent.c, icalcomponent_as_ical_string.

Am happy to help, as I didn't get too far delving into e-d-s myself.
Comment 23 Christian Kirbach 2006-12-08 14:15:12 UTC
Matt: feel free to attach your trace as an attachment
Comment 24 Christian Kirbach 2006-12-08 14:21:30 UTC
*** Bug 382879 has been marked as a duplicate of this bug. ***
Comment 25 dbet1 2006-12-08 15:53:49 UTC
There are several comments about pvl_head and a NULL pointer. I think there is the problem, but I cannot verify this.
Maybe the problem is gone on my installation because I use libusb with gnome-pilot now, but I dont't think that was the problem.
Comment 26 Matt Davey 2006-12-09 10:23:28 UTC
Created attachment 78007 [details]
unoptimised backtrace of save_file_when_idle / icalcomponent / pvl_head crash

I'm attaching a backtrace and contents of an icalproperty variable whose null list is being dereferenced.
Comment 27 Matt Davey 2006-12-09 11:21:53 UTC
Created attachment 78013 [details]
similar but not identical backtrace to previous attachment
Comment 28 Matt Davey 2006-12-09 12:28:58 UTC
I tried running evolution-data-server in valgrind while doing a sync.  The sync ran slowly, particularly when syncing the calendar.  I suspect there's a ton of malloc/free calls when deleting all appointments (copy from PDA).

Interestingly, despite several tries, I wasn't able to get e-d-s to crash when running under valgrind.  Suggests to me some kind of a race condition in which the icalcomponent memory is getting corrupted while it is being converted to a string??  I don't grok the e-d-s code :(

I had been wondering whether the Ubuntu patch to port the gnome-pilot evo conduits to the pilot-link 0.12.x API could have introduced a regression, but it seems unlikely as bug 382879 looks like a dupe and was on fedora with pilot-link 0.11.8.

Is this a regression?  Can anyone say what version it appeared in?  I'm not clear from the opening of this bug what version it was first spotted in.  I may try building the e-d-s 1.6 from Dapper and e-d-s 1.9 from Feisty to see if I can narrow things down.
Comment 29 Matt Davey 2006-12-09 14:59:39 UTC
Created attachment 78026 [details]
gdb session showing, perhaps, memory corruption

Perhaps an e-d-s developer could look over this attachment.

It contains a backtrace basically identical to my last one.  I've shown the contents of the icalcomponent "impl" and "kind" and "kind_string".

Note that "kind" and "kind_string" agree that the component is a VEVENT,
but impl->kind contains ICAL_NO_COMPONENT.  I can't see from the code
how these variables should be able to disagree.  Note that optimisation
is turned off.

As I said previously, I can't get this crash when running with valgrind.

Also, I had no success installing e-d-s 1.6 or 1.9.  The inter-package dependencies are too intricate for me to bite off just now.

Hope this all helps.  I'm done for now.
Comment 30 dbet1 2006-12-09 18:39:48 UTC
In the past if I deleted all entries from the calender, e-d-s never crashed during a copy from pilot sync. It crashed only the sync has to delete all my entries first. But the crash occured not during the deletions. It beguns with the copy operation and after a while it crashes.
I hope this helps.
Comment 31 dbet1 2006-12-15 12:27:53 UTC
It seems that it makes a difference if e-d-s is running or not. I sayed that I does not have a crash since I installed gnome-pilot 2.0.14. Today I had one. After stopping e-d-s the problem was gone.

With gnome-pilot 2.0.13 the crash comes after all deletions of the records and after a while the copy was begun. With 2.0.14 the crash was very early in the beginning of the deletion phase. But only when e-d-s was running.

I hope this helps. If you wish I can give you the backtrace, but it is without symbols.
Comment 32 Matt Davey 2006-12-18 17:32:33 UTC
Interesting discussion over at bug 363102.  Seems to me that this bug is caused by the same fault: the background save_file_when_idle is saving a record that is deleted by a different thread while the operation is in progress. KaBoom.
Comment 33 Kjartan Maraas 2007-01-17 00:26:53 UTC
Could someone please look at this soon?
Comment 34 Matt Davey 2007-01-22 09:01:11 UTC
*** Bug 397230 has been marked as a duplicate of this bug. ***
Comment 35 Matt Davey 2007-02-12 09:52:00 UTC
Bug 363102 has been resolved.  The e-d-s patch has been committed to head and gnome-2-16.  So this bug should be fixed by the next 2.16 release (e-d-s 1.8.4?) and unstable (e-d-s 1.9.7 or 1.9.6.2?).
Comment 36 André Klapper 2007-06-19 23:35:34 UTC
@chen: DO use a namespace for the whitespace, please!

so, can this be closed as fixed according to the last comment?
Comment 37 Matt Davey 2007-06-20 08:52:32 UTC
I haven't verified the fix.  It would be best if dbet1 could install a version of evolution containing the fix and verify before this gets closed.
Comment 38 dbet1 2007-06-20 09:11:34 UTC
I have installed the patch from Bug 363102 for E-D-S 1.6.3 and had never a crash again while synchronization my Palm to evolution calendar. I always use Copy from PDA.

I have not tried with newer versions of evolution. If it is helpful for you I can try it with evolution 2.10 with a virtual machine.
Comment 39 Karsten Bräckelmann 2007-07-01 18:36:48 UTC
(In reply to comment #38)
> I have installed the patch from Bug 363102 for E-D-S 1.6.3 and had never a
> crash again [...]

Thanks for testing and confirming, much appreaciated! :)

According to the stacktrace this indeed is a duplicate of bug 363102. Also, got confirmation that the patch fixes it. Closing appropriately.


*** This bug has been marked as a duplicate of 363102 ***