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 333224 - Evolution crashed when modified time of exchange appointment
Evolution crashed when modified time of exchange appointment
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.22.x (obsolete)
Other Linux
: High critical
: ---
Assigned To: Milan Crha
Evolution QA team
: 335443 338951 339381 341430 342200 344960 352327 353055 353156 353965 355741 372297 374662 381183 382208 404058 421570 425642 429247 446306 461715 470887 476236 485074 496673 513428 518646 523593 526568 531539 532238 538892 542073 543912 552819 556096 556450 564788 566901 568238 569972 570970 (view as bug list)
Depends on:
Blocks: 318200
 
 
Reported: 2006-03-03 08:44 UTC by Poornima
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (782 bytes, patch)
2006-09-29 18:56 UTC, Srinivasa Ragavan
reviewed Details | Review
Updated patch (3.44 KB, patch)
2006-10-03 08:59 UTC, Srinivasa Ragavan
committed Details | Review
proposed evo patch (1.74 KB, patch)
2008-07-04 12:53 UTC, Milan Crha
committed Details | Review

Description Poornima 2006-03-03 08:44:56 UTC
Created a recurring appointment. In day view to increase end time dragged the lower end of the appointment slot, evolution crashed. 
Traces indicates tool tip crash.

Evolution stack traces.

Backtrace was generated from '/opt/gnome/bin/evolution'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1233311392 (LWP 9384)]
[New Thread -1332479072 (LWP 9401)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1233311392 (LWP 9384))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_init_with_popt_table
    from /opt/gnome/lib/libgnomeui-2.so.0
  • #3 segv_redirect
    at main.c line 422
  • #4 <signal handler called>
  • #5 e_calendar_view_get_tooltips
    at e-calendar-view.c line 1992
  • #6 g_source_get_current_time
    from /opt/gnome/lib/libglib-2.0.so.0
  • #7 g_main_context_dispatch
    from /opt/gnome/lib/libglib-2.0.so.0
  • #8 g_main_context_check
    from /opt/gnome/lib/libglib-2.0.so.0
  • #9 g_main_loop_run
    from /opt/gnome/lib/libglib-2.0.so.0
  • #10 bonobo_main
    from /opt/gnome/lib/libbonobo-2.so.0
  • #11 main
    at main.c line 610
  • #0 __kernel_vsyscall

Reproducible always.

Evolution version 2.5.92.
Comment 1 André Klapper 2006-03-22 23:28:39 UTC
*** Bug 335443 has been marked as a duplicate of this bug. ***
Comment 2 André Klapper 2006-03-22 23:28:47 UTC
confirming as per duplicate.
Comment 3 Poornima 2006-04-19 05:55:44 UTC
*** Bug 338951 has been marked as a duplicate of this bug. ***
Comment 4 Poornima 2006-04-19 05:57:19 UTC
This is not specific to appointment in exchange calendar, it is reproducible
with GW & personal calendar as well.
Comment 5 André Klapper 2006-05-02 21:48:58 UTC
srini, i'm pretty sure this is the same crash as in bug 340312, bug 340416 (which provides an explanation how to reproduce) and bug 339030.

this bites many people, it seems.
Comment 6 Poornima 2006-05-11 12:23:22 UTC
*** Bug 339381 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2006-05-18 10:09:03 UTC
*** Bug 342200 has been marked as a duplicate of this bug. ***
Comment 8 Sebastien Bacher 2006-07-31 14:08:43 UTC
Ubuntu bug about that: https://launchpad.net/products/evolution/+bug/49576
Comment 9 André Klapper 2006-08-22 01:22:01 UTC
*** Bug 352327 has been marked as a duplicate of this bug. ***
Comment 10 André Klapper 2006-08-27 12:39:00 UTC
*** Bug 353055 has been marked as a duplicate of this bug. ***
Comment 11 André Klapper 2006-08-28 02:34:45 UTC
*** Bug 353156 has been marked as a duplicate of this bug. ***
Comment 12 André Klapper 2006-08-28 02:42:24 UTC
guess that bug 334692 is the same/similar.
targetting to 2.8, many duplicates.
Comment 13 Karsten Bräckelmann 2006-09-02 15:21:45 UTC
*** Bug 353965 has been marked as a duplicate of this bug. ***
Comment 14 Karsten Bräckelmann 2006-09-13 10:40:28 UTC
*** Bug 355741 has been marked as a duplicate of this bug. ***
Comment 15 Srinivasa Ragavan 2006-09-29 18:56:11 UTC
Created attachment 73666 [details] [review]
Proposed patch
Comment 16 Srinivasa Ragavan 2006-09-29 18:57:34 UTC
This patch disables the annoyingly popping tooltip when editing an appointment or dragging it, which is the source of the crash. This should solve multiple problems around tooltip in day/work-week view.
Comment 17 Harish Krishnaswamy 2006-09-30 13:17:19 UTC
Srini - I will let you make a call if you want the tooltips disabled while dragging an event but it is not the source of the crash or the multiple problems around tooltip.

