HomeClusterLabs Projects
Diffusion LibQB 1a7ea3b8d8bf

log: don't call dlopen inside dl_iterate_phdr()

Description

log: don't call dlopen inside dl_iterate_phdr()

Some platforms (eg. FreeBSD 10+) don't support calling dlopen() from
within a dl_iterate_phdr() callback; so save all of the dlpi_names to
a list and iterate over them afterwards.

This fixes a deadlock which occurs in dlopen() when called from
within dl_iterate_phdr() on FreeBSD 10+ when linked to libthr.

Patch from dpejesh on github.
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>

Details

Provenance
chrissie-cAuthored on Oct 1 2015, 10:01 AM
Parents
rQb635cc9703d0: tests: Allow more time for stress_connections tests
Branches
Unknown
Tags
Unknown

Event Timeline