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 420503 - evolution-exchange crashes #3 <signal handler called> #4 0xb6d7cc2b in strlen () from /lib/tls/i686/cmov/libc.so.6
evolution-exchange crashes #3 <signal handler called> #4 0xb6d7cc2b in strl...
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
2.12.x
Other All
: Normal critical
: ---
Assigned To: Connector Maintainer
Ximian Connector QA
: 272611 368272 419120 447743 489501 499773 507025 509375 513269 518654 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-20 12:25 UTC by Reid Thompson
Modified: 2008-03-06 12:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
proposed eex patch (1.57 KB, patch)
2008-02-04 18:10 UTC, Milan Crha
committed Details | Review
Proposed patch (2.13 KB, patch)
2008-02-06 06:00 UTC, Srinivasa Ragavan
none Details | Review
updated patch (2.01 KB, patch)
2008-02-07 10:20 UTC, Bharath Acharya
committed Details | Review

Description Reid Thompson 2007-03-20 12:25:35 UTC
Steps to reproduce:
1. 
2. 
3. 


Stack trace:
Memory status: size: 72871936 vsize: 0 resident: 72871936 share: 0 rss: 17797120 rss_rlim: 0
CPU usage: start_time: 1174327684 rtime: 0 utime: 414 stime: 0 cutime:346 cstime: 0 timeout: 68 it_real_value: 0 frequency: 0

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

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1238336768 (LWP 5957)]
[New Thread -1239659616 (LWP 5959)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1238336768 (LWP 5957))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 strlen
    from /lib/tls/i686/cmov/libc.so.6
  • #5 vfprintf
    from /lib/tls/i686/cmov/libc.so.6
  • #6 vasprintf
    from /lib/tls/i686/cmov/libc.so.6
  • #7 IA__g_vasprintf
    at gprintf.c line 311
  • #8 g_string_append_printf_internal
    at gstring.c line 898
  • #9 IA__g_string_append_printf
    at gstring.c line 925
  • #10 patch_msg
    at e2k-context.c line 1387
  • #11 e2k_context_bproppatch_start
    at e2k-context.c line 1581
  • #12 e_folder_exchange_bproppatch_start
    at e-folder-exchange.c line 886
  • #13 mark_read
    at mail-stub-exchange.c line 1423
  • #14 process_flags
    at mail-stub-exchange.c line 1660
  • #15 g_timeout_dispatch
    at gmain.c line 3422
  • #16 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #17 g_main_context_iterate
    at gmain.c line 2677
  • #18 IA__g_main_loop_run
    at gmain.c line 2881
  • #19 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #20 main
    at main.c line 238
  • #0 __kernel_vsyscall


Other information:
svn build 20070313
Comment 1 Reid Thompson 2007-03-20 20:31:19 UTC
terminal output from evo-exchange:
th=[/personal/Outbox]
exchange-account.c(1846):: key=[/personal/RickNociti/mail folders/projects/bellsouth/no surf]    folder-path=[/personal/RickNociti/mail folders/projects/bellsouth/no surf]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/Inbox/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/Inbox/]

** (bug-buddy:15100): WARNING **: Couldn't load icon for Epiphany Web Bookmarks