From the code :
e_calendar_view_get_tooltips (ECalendarViewEventData *data)
{
        <snip>
	const char *str;
        <snip>
       	str = icalcomponent_get_summary (pevent->comp_data->icalcomp);
        /* Here, str is assigned a const char * to the memory belonging to ical */

        <snip>
        
       	e_cal_component_get_location (newcomp, &str);
        /* This call attempts to overwrite that memory - obviously leading to a                
           crash*/

The variable str must not be reused for the second call or atleast should not be pointing to ical *AND* sufficient memory should be allocated before &str is used.
Comment 18 Harish Krishnaswamy 2006-09-30 13:54:17 UTC
mea culpa. Guess I need to catch up with my sleep :-/.

The above usage of &str is indeed valid and does not need allocation as str only gets assigned to a different pointer.
The issue seems to be this part : 

	if (!e_cal_component_set_icalcomponent (newcomp, clone_comp))
		g_warning ("couldn't update calendar component with modified data from backend\n");

where even if clone_comp fails to get set into newcomp - the rest of the code attempts to use the values inside newcomp.



Comment 19 Harish Krishnaswamy 2006-09-30 14:03:21 UTC
if (!e_cal_component_set_icalcomponent (newcomp, clone_comp)) 
{
		g_warning ("couldn't update calendar component with modified data from backend\n");
		g_object_unref (newcomp);
		g_free (data);
		return FALSE;
}
should solve the problem instead. Srini ?
Comment 20 Srinivasa Ragavan 2006-09-30 18:21:38 UTC
Harish, if you lookinto the stack trace bug 336555 , bug 340416 and many more you can see the crash occuring at line number 1991 (old line number which is)

[Switching to Thread 1099448800 (LWP 22684)]
0x41d40e5e in e_calendar_view_get_tooltips (data=0x8d561a0) at
e-calendar-view.c:1991
1991            clone_comp = icalcomponent_new_clone
(pevent->comp_data->icalcomp);


This particular line is just before what you pointed out. Im sure that what you pointed out is also a issue, but not at all related to the tooltip crashers. In this particular case, the PEVENT structure points to a PTRArray which has the relative memory removed for the event and the tooltip time out triggered for a removed event. that is the reason for all these crashers. Ive fixed a lot of similiar issues in tooltip for month view too. Im sure, this is the best problem. When a event is dragged or resized the event is removed from ptrarray, also tooltip will annoying at that point. Hope Ive clarified ur point.
Comment 21 Srinivasa Ragavan 2006-10-03 08:59:39 UTC
Created attachment 73922 [details] [review]
Updated patch
Comment 22 Harish Krishnaswamy 2006-10-16 11:21:48 UTC
The updated patch looks good. Please add the ChangeLog before committing it into the gnome-2-16 branch and the trunk.
Comment 23 Harish Krishnaswamy 2006-10-16 12:39:14 UTC
Committed to HEAD.
Comment 24 Srinivasa Ragavan 2006-10-16 13:04:31 UTC
to stable also.
Comment 25 Karsten Bräckelmann 2006-11-08 22:15:24 UTC
*** Bug 372297 has been marked as a duplicate of this bug. ***
Comment 26 André Klapper 2006-12-05 02:34:07 UTC
*** Bug 374662 has been marked as a duplicate of this bug. ***
Comment 27 André Klapper 2006-12-05 02:34:12 UTC
*** Bug 382208 has been marked as a duplicate of this bug. ***
Comment 28 palfrey 2007-02-04 13:51:54 UTC
*** Bug 404058 has been marked as a duplicate of this bug. ***
Comment 29 Pascal Terjan 2007-04-08 23:03:11 UTC
*** Bug 421570 has been marked as a duplicate of this bug. ***
Comment 30 Pascal Terjan 2007-04-08 23:03:24 UTC
*** Bug 425642 has been marked as a duplicate of this bug. ***
Comment 31 palfrey 2007-04-26 14:07:15 UTC
*** Bug 429247 has been marked as a duplicate of this bug. ***
Comment 32 André Klapper 2007-12-19 03:53:44 UTC
reopening as per duplicates.
Comment 33 André Klapper 2007-12-19 03:53:48 UTC
*** Bug 446306 has been marked as a duplicate of this bug. ***
Comment 34 André Klapper 2007-12-19 03:53:52 UTC
*** Bug 461715 has been marked as a duplicate of this bug. ***
Comment 35 André Klapper 2007-12-19 03:53:54 UTC
*** Bug 470887 has been marked as a duplicate of this bug. ***
Comment 36 André Klapper 2007-12-19 03:53:56 UTC
*** Bug 476236 has been marked as a duplicate of this bug. ***
Comment 37 André Klapper 2007-12-19 03:53:59 UTC
*** Bug 496673 has been marked as a duplicate of this bug. ***
Comment 38 Srinivasa Ragavan 2007-12-19 05:49:39 UTC
Anything on 2.12? IIRC I changed a few things in that area. Donno if it is fixed with 2.12.
Comment 39 Akhil Laddha 2008-02-28 06:03:28 UTC
*** Bug 518646 has been marked as a duplicate of this bug. ***
Comment 40 Akhil Laddha 2008-02-28 06:04:36 UTC
last dup in debian (gnome 2.20.x)
Comment 41 Akhil Laddha 2008-05-08 13:58:53 UTC
*** Bug 531539 has been marked as a duplicate of this bug. ***
Comment 42 Akhil Laddha 2008-05-08 13:59:25 UTC
last dup in debian (gnome 2.22.x)
Comment 43 Akhil Laddha 2008-06-19 04:15:46 UTC
*** Bug 532238 has been marked as a duplicate of this bug. ***
Comment 44 Akhil Laddha 2008-06-19 04:16:40 UTC
*** Bug 538892 has been marked as a duplicate of this bug. ***
Comment 45 Milan Crha 2008-07-04 12:31:47 UTC
*** Bug 523593 has been marked as a duplicate of this bug. ***
Comment 46 Milan Crha 2008-07-04 12:32:48 UTC
*** Bug 513428 has been marked as a duplicate of this bug. ***
Comment 47 Milan Crha 2008-07-04 12:33:28 UTC
*** Bug 485074 has been marked as a duplicate of this bug. ***
Comment 48 Milan Crha 2008-07-04 12:35:18 UTC
*** Bug 344960 has been marked as a duplicate of this bug. ***
Comment 49 Milan Crha 2008-07-04 12:53:24 UTC
Created attachment 113987 [details] [review]
proposed evo patch

for evolution;

During some work on other bug I was able to reproduce this and did a patch too. The patch contains also a little optimalization, but I doubt it will be noticeable.

Anyway, as I found some other duplicates then I found also that the reason was given by Li in bug #344960 comment 2 some time ago.
Comment 50 Johnny Jacob 2008-07-08 21:45:40 UTC
*** Bug 542073 has been marked as a duplicate of this bug. ***
Comment 51 Akhil Laddha 2008-07-21 05:04:03 UTC
*** Bug 543912 has been marked as a duplicate of this bug. ***
Comment 52 Akhil Laddha 2008-08-07 06:02:30 UTC
*** Bug 381183 has been marked as a duplicate of this bug. ***
Comment 53 Milan Crha 2008-09-18 16:15:37 UTC
*** Bug 526568 has been marked as a duplicate of this bug. ***
Comment 54 Kandepu Prasad 2008-09-19 10:42:35 UTC
*** Bug 552819 has been marked as a duplicate of this bug. ***
Comment 55 Akhil Laddha 2008-10-16 03:13:11 UTC
*** Bug 556450 has been marked as a duplicate of this bug. ***
Comment 56 Milan Crha 2008-12-09 18:13:35 UTC
*** Bug 556096 has been marked as a duplicate of this bug. ***
Comment 57 Milan Crha 2008-12-09 18:20:41 UTC
Committed to trunk. Committed revision 36858.

... I hate to do this but this takes way too long. Please reopen if you face in 2.25.3 or later. Thanks.
Comment 58 Milan Crha 2008-12-09 18:26:55 UTC
*** Bug 341430 has been marked as a duplicate of this bug. ***
Comment 59 palfrey 2009-01-07 15:22:56 UTC
*** Bug 566901 has been marked as a duplicate of this bug. ***
Comment 60 Akhil Laddha 2009-01-19 05:25:23 UTC
*** Bug 568238 has been marked as a duplicate of this bug. ***
Comment 61 Akhil Laddha 2009-02-02 11:29:29 UTC
*** Bug 569972 has been marked as a duplicate of this bug. ***
Comment 62 André Klapper 2009-02-09 00:13:47 UTC
*** Bug 570970 has been marked as a duplicate of this bug. ***
Comment 63 Milan Crha 2009-02-19 18:06:13 UTC
*** Bug 564788 has been marked as a duplicate of this bug. ***