<div dir="ltr">Hi,<div><br></div><div>I am having truly weird experiences as follows</div><div><br></div><div>1) My library, when statically linked, works fine with libverbs </div><div>2) My library, when dynamically linked, provides unpredictable errors with libverbs</div><div>3) My test programs, in main(), dynamically linked with libverbs, work OK</div><div><br></div><div>This has been reproduced in several Centos 7.6 InfiniBand networks.</div><div><br></div><div>I have done extensive debugging; as more and more functions move into main(), my program runs further.  Typically, I either segmentation violate inside libverbs ibv_ calls, or I get errno=9 in my library, depending on how much code has moved into the statically compiled main or library.</div><div><br></div><div>All my code runs fine with a dynamically built main, a statically built library (my product), and -libverbs dynamically linking.</div><div><br></div><div>Is there any known set of conditions that produces such a situation with recent libverbs?</div><div><br></div><div>Any specific things to look out for with readelf that would indicate that libfabrics is not going to link properly with a dynamic library?</div><div><br></div><div>I've read extensively on inter-dll dependencies and proper linking.  What's the best practice according to the developers of this library ? :-) </div><div><br></div><div>Thank you,</div><div>Tony Skjellum</div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Anthony Skjellum, PhD<br><a href="mailto:skjellum@gmail.com" target="_blank">skjellum@gmail.com</a><br>Cell: +1-205-807-4968<div><br><div><br></div></div></div></div></div></div>