Start a conversation

Using exasock with third party LD_PRELOAD libraries

Some third party libraries, such as Google's tcmalloc, can crash when used with exasock.

These crashes can occur when such libraries assume that they are the only library being preloaded, or that they are the last code to execute before the application's initializers and main() are called.

Many of these crashes can be avoided by manually ensuring that exasock is loaded after such libraries. For example, to run a program "abc.bin" with both exasock accelerated sockets and tcmalloc's fast malloc(), instead of using the exasock script, simply invoke the program as:

$ LD_PRELOAD="/path/to/libtcmalloc.so /path/to/libexasock_preload.so" abc.bin

An alternative workaround is to build the application with the third party library linked statically, rather than dynamically.

 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Phil Manuel

  2. Posted
  3. Updated

Comments