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 508447 - Crash in set_attachment_list at e-cal-component.c line 1568
Crash in set_attachment_list at e-cal-component.c line 1568
Status: RESOLVED INCOMPLETE
Product: evolution
Classification: Applications
Component: Calendar
2.28.x (obsolete)
Other All
: High critical
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
evolution[attachments]
: 373708 511271 516480 520457 525960 532630 613899 615380 615381 615382 615383 615496 615502 615551 615709 615737 615739 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-01-10 08:01 UTC by Russell Harrison
Modified: 2010-07-16 04:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
test patch (1.21 KB, text/plain)
2009-08-20 12:02 UTC, Milan Crha
Details
Attachment which causes crash (16.48 KB, text/html)
2010-02-11 06:48 UTC, Akhil Laddha
Details

Description Russell Harrison 2008-01-10 08:01:26 UTC
Version: 2.12

What were you doing when the application crashed?
Starting evolution


Distribution: Fedora release 8 (Werewolf)
Gnome Release: 2.20.2 2007-11-27 (Red Hat, Inc)
BugBuddy Version: 2.20.1

System: Linux 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:59 EST 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10300000
Selinux: Enforcing
Accessibility: Disabled
GTK+ Theme: Nodoka
Icon Theme: Fedora

Memory status: size: 88231936 vsize: 88231936 resident: 18837504 share: 8695808 rss: 18837504 rss_rlim: 4294967295
CPU usage: start_time: 1199951923 rtime: 70 utime: 60 stime: 10 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/libexec/evolution-exchange-storage'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1209108192 (LWP 25996)]
[New Thread -1223021680 (LWP 26052)]
[New Thread -1212261488 (LWP 26000)]
0x00110402 in __kernel_vsyscall ()

Thread 2 (Thread -1223021680 (LWP 26052))

  • #0 __kernel_vsyscall
  • #1 waitpid
    from /lib/libpthread.so.0
  • #2 g_spawn_sync
    from /lib/libglib-2.0.so.0
  • #3 g_spawn_command_line_sync
    from /lib/libglib-2.0.so.0
  • #4 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #5 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #6 google_breakpad::ExceptionHandler::InternalWriteMinidump
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #7 google_breakpad::ExceptionHandler::HandleException
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #8 <signal handler called>
  • #9 strlen
    from /lib/libc.so.6
  • #10 e_cal_component_set_attachment_list
    at e-cal-component.c line 1570
  • #11 add_ical
  • #12 get_changed_events
    at e-cal-backend-exchange-calendar.c line 476
  • #13 ??
    from /lib/libglib-2.0.so.0
  • #14 start_thread
    from /lib/libpthread.so.0
  • #15 clone
    from /lib/libc.so.6


----------- .xsession-errors (21398 sec old) ---------------------
Watching directory /home/rusharri/Documents/personal/moin/data/pages/PE111(2f)HomeworkAssignment6/revisions (total watches = 1173)
** (trackerd:2827): WARNING **: could not open 
Watching directory /home/rusharri/Documents/personal/moin/data/pages/PE111(2f)HomeworkAssignment6/cache (total watches = 1174)
** (trackerd:2827): WARNING **: could not open 
Watching directory /home/rusharri/Documents/personal/moin/data/pages/VMware(2f)Licensing_Information/revisions (total watches = 1175)
** (trackerd:2827): WARNING **: could not open 
Watching directory /home/rusharri/Documents/personal/moin/data/pages/VMware(2f)Licensing_Information/cache (total watches = 1176)
** (trackerd:2827): WARNING **: could not open 
Watching directory /home/rusharri/Documents/personal/moin/data/pages/CategoryTravel/revisions (total watches = 1177)
...Too much output, ignoring rest...
--------------------------------------------------
Comment 1 Akhil Laddha 2008-02-06 08:01:26 UTC
*** Bug 511271 has been marked as a duplicate of this bug. ***
Comment 2 Akhil Laddha 2008-03-06 14:58:19 UTC
*** Bug 516480 has been marked as a duplicate of this bug. ***
Comment 3 Akhil Laddha 2008-03-06 14:58:33 UTC
*** Bug 520457 has been marked as a duplicate of this bug. ***
Comment 4 Akhil Laddha 2008-05-13 09:09:59 UTC
*** Bug 525960 has been marked as a duplicate of this bug. ***
Comment 5 Akhil Laddha 2008-05-13 09:11:49 UTC
bug 525960 has better traces 
Comment 6 Akhil Laddha 2008-08-11 03:42:16 UTC
*** Bug 373708 has been marked as a duplicate of this bug. ***
Comment 7 Akhil Laddha 2008-10-21 06:06:34 UTC
*** Bug 532630 has been marked as a duplicate of this bug. ***
Comment 8 Akhil Laddha 2009-08-04 10:15:46 UTC
No more duplicates in last 10 months.

