3 ms·
I experienced something similar in my data-driven permission restriction DSO. Turns out I was calling my initialization function multiple times because the syst
by Erwin 9y ago
I experienced something similar in my data-driven permission restriction DSO. Turns out I was calling my initialization function multiple times because the system calls I overrode were called before my attribute((constructor)) function.
I'd recommend running your program under gdb with a breakpoint in your function and checking out what the stack is like. Maybe your function is getting called from an unexpected place.
In my case I was overriding fopen64 but glibc wanted to open some NSS related files before my init function was called.