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 333738 - LDAP backend regularly crashes
LDAP backend regularly crashes
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
1.6.x (obsolete)
Other All
: Normal critical
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
: 345689 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-07 12:43 UTC by Stanislav Brabec
Modified: 2013-09-14 16:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Patch (17.34 KB, patch)
2006-08-24 11:17 UTC, Devashish Sharma
committed Details | Review

Description Stanislav Brabec 2006-03-07 12:43:01 UTC
Steps to reproduce:
1. Have a slow remode LDAP addressbook active.
2. Fill an address.
3. Before LDAP completes reply, press Backspace or other key to abort search.

The LDAP backend crashes. This bug is not easy to reproduce, but it crashes
several times in a week.

The bug is reproducible in all previous version of evolution.

Stack trace:
Backtrace from version 1.5.92 (SuSE Linux 10.1 beta6, x86_64):

Backtrace was generated from '/opt/gnome/libexec/evolution-data-server-1.6'

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47147893310160 (LWP 4588)]
[New Thread 1191504224 (LWP 22174)]
[New Thread 1233467744 (LWP 22172)]
[New Thread 1250253152 (LWP 22170)]
[New Thread 1275431264 (LWP 22168)]
[New Thread 1183111520 (LWP 22161)]
[New Thread 1090791776 (LWP 4635)]
[New Thread 1074006368 (LWP 4596)]
0x00002ae1792ef72f in __libc_waitpid (pid=22165, stat_loc=0x7fff3547d84c, 
    options=0) at waitpid.c:41
41        int result = INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL);

Thread 1 (Thread 47147893310160 (LWP 4588))

  • #0 __libc_waitpid
    at waitpid.c line 41
  • #1 do_system
    at system.c line 164
  • #2 __libc_system
    at system.c line 206
  • #3 gnome_segv_handler
  • #4 <signal handler called>
  • #5 *__GI___poll
    at poll.c line 87
  • #6 g_main_context_iterate
    at gmain.c line 2867
  • #7 g_main_loop_run
    at gmain.c line 2769
  • #8 bonobo_main
    at bonobo-main.c line 394
  • #9 main
0x00002ae1792ef72f      41        int result = INLINE_SYSCALL (wait4, 4, pid,
stat_loc, options, NULL);

Other information:
More backtraces and comments can be found in:
https://bugzilla.novell.com/show_bug.cgi?id=117813
Comment 1 Sushma Rai 2006-03-08 05:34:11 UTC
Not happening for me in Suse 10.0. 
Also traces are not showing any details of ldap backend.
Also, your older traces in Novell bugzilla look different than this.
Comment 2 Stanislav Brabec 2006-03-08 11:23:11 UTC
Oops. This crash occurred during the exactly the same operation (abort of auto-complete operation by pressing Enter on one of found entries), but in different place of code. But https://bugzilla.novell.com/show_bug.cgi?id=117813#c13 is not so old (1.5.90) and crashed in the LDAP backend.

Not easy to reproduce, it happens only few times in a week.

I am using just now 7 auto-completion address books:
Default address book (local)
Private address book (local)
SuSE address book (local, contains lists and some users)
Automatic contacts (local)
SuSE.DE (LDAP)
SuSE.CZ (LDAP, server sends a query to other LDAP servers)
Novell (GroupWise Address Book)

I will continue in observing of this bug.
Comment 3 Stanislav Brabec 2006-03-10 10:59:08 UTC
And there is a LDAP backend crash. evolution-2.5.92-6, evolution-data-server-1.5.92-5, SuSE Linux 10.1 beta7 AMD64

Backtrace was generated from '/opt/gnome/libexec/evolution-data-server-1.6'

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47724718035664 (LWP 4119)]
[New Thread 1250253136 (LWP 20576)]
[New Thread 1208289616 (LWP 20569)]
[New Thread 1099184464 (LWP 4148)]
[New Thread 1074006352 (LWP 4124)]
0x00002b67c69dc78f in __libc_waitpid (pid=20575, stat_loc=0x7fffe7d90cec, 
    options=0) at waitpid.c:41
41	  int result = INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL);