This version is no longer maintained, which means that it will not receive any
further security or bug fix updates.
The current stable GNOME and Evolution version is 2.26.

Can you please check again whether this issue still happens in Evolution 2.24
or 2.26 and update this report by adding a comment and changing the "Version"
field? Thanks a lot.

Again thank you for reporting this bug and we are sorry it could not be fixed
for the version you originally used here.

Without feedback this report will be closed as INCOMPLETE in 4 weeks.
Comment 9 Akhil Laddha 2009-08-20 11:37:08 UTC
I got similar crash in 2.27.91 while testing a patch 

gdb traces of eex process

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb3fa1b90 (LWP 11438)]
0xb6353743 in strlen () from /lib/libc.so.6
(gdb) t a a bt

Thread 6 (Thread 0xb3fa1b90 (LWP 11438))

  • #0 strlen
    from /lib/libc.so.6
  • #1 set_attachment_list
    at e-cal-component.c line 1568
  • #2 e_cal_component_set_attachment_list
    at e-cal-component.c line 1625
  • #3 get_changed_tasks
    at e-cal-backend-exchange-tasks.c line 900
  • #4 g_thread_create_proxy
    at gthread.c line 635
  • #5 start_thread
    from /lib/libpthread.so.0
  • #6 clone
    from /lib/libc.so.6

Comment 10 Milan Crha 2009-08-20 11:57:27 UTC
I believe it failed to save the attachment, thus the strlen parameter is NULL.
Comment 11 Milan Crha 2009-08-20 12:02:27 UTC
Created attachment 141240 [details]
test patch

for evolution-exchange;

this is not fixing the crash, it's only printing on console (I'm not sure which console, though) what filename is used. Maybe only some filename escaping is necessary. See lines beginning with "save_attach_file:" before the crash.
Comment 12 Akhil Laddha 2010-02-05 05:54:57 UTC
I got crash again. Debug messages on e-calendar-factory with your test patch 

** (e-calendar-factory:16402): WARNING **: renew_subscription: 400 Bad Request
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20091203T060719Z-3991-100-3990-120@lakhil-genesis-xed
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20091203T060719Z-3991-100-3990-120@lakhil-genesis-xed'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20091202T094406Z-8329-100-1-424@lakhil-genesis-
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20091202T094406Z-8329-100-1-424@lakhil-genesis-'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20091202T094307Z-8329-100-1-321@lakhil-genesis-
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20091202T094307Z-8329-100-1-321@lakhil-genesis-'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/{A145B80D-5003-4FE9-BE83-595801FCDE8A}-error.png
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/%7BA145B80D-5003-4FE9-BE83-595801FCDE8A%7D-error.png'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20091119T115651Z-24002-100-1-318@lakhil-genesis-mixed
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20091119T115651Z-24002-100-1-318@lakhil-genesis-mixed'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20091119T115119Z-22729-100-22728-24@lakhil-genesis-ng
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20091119T115119Z-22729-100-22728-24@lakhil-genesis-ng'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/1252062051.23202.1.camel@sled11.labs.blr.novell.com-fix in sled11
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/1252062051.23202.1.camel@sled11.labs.blr.novell.com-fix%20in%20sled11'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/{0180036B-5693-403C-A33D-6D8119A4D1B7}-offline_store.png
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/%7B0180036B-5693-403C-A33D-6D8119A4D1B7%7D-offline_store.png'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/{43E11C5D-2496-438A-953B-C07F46ACF40A}-autocompletion_crash
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/%7B43E11C5D-2496-438A-953B-C07F46ACF40A%7D-autocompletion_crash'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/{43E11C5D-2496-438A-953B-C07F46ACF40A}-error.png
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/%7B43E11C5D-2496-438A-953B-C07F46ACF40A%7D-error.png'
Missing separate debuginfo for /usr/lib/gconv/ISO8859-1.so
Try: zypper install -C "debuginfo(build-id)=cd4630f99c8266a77b5b7e2a82e888cd15565ae6"
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20091027T092949Z-4892-100-1-113@lakhil-genesis-·
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20091027T092949Z-4892-100-1-113@lakhil-genesis-%C2%B7'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20090723T044623Z-1212-100-757-58@sled10sp3-bug-266228_white_png.png
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20090723T044623Z-1212-100-757-58@sled10sp3-bug-266228_white_png.png'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20090723T044623Z-1212-100-757-58@sled10sp3-eds_cpu_100
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20090723T044623Z-1212-100-757-58@sled10sp3-eds_cpu_100'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20090720T070604Z-11587-100-1-41@lakhil-genesis-.png
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20090720T070604Z-11587-100-1-41@lakhil-genesis-.png'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20090624T081449Z-23856-100-1-69@sled10-sp3-bug-266228_white_gif.gif
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20090624T081449Z-23856-100-1-69@sled10-sp3-bug-266228_white_gif.gif'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20090604T035637Z-4471-100-1-11@lakhil-genesis-!
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20090604T035637Z-4471-100-1-11@lakhil-genesis-!'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20090603T124210Z-22537-100-1-12@lakhil-genesis-
save_attach_file: using the dest_url: 'file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20090603T124210Z-22537-100-1-12@lakhil-genesis-'
save_attach_file: dest_file is :/home/lakhil/.evolution/exchange/exchange___chen;auth=Basic@server_ip_;personal_Calendar/20090603T124210Z-22537-100-1-12@lakhil-genesis-xchange/exchange___chen%3Bauth=Basic@server_ip_%3Bpersonal_Calendar/20090603T124210Z-22537-100-1-12@lakhil-genesis/change
save_attach_file: open of destination file for attachments failed
save_attach_file: using the dest_url: '[null]'
Comment 13 Milan Crha 2010-02-08 17:48:17 UTC
Good, thanks for the update. From what I see all the above attachments were files targeted directly to 
> file:///home/lakhil/.evolution/exchange/exchange___chen%3Bauth=Basic@server_
> ip_%3Bpersonal_Calendar/

