URL:
https://github.com/SSSD/sssd/pull/677
Title: #677: pcre: port to pcre2
jhrozek commented:
"""
CI detected some memory leaks on RHEL-7:
```
=11224== 228 bytes in 1 blocks are possibly lost in loss record 256 of 384
==11224== at 0x4C29BC3: malloc (vg_replace_malloc.c:299)
==11224== by 0x6F328F0: pcre_compile2 (in /usr/lib64/libpcre.so.1.2.0)
==11224== by 0x54F56CB: sss_regexp_new (sss_regexp.c:90)
==11224== by 0x54E90C4: sss_names_init_from_args (usertools.c:173)
==11224== by 0x41713E: mock_domain (common_dom.c:205)
==11224== by 0x41713E: create_multidom_test_ctx (common_dom.c:269)
==11224== by 0x417225: create_dom_test_ctx (common_dom.c:304)
==11224== by 0x410C2A: nested_groups_test_setup (test_nested_groups.c:607)
==11224== by 0x410E72: nested_group_external_member_setup (test_nested_groups.c:826)
==11224== by 0x4E3AA45: ??? (in /usr/lib64/libcmocka.so.0.5.0)
==11224== by 0x4E3B312: _cmocka_run_group_tests (in /usr/lib64/libcmocka.so.0.5.0)
==11224== by 0x404A8E: main (test_nested_groups.c:1330)
==11224==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: possible
fun:malloc
fun:pcre_compile2
fun:sss_regexp_new
fun:sss_names_init_from_args
fun:mock_domain
fun:create_multidom_test_ctx
fun:create_dom_test_ctx
fun:nested_groups_test_setup
fun:nested_group_external_member_setup
obj:/usr/lib64/libcmocka.so.0.5.0
fun:_cmocka_run_group_tests
fun:main
}
==11224== 228 bytes in 1 blocks are possibly lost in loss record 257 of 384
==11224== at 0x4C29BC3: malloc (vg_replace_malloc.c:299)
==11224== by 0x6F328F0: pcre_compile2 (in /usr/lib64/libpcre.so.1.2.0)
==11224== by 0x54F56CB: sss_regexp_new (sss_regexp.c:90)
==11224== by 0x54E90C4: sss_names_init_from_args (usertools.c:173)
==11224== by 0x41713E: mock_domain (common_dom.c:205)
==11224== by 0x41713E: create_multidom_test_ctx (common_dom.c:269)
==11224== by 0x417225: create_dom_test_ctx (common_dom.c:304)
==11224== by 0x410C2A: nested_groups_test_setup (test_nested_groups.c:607)
==11224== by 0x4E3AA97: ??? (in /usr/lib64/libcmocka.so.0.5.0)
==11224== by 0x4E3B1CD: _cmocka_run_group_tests (in /usr/lib64/libcmocka.so.0.5.0)
==11224== by 0x404A8E: main (test_nested_groups.c:1330)
==11224==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: possible
fun:malloc
fun:pcre_compile2
fun:sss_regexp_new
fun:sss_names_init_from_args
fun:mock_domain
fun:create_multidom_test_ctx
fun:create_dom_test_ctx
fun:nested_groups_test_setup
obj:/usr/lib64/libcmocka.so.0.5.0
fun:_cmocka_run_group_tests
fun:main
}
```
Can you check them, please?
"""
See the full comment at
https://github.com/SSSD/sssd/pull/677#issuecomment-429984629