ID: 24557 Updated by: [EMAIL PROTECTED] Reported By: wmeler at wp-sa dot pl -Status: Assigned +Status: Wont fix Bug Type: Network related Operating System: RH 7.3 PHP Version: 4CVS-2003-07-09 (stable) Assigned To: wez New Comment:
So, you patched your web server, you patched PHP and compiled it in the unsupported maintainer thread-safe mode and expect me to fix the segfault? :-) Maybe its better for you to ask questions on the internals list if you are developing your own SAPI. Not a bug in any of the supported PHP configurations, so we are not going to fix it. Previous Comments: ------------------------------------------------------------------------ [2003-07-10 08:49:04] [EMAIL PROTECTED] Assigned to the father of streams. :) ------------------------------------------------------------------------ [2003-07-10 01:54:24] wmeler at wp-sa dot pl I enable ZTS, because I use threads. I have one IO thread and more PHP threads. As I said, it isn't pure thttpd and PHP. My web server has quite nice architecture - I have queues, processors, queue overflow control etc. About configure parameters - I use the same compilation on another web aplications and it is working well. Difference is that they don't use socket streams. They use oci8 and ldap without any problems. As far I know oracle ldap functions doesn't perform well and we use iplanet libraries with success. No problems with that. I can reduce config.nice by only few modules (ftp zlib gdbm gettext xml). Others are needed by my app. Anyway - don't you think that these STREAM_DEBUG messages are strange? ------------------------------------------------------------------------ [2003-07-09 18:07:40] [EMAIL PROTECTED] You should reduce the configure options to bare minimum, try with this configure line: # ./configure --with-thttpd=../thttpd --disable-all --enable-debug Why do you enable the ZTS anyway? Also, using --with-regex=system is not wise unless you REALLY know what you're doing. And Oracle has it's own ldap functions, it's known problem that those might conflict with other ldap libraries. Just point the --with-ldap to the same as you do with --with-oci8. ------------------------------------------------------------------------ [2003-07-09 04:55:39] wmeler at wp-sa dot pl PHP is taken from snaps.php.net : php4-STABLE-200307081130 './configure' \ '--with-thttpd=../thttpd' \ '--enable-experimental-zts' \ '--with-tsrm-pthreads' \ '--with-regex=system' \ '--with-mysql=/usr' \ '--with-oci8=/opt/oracle' \ '--with-ldap=/opt/iplanet' \ '--with-mhash' \ '--enable-ftp' \ '--with-zlib' \ '--with-gdbm' \ '--with-gettext' \ '--with-xml' \ '--enable-debug' \ "$@" I've patched thttpd and PHP so it worked fine together in ZTS. I haven't touched streams. It worked until streams were introduced (4.3?). BTW are memory and fds freed if there is no msg in log like "stream_free ...." I think I won't be able to write short script which reproduct this error because it isn't on each request :(. ------------------------------------------------------------------------ [2003-07-09 04:39:52] [EMAIL PROTECTED] Thanks for the detailed trace; A short self-contained reproducing script would help a great deal here also. Also, it seems that you are running a thread-safe build; could you let us know the configure line you used, and also the version of PHP (are you really using the PHP_4_3 branch of cvs?). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/24557 -- Edit this bug report at http://bugs.php.net/?id=24557&edit=1