{"action":"created","issue":{"url":"https://api.github.com/repos/ReOpen/ReOpenLDAP/issues/60","labels_url":"https://api.github.com/repos/ReOpen/ReOpenLDAP/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/ReOpen/ReOpenLDAP/issues/60/comments","events_url":"https://api.github.com/repos/ReOpen/ReOpenLDAP/issues/60/events","html_url":"https://github.com/ReOpen/ReOpenLDAP/issues/60","id":119321235,"number":60,"title":"MINOR: slapd could segfault on shutdown","user":{"login":"leo-yuriev","id":6241554,"avatar_url":"https://avatars.githubusercontent.com/u/6241554?v=3","gravatar_id":"","url":"https://api.github.com/users/leo-yuriev","html_url":"https://github.com/leo-yuriev","followers_url":"https://api.github.com/users/leo-yuriev/followers","following_url":"https://api.github.com/users/leo-yuriev/following{/other_user}","gists_url":"https://api.github.com/users/leo-yuriev/gists{/gist_id}","starred_url":"https://api.github.com/users/leo-yuriev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo-yuriev/subscriptions","organizations_url":"https://api.github.com/users/leo-yuriev/orgs","repos_url":"https://api.github.com/users/leo-yuriev/repos","events_url":"https://api.github.com/users/leo-yuriev/events{/privacy}","received_events_url":"https://api.github.com/users/leo-yuriev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReOpen/ReOpenLDAP/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-28T22:20:23Z","updated_at":"2015-12-01T03:39:23Z","closed_at":null,"body":"Seems that is a bug related to pthread_key_create()/pthread_key_delete(). The probability of reproducing is approximately 1/500 per one run.\r\n\r\n```\r\nThread 2 (Thread 0x2b3771ec8140 (LWP 27508)):\r\n#0  fairly (value=<optimized out>) at hipagut.c:184\r\n#1  lber_hug_probe (self=0x2a58910, n42=1668249189) at hipagut.c:220\r\n#2  lber_hug_memchk_probe (payload=payload@entry=0x2a588f0, tag=tag@entry=0, length=0x0, sequence=0x0) at hipagut.c:333\r\n#3  lber_hug_memchk_ensure (payload=payload@entry=0x2a588f0, tag=tag@entry=0) at hipagut.c:346\r\n#4  0x00000000004f3075 in ber_bvarray_free_x (a=0x2a588f0, ctx=ctx@entry=0x0) at memory.c:635\r\n#5  0x00000000004f49f0 in ber_bvarray_free (a=<optimized out>) at memory.c:652\r\n#6  0x00000000004b1101 in attr_clean (a=a@entry=0x28cb5d8) at attr.c:136\r\n#7  0x00000000004b5f9f in attrs_free (a=0x28cb5d8) at attr.c:198\r\n#8  0x00000000004b609c in entry_clean (e=e@entry=0x28b2408) at entry.c:471\r\n#9  0x00000000004b612f in entry_free (e=0x28b2408) at entry.c:481\r\n#10 0x00000000004bbaf4 in monitor_entry_destroy (v_mc=0x2a58290) at cache.c:425\r\n#11 0x00000000005041da in avl_free (root=0x2a58cf0, dfree=dfree@entry=0x4bba89 <monitor_entry_destroy>) at avl.c:515\r\n#12 0x00000000005041af in avl_free (root=0x2a598b0, dfree=dfree@entry=0x4bba89 <monitor_entry_destroy>) at avl.c:509\r\n#13 0x00000000005041c8 in avl_free (root=0x2a56c20, dfree=dfree@entry=0x4bba89 <monitor_entry_destroy>) at avl.c:512\r\n#14 0x00000000005041c8 in avl_free (root=0x2a55620, dfree=dfree@entry=0x4bba89 <monitor_entry_destroy>) at avl.c:512\r\n#15 0x00000000005041af in avl_free (root=0x2a445c0, dfree=dfree@entry=0x4bba89 <monitor_entry_destroy>) at avl.c:509\r\n#16 0x00000000005041c8 in avl_free (root=0x2a3b930, dfree=dfree@entry=0x4bba89 <monitor_entry_destroy>) at avl.c:512\r\n#17 0x00000000004c4021 in monitor_cache_destroy (mi=0x7f23f0 <monitor_info>) at cache.c:436\r\n#18 monitor_back_db_destroy (be=0x2837180, cr=<optimized out>) at init.c:2555\r\n#19 0x0000000000450d56 in backend_destroy_one (bd=0x2837180, dynamic=dynamic@entry=1) at backend.c:441\r\n#20 0x0000000000452db2 in backend_destroy () at backend.c:482\r\n#21 slap_destroy () at init.c:251\r\n#22 0x000000000040d0ef in main (argc=<optimized out>, argv=<optimized out>) at main.c:1053\r\n\r\nThread 1 (Thread 0x2b3781801700 (LWP 27620)):\r\n#0  0x00002b37722f8cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56\r\n#1  0x00002b37722fc0d8 in __GI_abort () at abort.c:89\r\n#2  0x00002b3772335394 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x2b3772443b28 \"*** Error in `%s': %s: 0x%s ***\\n\") at ../sysdeps/posix/libc_fatal.c:175\r\n#3  0x00002b377234166e in malloc_printerr (ptr=<optimized out>, str=0x2b3772443cf0 \"double free or corruption (fasttop)\", action=1) at malloc.c:4996\r\n#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840\r\n#5  0x00002b37720abf82 in __nptl_deallocate_tsd () at pthread_create.c:158\r\n#6  0x00002b37720ac195 in start_thread (arg=0x2b3781801700) at pthread_create.c:325\r\n#7  0x00002b37723bc47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111\r\n```"},"comment":{"url":"https://api.github.com/repos/ReOpen/ReOpenLDAP/issues/comments/160842982","html_url":"https://github.com/ReOpen/ReOpenLDAP/issues/60#issuecomment-160842982","issue_url":"https://api.github.com/repos/ReOpen/ReOpenLDAP/issues/60","id":160842982,"user":{"login":"leo-yuriev","id":6241554,"avatar_url":"https://avatars.githubusercontent.com/u/6241554?v=3","gravatar_id":"","url":"https://api.github.com/users/leo-yuriev","html_url":"https://github.com/leo-yuriev","followers_url":"https://api.github.com/users/leo-yuriev/followers","following_url":"https://api.github.com/users/leo-yuriev/following{/other_user}","gists_url":"https://api.github.com/users/leo-yuriev/gists{/gist_id}","starred_url":"https://api.github.com/users/leo-yuriev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo-yuriev/subscriptions","organizations_url":"https://api.github.com/users/leo-yuriev/orgs","repos_url":"https://api.github.com/users/leo-yuriev/repos","events_url":"https://api.github.com/users/leo-yuriev/events{/privacy}","received_events_url":"https://api.github.com/users/leo-yuriev/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T03:39:23Z","updated_at":"2015-12-01T03:39:23Z","body":"```\r\nThread 2 (Thread 0x7fc38d43db80 (LWP 433)):\r\n#0  0x00007fc38a0b178d in _int_free (av=0x7fc38a3f5c00 <main_arena>, p=0x2487b50, have_lock=0) at malloc.c:3914\r\n#1  0x00007fc38a0b589c in __GI___libc_free (mem=<optimised out>) at malloc.c:2950\r\n#2  0x000000000056e97e in ldap_attributetype_free (at=at@entry=0x2487bd0) at schema.c:2039\r\n#3  0x000000000047a4d9 in at_destroy_one (v=0x2487d10) at at.c:312\r\n#4  0x0000000000553c72 in avl_free (root=0x2487d60, dfree=dfree@entry=0x47a4a7 <at_destroy_one>) at avl.c:515\r\n#5  0x0000000000553c47 in avl_free (root=0x248a440, dfree=dfree@entry=0x47a4a7 <at_destroy_one>) at avl.c:509\r\n#6  0x0000000000553c60 in avl_free (root=0x2482a60, dfree=dfree@entry=0x47a4a7 <at_destroy_one>) at avl.c:512\r\n#7  0x0000000000553c60 in avl_free (root=0x24a3270, dfree=dfree@entry=0x47a4a7 <at_destroy_one>) at avl.c:512\r\n#8  0x0000000000553c60 in avl_free (root=0x2462040, dfree=dfree@entry=0x47a4a7 <at_destroy_one>) at avl.c:512\r\n#9  0x0000000000553c47 in avl_free (root=0x2476ee0, dfree=dfree@entry=0x47a4a7 <at_destroy_one>) at avl.c:509\r\n#10 0x000000000047a85e in at_destroy () at at.c:328\r\n#11 0x0000000000476e96 in schema_destroy () at schema_init.c:6860\r\n#12 0x000000000042e2c8 in main (argc=<optimised out>, argv=<optimised out>) at main.c:1099\r\n\r\nThread 1 (Thread 0x7fc386e6a700 (LWP 517)):\r\n#0  0x00007fc38a066267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55\r\n#1  0x00007fc38a067eca in __GI_abort () at abort.c:89\r\n#2  0x00007fc38a0a9c53 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7fc38a1c21a8 \"*** Error in `%s': %s: 0x%s ***\\n\") at ../sysdeps/posix/libc_fatal.c:175\r\n#3  0x00007fc38a0b1c69 in malloc_printerr (ptr=<optimised out>, str=0x7fc38a1c2270 \"double free or corruption (fasttop)\", action=1) at malloc.c:4965\r\n#4  _int_free (av=<optimised out>, p=<optimised out>, have_lock=0) at malloc.c:3834\r\n#5  0x00007fc38a0b589c in __GI___libc_free (mem=<optimised out>) at malloc.c:2950\r\n#6  0x00007fc38b767359 in __nptl_deallocate_tsd () at pthread_create.c:175\r\n#7  0x00007fc38b76876d in __nptl_deallocate_tsd () at ../sysdeps/unix/sysv/linux/exit-thread.h:36\r\n#8  start_thread (arg=0x7fc386e6a700) at pthread_create.c:346\r\n#9  0x00007fc38a137eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109\r\n```"}}