This was reported by David Seifert. The code wasn't expecting this invocation.
https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=2d776b10dc9f4b33ec3778f6d4fddc51f9b9dcde