Skip to content

Skip cleanup for built-in modules#34

Merged
abbra merged 2 commits into
latchset:mainfrom
simo5:invalid_free
Jun 18, 2026
Merged

Skip cleanup for built-in modules#34
abbra merged 2 commits into
latchset:mainfrom
simo5:invalid_free

Conversation

@simo5

@simo5 simo5 commented Jun 18, 2026

Copy link
Copy Markdown
Member

Return early from verto_cleanup when BUILTIN_MODULE is defined. This prevents unloading module records and destroying global mutexes when the library is compiled statically, as dynamic module cleanup is unnecessary for built-in modules.

This is the proper fix for the valgrind issues posted on PR #33

Return early from verto_cleanup when BUILTIN_MODULE is defined. This prevents
unloading module records and destroying global mutexes when the library is
compiled statically, as dynamic module cleanup is unnecessary for built-in
modules.

Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5 simo5 requested a review from frozencemetery June 18, 2026 14:02
Remove the centos:8 distribution target from the GitHub Actions CI workflow
matrix. CentOS 8 has reached its End of Life (EOL) and is no longer
maintained, making it obsolete for ongoing automated testing.

Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5

simo5 commented Jun 18, 2026

Copy link
Copy Markdown
Member Author
==2422135== Invalid free() / delete / delete[] / realloc()
==2422135==    at 0x486FC0B: free (in /nix/store/z3k1ih7g5njqnbhns0anx8mw6zqjs1z3-valgrind-3.26.0/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2422135==    by 0x4BF028D: verto_cleanup (in /nix/store/5cbjxz04crbjnawysjx5q717gvbsx7k8-krb5-1.22.1-lib/lib/libverto.so.0.0)
==2422135==    by 0x4007741: main (in /nix/store/rzikw3qzjasaam0cicns5j8n3vzmg6kc-gssproxy-0.9.2/bin/gssproxy)
==2422135==  Address 0x4bf7020 is 0 bytes inside data symbol "builtin_record"

culrpit snippet from #33 (comment)

@abbra

abbra commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

LGTM. The CentOS8 failure is due to it removed from CentOS mirroring already, so the second commit that makes us to not test on CentOS8 is correct.

@abbra abbra merged commit 8e944f2 into latchset:main Jun 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants