Bug#944915: libldap-2.4-2: Segmentation fault in "ldap_unbind_ext"

Lars Kruse devel at sumpfralle.de
Sun Nov 17 16:11:13 GMT 2019


Package: libldap-2.4-2
Version: 2.4.48+dfsg-1+b2
Severity: normal

Dear Maintainer,

I am using claws-mail from Debian testing on i386.

>From time to time claws-mail crashes. Thus I started collecting stack
traces.

Attached you find a stack trace involving "libldap_r".

The most relevant lines should be the following:

  #0  0xb77acbea in ldap_unbind_ext () at /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2
  #1  0x0821e4b8 in ldapqry_disconnect (qry=qry at entry=0x9164950) at ldapquery.c:745
  #2  0x08220256 in ldapqry_perform_search (qry=0x9164950) at ldapquery.c:914
  #3  0x08220256 in ldapqry_search (qry=0x9164950) at ldapquery.c:950
  #4  0xb772efb9 in start_thread (arg=<optimized out>) at pthread_create.c:486
  #5  0xb6430dc6 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thank you for your time!

Cheers,
Lars

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: i386 (i686)
Foreign Architectures: amd64

Kernel: Linux 5.2.0-2-686-pae (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
LSM: AppArmor: enabled

Versions of packages libldap-2.4-2 depends on:
ii  libc6           2.29-3
ii  libgnutls30     3.6.10-4
ii  libldap-common  2.4.48+dfsg-1
ii  libsasl2-2      2.1.27+dfsg-1

libldap-2.4-2 recommends no packages.

libldap-2.4-2 suggests no packages.

-- no debconf information
-------------- next part --------------
[New Thread 0xa94d9b40 (LWP 14797)]

** (claws-mail:10224): WARNING **: 11:06:04.004: [11:06:04] LDAP error (search): -1 (Unknown error)


Thread 155 "claws-mail" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xa94d9b40 (LWP 14797)]
0xb77acbea in ldap_unbind_ext () from /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2
(gdb) thread apply all bt

