T-DOSE is a free and yearly event held in The Netherlands to promote use and development of Open Source Software. During this event, Open Source projects, developers and visitors can exchange ideas and knowledge. This year's event will be held at the Fontys University of Applied Science in Eindhoven on 11 May 2019.

Search form

Search

Find Us On...

You are here

Code instrumentation with LD_PRELOAD

Ever built a binary that showed wrong behaviour that you couldn't pinpoint despite various testing, logging, and tracing? Ever had to deal with a 3rd party binary library (without source) that needed a bit of tweaking? Have you never experienced these issues, but are you afraid that you might do so in the future?

No need to worry on an average Linux system, as it has the necessary tools available to tackle these problems. The dynamic linker/loader (ld-linux.so) has the capability to instrument your application. All you have to do is write your instrumentation code, put it in a shared library and restart your application using LD_PRELOAD.

Jan Smout explains how the dynamic linker/loader is involved, where LD_PRELOAD fits into this picture and shows which pitfalls to avoid. He will guide you through the possibilities with real-life examples. Visit this presentation to learn how to effectively use this mechanism for your benefit!