** (bug-buddy:15100): WARNING **: Couldn't load icon for Open Folder
---------------------------------------------
terminal output from evo:
trthompso@jhereg:~$ cat /tmp/evolution0.out
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/]
error : unterminated entity reference            Exit
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/SymRx-DrugFair/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/telecom/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/team%20notes/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/team%20notes/old/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/projects/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/projects/walmart%20ivr/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/projects/target/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/projects/kmart/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/projects/giant%20eagle/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/projects/bellsouth/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/ateb%20support/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/RickNociti/mail%20folders/ateb/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/Plaxo%20Backup/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/Java/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/Inbox/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/Inbox/TelecomGroup/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/AtebInternal/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/NON_IPM_SUBTREE/Shortcuts]
uri_string[http://sr002-2k3exc.ateb.com/public/-FlatUrlSpace-/c7050ee93f17d84e9dc3257248c1b461-3c3d24]
uri_string[http://sr002-2k3exc.ateb.com/public/]
uri_string[http://sr002-2k3exc.ateb.com/exchange/Reid.Thompson/NON_IPM_SUBTREE/]

(evolution-2.10:3737): evolution-mail-WARNING **: ignored this junk plugin: not enabled or we have already loaded one

(evolution-2.10:3737): e-utils-WARNING **: Plugin 'Spamassassin junk plugin' failed to load hook 'org.gnome.evolution.mail.junk:1.0'
** (evolution-2.10:3737): DEBUG: mailto URL command: evolution %s
** (evolution-2.10:3737): DEBUG: mailto URL program: evolution
(evolution-2.10:3737): e-data-server-DEBUG: Loading categories from "/home/rthompso/.evolution/categories.xml"
(evolution-2.10:3737): e-data-server-DEBUG: Loaded 29 categories
camel-Message: --
camel-Message: --
find: /home/rthompso/.mozilla/firefox/ynemrguy.default/CT293774: Permission denied
find: /home/rthompso/.mozilla/firefox/ynemrguy.default/CT293774: Permission denied
BBDB spinning up...
adding certinfo Thawte Freemail Member <vivek@khera.org>
adding certinfo Thawte Freemail Member <vivek@khera.org>
adding certinfo Thawte Freemail Member <vivek@khera.org>
in emp_apps_open_in
in emp_apps_open_in
------------------------------------------


Memory status: size: 72716288 vsize: 0 resident: 72716288 share: 0 rss: 17633280 rss_rlim: 0
CPU usage: start_time: 1174406404 rtime: 0 utime: 744 stime: 0 cutime:490 cstime: 0 timeout: 254 it_real_value: 0 frequency: 0

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

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1237931264 (LWP 3713)]
[New Thread -1239254112 (LWP 3715)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1237931264 (LWP 3713))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 strlen
    from /lib/tls/i686/cmov/libc.so.6
  • #5 vfprintf
    from /lib/tls/i686/cmov/libc.so.6
  • #6 vfprintf
    from /lib/tls/i686/cmov/libc.so.6
  • #7 vfprintf
    from /lib/tls/i686/cmov/libc.so.6
  • #8 fprintf
    from /lib/tls/i686/cmov/libc.so.6
  • #9 soup_uri_new_with_base
    at soup-uri.c line 70
  • #10 soup_uri_new
    at soup-uri.c line 250
  • #11 soup_message_new
    at soup-message.c line 289
  • #12 e2k_soup_message_new
    at e2k-context.c line 794
  • #13 e2k_soup_message_new_full
    at e2k-context.c line 822
  • #14 patch_msg
    at e2k-context.c line 1417
  • #15 e2k_context_proppatch
    at e2k-context.c line 1457
  • #16 set_important_flag
    at mail-stub-exchange.c line 1547
  • #17 process_flags
    at mail-stub-exchange.c line 1647
  • #18 g_timeout_dispatch
    at gmain.c line 3422
  • #19 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #20 g_main_context_iterate
    at gmain.c line 2677
  • #21 IA__g_main_loop_run
    at gmain.c line 2881
  • #22 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #23 main
    at main.c line 238
  • #0 __kernel_vsyscall

Comment 2 André Klapper 2007-08-21 14:04:40 UTC
*** Bug 419120 has been marked as a duplicate of this bug. ***
Comment 3 André Klapper 2008-01-31 22:48:21 UTC
*** Bug 447743 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2008-01-31 22:48:26 UTC
*** Bug 507025 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2008-01-31 22:48:30 UTC
*** Bug 509375 has been marked as a duplicate of this bug. ***
Comment 6 André Klapper 2008-01-31 22:48:45 UTC
*** Bug 513269 has been marked as a duplicate of this bug. ***
Comment 7 Milan Crha 2008-02-04 18:10:30 UTC
Created attachment 104416 [details] [review]
proposed eex patch

for evolution-exchange;

Based on the stacktrace, I guess the part of the url was freed between unlock of g_changed_msgs_mutex and usage of this url, so I changed it to use copies of that portion of string.

Are you able to test this patch, please? Because I cannot reproduce it myself. Thanks in advance.
Comment 8 Reid Thompson 2008-02-04 18:48:59 UTC
patch applied and building agains SVN HEAD.
Comment 9 Veerapuram Varadhan 2008-02-05 13:55:08 UTC
(In reply to comment #7)
> Created an attachment (id=104416) [edit]
> proposed eex patch
> 
> for evolution-exchange;
> 
> Based on the stacktrace, I guess the part of the url was freed between unlock
> of g_changed_msgs_mutex and usage of this url, so I changed it to use copies of
> that portion of string.
> 
> Are you able to test this patch, please? Because I cannot reproduce it myself.
> Thanks in advance.
> 

Patch looks good. Please commit to both STABLE branch and trunk. 
Comment 10 Milan Crha 2008-02-05 15:28:03 UTC
Marking as reviewed only, because Bharath said it doesn't fix it completely.
Comment 11 Srinivasa Ragavan 2008-02-05 16:05:49 UTC
No need for stable, as we dont make any more releases there.

Comment 12 Srinivasa Ragavan 2008-02-06 06:00:06 UTC
Milan you patch is needed along with mine. Patch follows.
Comment 13 Srinivasa Ragavan 2008-02-06 06:00:36 UTC
Created attachment 104536 [details] [review]
Proposed patch
Comment 14 Srinivasa Ragavan 2008-02-06 06:02:36 UTC
It adds
(*) better locks where ever needed
(*) The changed_messages array should be unique. 

Note: That it can fix most of the crashers that arises from process_flags (I remember I saw quite a few of them)
Comment 15 Srinivasa Ragavan 2008-02-06 06:02:58 UTC
Credits to Bharath, who helped be understand the bits there.
Comment 16 Bharath Acharya 2008-02-06 06:36:58 UTC
*** Bug 499773 has been marked as a duplicate of this bug. ***
Comment 17 Bharath Acharya 2008-02-06 07:37:17 UTC
*** Bug 489501 has been marked as a duplicate of this bug. ***
Comment 18 Milan Crha 2008-02-06 10:49:12 UTC
I guess we can commit them together, when someone reviews your patch. I can wait for it.
Comment 19 Srinivasa Ragavan 2008-02-07 04:52:46 UTC
Milan, we have tested it and it should be fine to get it in. Lets commit it for 2.21.91
Comment 20 Bharath Acharya 2008-02-07 06:13:18 UTC
*** Bug 368272 has been marked as a duplicate of this bug. ***
Comment 21 Bharath Acharya 2008-02-07 10:20:47 UTC
Created attachment 104623 [details] [review]
updated patch

I noticed a small problem with the previous patch. Just updating it in here.
Comment 22 Srinivasa Ragavan 2008-02-07 10:23:46 UTC
Cool. You got it right.
Comment 23 Milan Crha 2008-02-07 12:24:32 UTC
Committed to trunk. Committed revision 1557.

Notice I merged those to patches into one and I disabled your debug printf calls.
Comment 24 Bharath Acharya 2008-02-22 11:00:43 UTC
*** Bug 272611 has been marked as a duplicate of this bug. ***
Comment 25 Kandepu Prasad 2008-03-06 12:52:17 UTC
*** Bug 518654 has been marked as a duplicate of this bug. ***