Thread 155 (Thread 0xa94d9b40 (LWP 14797)):
#0  0xb77acbea in ldap_unbind_ext () at /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2
#1  0x0821e4b8 in ldapqry_disconnect (qry=qry at entry=0x9164950) at ldapquery.c:745
#2  0x08220256 in ldapqry_perform_search (qry=0x9164950) at ldapquery.c:914
#3  0x08220256 in ldapqry_search (qry=0x9164950) at ldapquery.c:950
#4  0xb772efb9 in start_thread (arg=<optimized out>) at pthread_create.c:486
#5  0xb6430dc6 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 6 (Thread 0xb0effb40 (LWP 10278)):
#0  0xb7fd5871 in __kernel_vsyscall ()
#1  0xb64268b3 in __GI___poll (timeout=-1, nfds=2, fds=0xb05097b0) at ../sysdeps/unix/sysv/linux/poll.c:29
#2  0xb64268b3 in __GI___poll (fds=0xb05097b0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:26
#3  0xb6d93ae0 in g_poll () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb6d84673 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb6d847b4 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb6d84810 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb6dad7c6 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb772efb9 in start_thread (arg=<optimized out>) at pthread_create.c:486
#9  0xb6430dc6 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 2 (Thread 0xb2707b40 (LWP 10235)):
#0  0xb7fd5871 in __kernel_vsyscall ()
#1  0xb642982b in __GI___select (timeout=0xb2706c84, exceptfds=0x0, writefds=0x0, readfds=0xb2706c8c, nfds=37) at ../sysdeps/unix/sysv/linux/select.c:41
#2  0xb642982b in __GI___select (nfds=37, readfds=0xb2706c8c, writefds=0x0, exceptfds=0x0, timeout=0xb2706c84) at ../sysdeps/unix/sysv/linux/select.c:37
#3  0xb6a05102 in  () at /usr/lib/i386-linux-gnu/libetpan.so.20
#4  0xb6a02c2f in mailstream_low_read () at /usr/lib/i386-linux-gnu/libetpan.so.20
#5  0xb6a04128 in mailstream_feed_read_buffer () at /usr/lib/i386-linux-gnu/libetpan.so.20
#6  0xb6a021ee in mailstream_read_line_append () at /usr/lib/i386-linux-gnu/libetpan.so.20
#7  0xb6a02285 in mailstream_read_line () at /usr/lib/i386-linux-gnu/libetpan.so.20
#8  0xb6a0d3de in mailimap_read_line () at /usr/lib/i386-linux-gnu/libetpan.so.20
#9  0xb6a0e158 in mailimap_noop () at /usr/lib/i386-linux-gnu/libetpan.so.20
#10 0x0822ee47 in noop_run (op=0x910d910) at imap-thread.c:1133
#11 0x0825de19 in thread_run (data=0x8ed1c70) at etpan-thread-manager.c:340
#12 0xb772efb9 in start_thread (arg=<optimized out>) at pthread_create.c:486
#13 0xb6430dc6 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 1 (Thread 0xb323d7c0 (LWP 10224)):
#0  0xb7fd5871 in __kernel_vsyscall ()
#1  0xb641f064 in __GI___libc_open (file=0x8a4b190 "/home/lars/.claws-mail/addrbook/addrbook-000009.xml.tmp", oflag=<optimized out>) at ../sysdeps/unix/sysv/linux/open.c:44
#2  0xb63abd5b in __GI__IO_file_open (fp=0x98c9620, filename=0x8a4b190 "/home/lars/.claws-mail/addrbook/addrbook-000009.xml.tmp", posix_mode=577, prot=438, read_write=4, is32not64=0) at fileops.c:189
--Type <RET> for more, q to quit, c to continue without paging--c
#3  0xb63abf3f in _IO_new_file_fopen (fp=0x98c9620, filename=0x8a4b190 "/home/lars/.claws-mail/addrbook/addrbook-000009.xml.tmp", mode=<optimized out>, is32not64=0) at fileops.c:281
#4  0xb639fb88 in __fopen_internal (filename=0x8a4b190 "/home/lars/.claws-mail/addrbook/addrbook-000009.xml.tmp", mode=0x82b84e4 "wb", is32=0) at iofopen.c:75
#5  0xb63a1fd2 in _IO_fopen64 (filename=0x8a4b190 "/home/lars/.claws-mail/addrbook/addrbook-000009.xml.tmp", mode=0x82b84e4 "wb") at iofopen64.c:37
#6  0x0823c42d in claws_fopen (file=0x8a4b190 "/home/lars/.claws-mail/addrbook/addrbook-000009.xml.tmp", mode=0x82b84e4 "wb") at file-utils.c:82
#7  0x08243ce5 in prefs_write_open (path=0xd4b8c50 "/home/lars/.claws-mail/addrbook/addrbook-000009.xml") at prefs.c:88
#8  0x081eb833 in addrbook_write_to (newFile=<optimized out>, book=0x8742200) at addrbook.c:1284
#9  0x081eb833 in addrbook_save_data (book=0x8742200) at addrbook.c:1359
#10 0x081feca6 in addrindex_save_all_books (addrIndex=0x8740b30) at addrindex.c:1876
#11 0x081f3b3c in addressbook_export_to_file () at addressbook.c:4479
#12 0x081f5ea4 in addressbook_export_to_file () at addressbook.c:4476
#13 0x081f5ea4 in addressbook_refresh () at addressbook.c:696
#14 0x081fa83b in addressbook_add_contact (name=0x914a070 "Andreas", address=0x9b461f0 "foo at example.org", remarks=0x0, picture=0x0) at addressbook.c:5275
#15 0x081cb728 in add_uri_to_addrbook_cb (action=0x891ff58, textview=0x8926500) at textview.c:3208
#16 0xb6e86326 in g_closure_invoke () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#17 0xb6e99ec0 in  () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#18 0xb6ea2c91 in g_signal_emit_valist () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#19 0xb6ea3255 in g_signal_emit () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#20 0xb7aeff67 in  () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#21 0xb7af08e9 in gtk_action_activate () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#22 0xb6e86326 in g_closure_invoke () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#23 0xb6e9a043 in  () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#24 0xb6ea2c91 in g_signal_emit_valist () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#25 0xb6ea3255 in g_signal_emit () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#26 0xb7cd73dc in gtk_widget_activate () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#27 0xb7bc9bff in gtk_menu_shell_activate_item () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#28 0xb7bc9f10 in  () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#29 0xb7bb64f7 in  () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#30 0xb6e86326 in g_closure_invoke () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#31 0xb6e99565 in  () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#32 0xb6ea2403 in g_signal_emit_valist () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#33 0xb6ea3255 in g_signal_emit () at /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#34 0xb7cd88c9 in  () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#35 0xb7bb4219 in gtk_propagate_event () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#36 0xb7bb469d in gtk_main_do_event () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#37 0xb7a25619 in  () at /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0
#38 0xb6d8445d in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#39 0xb6d84709 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#40 0xb6d847b4 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#41 0xb7bb36f9 in gtk_main_iteration () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#42 0x0822e98d in threaded_run (folder=folder at entry=0x8af7f90, param=param at entry=0xbfffea64, result=result at entry=0xbfffea68, func=0x822ee20 <noop_run>) at imap-thread.c:501
#43 0x08231f5c in imap_threaded_noop (folder=0x8af7f90, p_exists=0xbfffeac4, p_recent=0xbfffeac8, p_expunge=0xbfffeacc, p_unseen=0xbfffead0, p_uidnext=0xbfffead4, p_uidval=0xbfffead8) at imap-thread.c:1155
#44 0x080e8099 in imap_cmd_noop (session=session at entry=0xced4470) at imap.c:4148
#45 0x080e9db9 in imap_ping (data=0xced4470) at imap.c:560
#46 0x080e9db9 in imap_ping (data=0xced4470) at imap.c:548
#47 0xb6d84f41 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#48 0xb6d8433c in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#49 0xb6d84709 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#50 0xb6d847b4 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#51 0xb7bb36f9 in gtk_main_iteration () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#52 0x0822e98d in threaded_run (folder=folder at entry=0x8ae7d70, param=param at entry=0xbfffec84, result=result at entry=0xbfffec88, func=0x822ee20 <noop_run>) at imap-thread.c:501
#53 0x08231f5c in imap_threaded_noop (folder=0x8ae7d70, p_exists=0xbfffece4, p_recent=0xbfffece8, p_expunge=0xbfffecec, p_unseen=0xbfffecf0, p_uidnext=0xbfffecf4, p_uidval=0xbfffecf8) at imap-thread.c:1155
#54 0x080e8099 in imap_cmd_noop (session=session at entry=0xe2c8110) at imap.c:4148
#55 0x080e9db9 in imap_ping (data=0xe2c8110) at imap.c:560
#56 0x080e9db9 in imap_ping (data=0xe2c8110) at imap.c:548
#57 0xb6d84f41 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#58 0xb6d8433c in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#59 0xb6d84709 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#60 0xb6d847b4 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#61 0xb7bb36f9 in gtk_main_iteration () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#62 0x0822e98d in threaded_run (folder=folder at entry=0x8af1410, param=param at entry=0xbfffeea4, result=result at entry=0xbfffeea8, func=0x822ee20 <noop_run>) at imap-thread.c:501
#63 0x08231f5c in imap_threaded_noop (folder=0x8af1410, p_exists=0xbfffef04, p_recent=0xbfffef08, p_expunge=0xbfffef0c, p_unseen=0xbfffef10, p_uidnext=0xbfffef14, p_uidval=0xbfffef18) at imap-thread.c:1155
#64 0x080e8099 in imap_cmd_noop (session=session at entry=0x8f6cfc0) at imap.c:4148
#65 0x080e9db9 in imap_ping (data=0x8f6cfc0) at imap.c:560
#66 0x080e9db9 in imap_ping (data=0x8f6cfc0) at imap.c:548
#67 0xb6d84f41 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#68 0xb6d8433c in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#69 0xb6d84709 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#70 0xb6d847b4 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#71 0xb7bb36f9 in gtk_main_iteration () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#72 0x0822e98d in threaded_run (folder=folder at entry=0x8ae58a0, param=param at entry=0xbffff0c4, result=result at entry=0xbffff0c8, func=0x822ee20 <noop_run>) at imap-thread.c:501
#73 0x08231f5c in imap_threaded_noop (folder=0x8ae58a0, p_exists=0xbffff124, p_recent=0xbffff128, p_expunge=0xbffff12c, p_unseen=0xbffff130, p_uidnext=0xbffff134, p_uidval=0xbffff138) at imap-thread.c:1155
#74 0x080e8099 in imap_cmd_noop (session=session at entry=0x8cc71b0) at imap.c:4148
#75 0x080e9db9 in imap_ping (data=0x8cc71b0) at imap.c:560
#76 0x080e9db9 in imap_ping (data=0x8cc71b0) at imap.c:548
#77 0xb6d84f41 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#78 0xb6d8433c in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#79 0xb6d84709 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#80 0xb6d847b4 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#81 0xb7bb36f9 in gtk_main_iteration () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#82 0x0822e98d in threaded_run (folder=folder at entry=0x8ad3310, param=param at entry=0xbffff2e4, result=result at entry=0xbffff2e8, func=0x822ee20 <noop_run>) at imap-thread.c:501
#83 0x08231f5c in imap_threaded_noop (folder=0x8ad3310, p_exists=0xbffff344, p_recent=0xbffff348, p_expunge=0xbffff34c, p_unseen=0xbffff350, p_uidnext=0xbffff354, p_uidval=0xbffff358) at imap-thread.c:1155
#84 0x080e8099 in imap_cmd_noop (session=session at entry=0xc100c20) at imap.c:4148
#85 0x080e9db9 in imap_ping (data=0xc100c20) at imap.c:560
#86 0x080e9db9 in imap_ping (data=0xc100c20) at imap.c:548
#87 0xb6d84f41 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#88 0xb6d8433c in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#89 0xb6d84709 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#90 0xb6d847b4 in g_main_context_iteration () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#91 0xb7bb36f9 in gtk_main_iteration () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#92 0x0822e98d in threaded_run (folder=folder at entry=0x8a97640, param=param at entry=0xbffff504, result=result at entry=0xbffff508, func=0x822ee20 <noop_run>) at imap-thread.c:501
#93 0x08231f5c in imap_threaded_noop (folder=0x8a97640, p_exists=0xbffff564, p_recent=0xbffff568, p_expunge=0xbffff56c, p_unseen=0xbffff570, p_uidnext=0xbffff574, p_uidval=0xbffff578) at imap-thread.c:1155
#94 0x080e8099 in imap_cmd_noop (session=session at entry=0x8e716c0) at imap.c:4148
#95 0x080e9db9 in imap_ping (data=0x8e716c0) at imap.c:560
#96 0x080e9db9 in imap_ping (data=0x8e716c0) at imap.c:548
#97 0xb6d84f41 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#98 0xb6d8433c in g_main_context_dispatch () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#99 0xb6d84709 in  () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#100 0xb6d84a41 in g_main_loop_run () at /usr/lib/i386-linux-gnu/libglib-2.0.so.0
#101 0xb7bb3475 in gtk_main () at /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#102 0x08082e21 in main (argc=<optimized out>, argv=<optimized out>) at main.c:1626



More information about the Pkg-openldap-devel mailing list