Thread 1 (Thread 47724718035664 (LWP 4119))

  • #0 __libc_waitpid
    at waitpid.c line 41
  • #1 do_system
    at system.c line 164
  • #2 __libc_system
    at system.c line 206
  • #3 gnome_segv_handler
    at server.c line 114
  • #4 <signal handler called>
  • #5 strcmp
    from /lib64/libc.so.6
  • #6 param_spec_pool_equals
    at gparam.c line 612
  • #7 g_hash_table_lookup
    at ghash.c line 202
  • #8 g_param_spec_pool_lookup
    at gparam.c line 695
  • #9 g_object_set_valist
    at gobject.c line 1057
  • #10 g_object_set
    at gobject.c line 1177
  • #11 address_populate
    at e-book-backend-ldap.c line 2992
  • #12 build_contact_from_entry
    at e-book-backend-ldap.c line 3707
  • #13 ldap_search_handler
    at e-book-backend-ldap.c line 3911
  • #14 poll_ldap
    at e-book-backend-ldap.c line 3855
  • #15 g_timeout_dispatch
    at gmain.c line 3293
  • #16 g_main_context_dispatch
    at gmain.c line 1934
  • #17 g_main_context_iterate
    at gmain.c line 2565
  • #18 g_main_loop_run
    at gmain.c line 2769
  • #19 bonobo_main
    at bonobo-main.c line 394
  • #20 main
    at server.c line 393

Comment 4 Stanislav Brabec 2006-03-10 11:13:54 UTC
And another one. It is a little different, but again in the LDAP backend:

Backtrace was generated from '/opt/gnome/libexec/evolution-data-server-1.6'

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47406787478224 (LWP 20620)]
[New Thread 1225075024 (LWP 20815)]
[New Thread 1241860432 (LWP 20804)]
[New Thread 1082399056 (LWP 20779)]
[New Thread 1074006352 (LWP 20621)]
0x00002b1dc07a778f in __libc_waitpid (pid=20793, stat_loc=0x7fffedfc63bc, 
    options=0) at waitpid.c:41
41	  int result = INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL);

Thread 1 (Thread 47406787478224 (LWP 20620))

  • #0 __libc_waitpid
    at waitpid.c line 41
  • #1 do_system
    at system.c line 164
  • #2 __libc_system
    at system.c line 206
  • #3 gnome_segv_handler
    at server.c line 114
  • #4 <signal handler called>
  • #5 __lll_mutex_unlock_wake
    from /lib64/libpthread.so.0
  • #6 __PRETTY_FUNCTION__.5849
    from /lib64/libpthread.so.0
  • #7 ??
  • #8 pthread_mutex_unlock
    from /lib64/libpthread.so.0
  • #9 ldap_search_handler
    at e-book-backend-ldap.c line 3946
  • #10 poll_ldap
    at e-book-backend-ldap.c line 3861
  • #11 g_timeout_dispatch
    at gmain.c line 3293
  • #12 g_main_context_dispatch
    at gmain.c line 1934
  • #13 g_main_context_iterate
    at gmain.c line 2565
  • #14 g_main_loop_run
    at gmain.c line 2769
  • #15 bonobo_main
    at bonobo-main.c line 394
  • #16 main
    at server.c line 393

Comment 5 Stanislav Brabec 2006-03-27 15:48:42 UTC
New backtrace for SuSE Linux 10.1 pre-RC1 packages (weekend build).

evolution-2.6.0-10
evolution-data-server-1.6.0-9

Backtrace was generated from '/opt/gnome/libexec/evolution-data-server-1.6'

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47236555182800 (LWP 11358)]
[New Thread 1208289616 (LWP 4101)]
[New Thread 1099184464 (LWP 4092)]
[New Thread 1090791760 (LWP 11568)]
[New Thread 1074006352 (LWP 11359)]
0x00002af61dd7c80f in __libc_waitpid (pid=4094, stat_loc=0x7fff909ee44c, 
    options=0) at waitpid.c:41
41	  int result = INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL);

Thread 1 (Thread 47236555182800 (LWP 11358))

  • #0 __libc_waitpid
    at waitpid.c line 41
  • #1 do_system
    at system.c line 164
  • #2 __libc_system
    at system.c line 206
  • #3 gnome_segv_handler
    at server.c line 114
  • #4 <signal handler called>
  • #5 __lll_mutex_unlock_wake
    from /lib64/libpthread.so.0
  • #6 __PRETTY_FUNCTION__.5849
    from /lib64/libpthread.so.0
  • #7 ??
  • #8 pthread_mutex_unlock
    from /lib64/libpthread.so.0
  • #9 ldap_search_handler
    at e-book-backend-ldap.c line 3946
  • #10 poll_ldap
    at e-book-backend-ldap.c line 3861
  • #11 g_timeout_dispatch
    at gmain.c line 3293
  • #12 g_main_context_dispatch
    at gmain.c line 1934
  • #13 g_main_context_iterate
    at gmain.c line 2565
  • #14 g_main_loop_run
    at gmain.c line 2769
  • #15 bonobo_main
    at bonobo-main.c line 394
  • #16 main
    at server.c line 393

