[lkml]   [2001]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectShared library interceptor/SIGSEGV
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

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 ?


Julien Laganier
Student Intern
Sun Microsystem Laboratories
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:56    [W:0.183 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site