* Shared library interceptor/SIGSEGV
@ 2001-07-09 14:11 Julien Laganier
0 siblings, 0 replies; only message in thread
From: Julien Laganier @ 2001-07-09 14:11 UTC (permalink / raw)
To: Linux Mailing List
Hi folks,
I have written a library for intercepting outgoing network connections,
and redirecting them through a proxy server.
The user had to set LD_PRELOAD to load my library, and my library
redefine the connect() function for INET sockets. It also uses
dlsym(RTLD_NEXT, "connect") to get the location of the 'real' libc
connect.
The problem is : when I run some programs (like cat, which doesn't use
connect), it causes a SIGSEGV, and strace doesn't help me more! It seems
that the segmentation fault occurs after a 'certain' number of syscalls,
but I can't figure why.
Does anybody know where could be the bug ?
Tnx.
--
Julien Laganier
Student Intern
Sun Microsystem Laboratories
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-09 14:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-09 14:11 Shared library interceptor/SIGSEGV Julien Laganier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox