Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing typeinfo in shared libraries #2404

Closed
kpedro88 opened this issue Jan 12, 2021 · 2 comments
Closed

Missing typeinfo in shared libraries #2404

kpedro88 opened this issue Jan 12, 2021 · 2 comments

Comments

@kpedro88
Copy link
Contributor

Description
The shared libraries generated when building Triton (libtritonserver.so for the server and libgrpcclient.so for the client) don't contain typeinfo for the various custom classes.

In particular, this can interfere with use of UBSAN, which requires typeinfo for all classes. RTTI should be enabled for gcc by default; I'm not sure where in the build process the symbols are stripped.

Triton Information
What version of Triton are you using? v2.3

Are you using the Triton container or did you build it yourself? both

To Reproduce

If using container, issue the command: nm -C -D lib/libtritonserver.so
(otherwise, use the same command with any locally available libraries)

Expected behavior

typeinfo should be present.

@deadeyegoodwin
Copy link
Contributor

We don't strip symbols but we hide most symbols except the TRITONSERVER_* API. You can build yourself without applying the ldscript and see if that helps. Remove these two lines: https://github.com/triton-inference-server/server/blob/master/src/servers/CMakeLists.txt#L445-L446

@kpedro88
Copy link
Contributor Author

Many thanks, this did the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants