[openib-general] Re: [PATH] problem dlopen libibverbs.so

Michael S. Tsirkin mst at mellanox.co.il
Wed Jul 20 07:57:28 PDT 2005


Quoting r. Gleb Natapov <glebn at voltaire.com>:
> Subject: Re: [PATH] problem dlopen libibverbs.so
> 
> On Wed, Jul 20, 2005 at 05:24:22PM +0300, Michael S. Tsirkin wrote:
> > Quoting r. Gleb Natapov <glebn at voltaire.com>:
> > > It appears that libmthca relies on back linking to find symbols from
> > > libibverbs but back linking doesn't work in the later case.
> > > 
> > > I linked libmthca with libibverbs and this solved the problem.
> > 
> > I wander, however, what happends if you load libibverbs from path
> > a, and mthca is linked with libibverbs from path b?
> > Any idea?
>
> If two libibverbs are different it can fail or even crash I think.
> This is the same as if libibverb tries to load libmthca compiled from
> different svn revision.

May be a problem then: it might be quite hard to debug such crashes.

What about passing RTLD_GLOBAL to dlopen, instead?


-- 
MST



More information about the general mailing list