Comment 6 Sushma Rai 2006-04-28 06:29:22 UTC
*** Bug 339955 has been marked as a duplicate of this bug. ***
Comment 7 Stanislav Brabec 2006-06-08 10:13:45 UTC
There is an another backtrace. This time, evolution-data-server did not crash, but evolution experienced freeze while trying to complete e-mail:

evolution backtrace:

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

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47554769297200 (LWP 1258)]
[New Thread 1124096320 (LWP 1368)]
[New Thread 1141147968 (LWP 1275)]
[New Thread 1140881728 (LWP 1273)]
[New Thread 1132489024 (LWP 1272)]
[New Thread 1115703616 (LWP 1269)]
[New Thread 1107310912 (LWP 1268)]
[New Thread 1098918208 (LWP 1266)]
[New Thread 1090525504 (LWP 1264)]
[New Thread 1082132800 (LWP 1263)]
0x00002b403175ed3f in waitpid () from /lib64/libpthread.so.0

Thread 1 (Thread 47554769297200 (LWP 1258))

  • #0 waitpid
    from /lib64/libpthread.so.0
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 749
  • #2 <signal handler called>
  • #3 pthread_cond_wait
    from /lib64/libpthread.so.0
  • #4 giop_recv_buffer_get
    from /opt/gnome/lib64/libORBit-2.so.0
  • #5 ORBit_small_invoke_stub
    from /opt/gnome/lib64/libORBit-2.so.0
  • #6 Bonobo_Unknown_unref
    at Bonobo_Unknown-stubs.c line 15
  • #7 bonobo_object_release_unref
    at bonobo-object.c line 574
  • #8 e_book_view_dispose
    at e-book-view.c line 279
  • #9 g_object_unref
    at gobject.c line 1674
  • #10 view_sequence_complete
    at e-contact-store.c line 625
  • #11 g_closure_invoke
    at gclosure.c line 492
  • #12 signal_emit_unlocked_R
    at gsignal.c line 2485
  • #13 g_signal_emit_valist
    at gsignal.c line 2244
  • #14 g_signal_emit
    at gsignal.c line 2288
  • #15 g_closure_invoke
    at gclosure.c line 492
  • #16 signal_emit_unlocked_R
    at gsignal.c line 2485
  • #17 g_signal_emit_valist
    at gsignal.c line 2244
  • #18 g_signal_emit
    at gsignal.c line 2288
  • #19 main_thread_get_response
    at e-book-view-listener.c line 70
  • #20 g_main_context_dispatch
    at gmain.c line 1934
  • #21 g_main_context_iterate
    at gmain.c line 2565
  • #22 g_main_loop_run
    at gmain.c line 2769
  • #23 bonobo_main
    at bonobo-main.c line 394
  • #24 main
    at main.c line 611
  • #0 waitpid
    from /lib64/libpthread.so.0

Comment 8 Stanislav Brabec 2006-06-08 10:15:01 UTC
evolution-data-server backtrace:

(note: both backtraces were generated by kill -11 after several minutes of no response of evolution)

Backtrace was generated from '/opt/gnome/libexec/evolution-data-server-1.6'

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47189023707232 (LWP 28859)]
[New Thread 1199896896 (LWP 3450)]
[New Thread 1191504192 (LWP 3449)]
[New Thread 1183111488 (LWP 3448)]
[New Thread 1174718784 (LWP 3447)]
[New Thread 1149540672 (LWP 3446)]
[New Thread 1225075008 (LWP 3445)]
[New Thread 1233467712 (LWP 3444)]
[New Thread 1208289600 (LWP 3442)]
[New Thread 1275431232 (LWP 3435)]
[New Thread 1250253120 (LWP 3432)]
[New Thread 1099184448 (LWP 28883)]
[New Thread 1074006336 (LWP 28860)]
0x00002aeb0c9d473f in waitpid () from /lib64/libc.so.6

Thread 1 (Thread 47189023707232 (LWP 28859))

  • #0 waitpid
    from /lib64/libc.so.6
  • #1 do_system
    from /lib64/libc.so.6
  • #2 system
    from /lib64/libc.so.6
  • #3 gnome_segv_handler
    at server.c line 114
  • #4 <signal handler called>
  • #5 __lll_mutex_lock_wait
    from /lib64/libc.so.6
  • #6 ??
  • #7 ??
  • #0 waitpid
    from /lib64/libc.so.6

Comment 9 Devashish Sharma 2006-08-24 11:15:23 UTC
*** Bug 345689 has been marked as a duplicate of this bug. ***
Comment 10 Devashish Sharma 2006-08-24 11:17:31 UTC
Created attachment 71522 [details] [review]
Patch

This patch should fix most of the issues mentioned in the bug.
Committing this patch to head, please check with head and see if you still 
observe any issues.