This has been driving me mad for the last two days and since I seem to be no closer now to solving it than I was two days ago. I've been working on an extension to PHP that uses the GNU regex library. Everything compiles fine and all, including linking libphp4.a to Apache statically, but the thing segfaults whenever the extension's functions are called. (More specifically, the segfault occurs when my extension calls a function from the regex library.) The error given by gdb is: --- Program received signal SIGSEGV, Segmentation fault. 0x40360de8 in byte_regex_compile () at regex.c:4207 4207 regex.c: No such file or directory. in regex.c --- A back trace at the time of the fault shows that the process dies when byte_regex_compile() is called, which is located in regex.c. This extension works perfectly when it is compiled without PHP and Apache. Using the exact same files without any PHP engine wrapper functions, the extension works like a charm. I have no idea what's going on here. Any ideas? J -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]