Re: [Haskell-cafe] FFI and LD_PRELOAD - segfault

2006-09-24 Thread Anatoly Zaretsky
On 9/23/06, Stephan Walter [EMAIL PROTECTED] wrote: I'm trying to use a shared lib written in Haskell to overload C functions via LD_PRELOAD. [snip] This aborts with a segfault in scheduleWaitThread() from ./libtestffi.so The test program doesn't use threads, so I'm wondering what I did

[Haskell-cafe] FFI and LD_PRELOAD - segfault

2006-09-23 Thread Stephan Walter
Hi, I'm trying to use a shared lib written in Haskell to overload C functions via LD_PRELOAD. You might think this is a bit silly, but hey, why not? I want to overload connect() from sys/socket.h. I'll document what I've written so far; unfortunately there doesn't seem to be a lot of