What can make dlclose() fail?

188 Views Asked by At

On a POSIX (or GNU) system, what can make the dlclose() function fail?

I know that it fails on repeat-close; and that it misbehaves on a null pointer argument (got a segmentation violation on my system). But are there other situations it can fail?

Edit: I tried looking at the source code and was kind of stumped - could not really figure out where to look (dlclose.c is not the place apparently).

1

There are 1 best solutions below

1
On

The actual implementation is here.

Look for calls to _dl_signal_error() -- there are two.