Dear all, I have found the reason. It is not really a bug in dlopen() but something I would consider a weakness. It turned out that -fPIC was missing when linking the libraries that later failed. Why this crashes *sometimes* and not always is someting I don't really understand. And there *might* or *should* be a flag within an executable file that tells if it was compiled -fPIC or not. And dlopen() *should* complain if it can't properly relocate such a module.
Thanks to all who have given me support!
Nikolaus Schaller