There are memory leaks when running the schema-reload task on 1.2.11 and 1.3.1. 1.3.2 and up do not leak:
1.2.11
==14387== 10,752 bytes in 42 blocks are definitely lost in loss record 1,486 of 1,524 ==14387== at 0x4C293AA: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==14387== by 0x4E80ACA: slapi_ch_realloc (ch_malloc.c:199) ==14387== by 0x4F1A398: slapi_valueset_add_attr_valuearray_ext (valueset.c:1070) ==14387== by 0x4F1A699: slapi_valueset_add_attr_value_ext (valueset.c:1135) ==14387== by 0x4E95B3B: str2entry_dupcheck (entry.c:1087) ==14387== by 0x4E962FD: slapi_str2entry (entry.c:1310) ==14387== by 0x4E8ED62: dse_read_one_file (dse.c:780) ==14387== by 0x4E8F0CD: dse_read_file (dse.c:863) ==14387== by 0x4F00BB2: init_schema_dse_ext (schema.c:4127) ==14387== by 0x4F012A1: slapi_reload_schema_files (schema.c:4338) ==14387== by 0x145F53EA: schemareload_thread (schema_reload.c:165) ==14387== by 0x6F70E3A: ??? (in /usr/lib64/libnspr4.so) ==14387== by 0x75AFEE4: start_thread (in /usr/lib64/libpthread-2.18.so) ==14387== by 0x78B9B8C: clone (in /usr/lib64/libc-2.18.so) ==14387== 960 bytes in 15 blocks are definitely lost in loss record 1,317 of 1,524 ==14387== at 0x4C2745D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==14387== by 0x4E809D2: slapi_ch_malloc (ch_malloc.c:155) ==14387== by 0x4F1A42B: slapi_valueset_add_attr_valuearray_ext (valueset.c:1084) ==14387== by 0x4F1A699: slapi_valueset_add_attr_value_ext (valueset.c:1135) ==14387== by 0x4E95B3B: str2entry_dupcheck (entry.c:1087) ==14387== by 0x4E962FD: slapi_str2entry (entry.c:1310) ==14387== by 0x4E8ED62: dse_read_one_file (dse.c:780) ==14387== by 0x4E8F0CD: dse_read_file (dse.c:863) ==14387== by 0x4F00BB2: init_schema_dse_ext (schema.c:4127) ==14387== by 0x4F01FFB: slapi_validate_schema_files (schema.c:4862) ==14387== by 0x145F5375: schemareload_thread (schema_reload.c:157) ==14387== by 0x6F70E3A: ??? (in /usr/lib64/libnspr4.so) ==14387== by 0x75AFEE4: start_thread (in /usr/lib64/libpthread-2.18.so) ==14387== by 0x78B9B8C: clone (in /usr/lib64/libc-2.18.so)
1.3.1
==9657== 270 (128 direct, 142 indirect) bytes in 1 blocks are definitely lost in loss record 1,142 of 1,550 ==9657== at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==9657== by 0x4E82032: slapi_ch_calloc (ch_malloc.c:243) ==9657== by 0x4E7B959: attr_syntax_new (attrsyntax.c:219) ==9657== by 0x4E7C53A: attr_syntax_dup (attrsyntax.c:732) ==9657== by 0x4E7CC84: attr_syntax_create (attrsyntax.c:961) ==9657== by 0x4E7D97C: slapi_add_internal_attr_syntax (attrsyntax.c:1433) ==9657== by 0x12A52E27: ldbm_back_add_schema (init.c:81) ==9657== by 0x4F03E3C: init_schema_dse_ext (schema.c:4179) ==9657== by 0x4F0500C: slapi_reload_schema_files (schema.c:4861) ==9657== by 0x1481544A: schemareload_thread (schema_reload.c:165) ==9657== by 0x6F76E3A: ??? (in /usr/lib64/libnspr4.so) ==9657== by 0x75B5EE4: start_thread (in /usr/lib64/libpthread-2.18.so) ==9657== by 0x78BFB8C: clone (in /usr/lib64/libc-2.18.so) ==9657== 3,481 (2,048 direct, 1,433 indirect) bytes in 16 blocks are definitely lost in loss record 1,450 of 1,550 ==9657== at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==9657== by 0x4E82032: slapi_ch_calloc (ch_malloc.c:243) ==9657== by 0x4E7B959: attr_syntax_new (attrsyntax.c:219) ==9657== by 0x4E7C53A: attr_syntax_dup (attrsyntax.c:732) ==9657== by 0x4E7CC84: attr_syntax_create (attrsyntax.c:961) ==9657== by 0x4F02828: read_at_ldif (schema.c:3495) ==9657== by 0x4F034F6: load_schema_dse (schema.c:3937) ==9657== by 0x4E93E58: dse_call_callback (dse.c:2421) ==9657== by 0x4E904B1: dse_read_one_file (dse.c:799) ==9657== by 0x4E90721: dse_read_file (dse.c:869) ==9657== by 0x4F03BFD: init_schema_dse_ext (schema.c:4138) ==9657== by 0x4F0500C: slapi_reload_schema_files (schema.c:4861) ==9657== by 0x1481544A: schemareload_thread (schema_reload.c:165) ==9657== by 0x6F76E3A: ??? (in /usr/lib64/libnspr4.so) ==9657== by 0x75B5EE4: start_thread (in /usr/lib64/libpthread-2.18.so) ==9657== by 0x78BFB8C: clone (in /usr/lib64/libc-2.18.so)
Closing since this is fixed in 1.3.2
Metadata Update from @mreynolds: - Issue set to the milestone: N/A
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/1316
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Invalid)