but the last one was trying to create a subfolder in there, and there the file "change". Could you try to find the task with UID
> 20090603T124210Z-22537-100-1-12@lakhil-genesis
and see what is special about it, please? I would use an Outlook probably, as Evolution has issues with it. The first part of UID shows when the task was created, it may help a bit with findings, if you created it for the similar day. If you can sanitize it, and attach here, then even better.

I guess it's trying to use the attachment file name (where is the slash included), or the task has more than one attachment.
Comment 14 Akhil Laddha 2010-02-11 06:48:55 UTC
Created attachment 153508 [details]
Attachment which causes crash

I guess crash is due to typical file name which evolution gave after attaching the file in the meeting.
Comment 15 Akhil Laddha 2010-03-25 10:45:51 UTC
*** Bug 613899 has been marked as a duplicate of this bug. ***
Comment 16 Milan Crha 2010-03-29 17:12:53 UTC
Hrm, I cannot reproduce this, I do not know how to create an event/task on an exchange server which will have an attachment with a file name containing forward slash. Could anyone of you try one thing for me, please?
a) close evolution
b) run: evolution --force-shutdown
c) erase your local cache by running (carefully): rm ~/.evolution/exchange -rf
d) run backend as: E2K_DEBUG=5 $PREFIX/libexec/e-calendar-factory &>ecf.log
   ($PREFIX is your build prefix, can be also /usr; 'libexec' can be 'lib')
e) run evolution on another console
Either it'll crash immediately when it will fetch the offending event, or when you select a time range where this one occurs. The ecf.log file should show the filename used with the bad event, as stored on the server. I would like to see this. It's like a mime message.

If your log will not contain the E2K log, then configure evolution-exchange with --enable-e2k-debug parameter, compile it and try again.

Thanks in advance.
Comment 17 Akhil Laddha 2010-04-11 13:18:30 UTC
*** Bug 615381 has been marked as a duplicate of this bug. ***
Comment 18 Akhil Laddha 2010-04-11 13:18:57 UTC
*** Bug 615382 has been marked as a duplicate of this bug. ***
Comment 19 Akhil Laddha 2010-04-11 13:19:04 UTC
*** Bug 615383 has been marked as a duplicate of this bug. ***
Comment 20 Akhil Laddha 2010-04-11 13:19:11 UTC
*** Bug 615380 has been marked as a duplicate of this bug. ***
Comment 21 Akhil Laddha 2010-04-12 08:53:16 UTC
*** Bug 615496 has been marked as a duplicate of this bug. ***
Comment 22 Akhil Laddha 2010-04-12 10:14:18 UTC
*** Bug 615502 has been marked as a duplicate of this bug. ***
Comment 23 Akhil Laddha 2010-04-12 10:17:38 UTC
Karel.Brenkman, could you please follow steps mentioned in comment#16 and provide us required information, tia.
Comment 24 Fabio Durán Verdugo 2010-04-12 18:27:27 UTC
*** Bug 615551 has been marked as a duplicate of this bug. ***
Comment 25 Akhil Laddha 2010-04-14 07:47:11 UTC
*** Bug 615709 has been marked as a duplicate of this bug. ***
Comment 26 Fabio Durán Verdugo 2010-04-15 02:28:14 UTC
*** Bug 615739 has been marked as a duplicate of this bug. ***
Comment 27 Fabio Durán Verdugo 2010-04-15 02:28:37 UTC
*** Bug 615737 has been marked as a duplicate of this bug. ***
Comment 28 Tobias Mueller 2010-05-31 10:07:31 UTC
Hm. Akhil, can you still reproduce this?
Or any of the other reporters?
Comment 29 Akhil Laddha 2010-07-16 04:01:26 UTC
Closing this bug report as no further information has been provided. Please 
feel free to reopen the bug if the problem still occurs with a newer
version of GNOME 2.30.2 or later, thanks.