Re: Bug #12425 Updated: apache core dumps when started with a php.ini in /usr/local/lib
| From: | Chris | Date: | Mon, 30 Jul 2001 17:37:14 +0000 |
| Subject: | Re: Bug #12425 Updated: apache core dumps when started with a php.ini in /usr/local/lib | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61570@lists.php.net to get a copy of this message | ||
I think so, not 100% positive though. One of my friends who works at a tech company in Virginia
also confirms he had trouble compiling it as a DSO on his redhat box. I compiled it as a static but
if you absolutly need to know I can recompile a DSO server and get that information for you.
------------------------------------------------
Chris <chris@brenden.com>
Brenden Digital <http://www.brenden.com>
"Knowledge comes but wisdom lingers." <Tennyson>
Bug Database <php-dev@lists.php.net> said:
> ID: 12425
> Updated by: sniper
> Reported By: chris@brenden.com
> Old Status: Open
> Status: Feedback
> Bug Type: Apache related
> Operating System: Linux - Red Hat 7.1
> PHP Version: 4.0.6
> New Comment:
>
> Does it really segfault on that line?
>
> #0 0x405b4d63 in virtual_file_ex (state=0xbfffd5b8,
>
> You didn't paste the couple of lines before that one.. :)
>
> --Jani
>
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-07-28 09:43:04] chris@brenden.com
>
> The Config Command Line (Per Request by Sniper):
> ./configure --with-apxs=/usr/local/apache/bin/apxs --with-openssl=/usr/local/ssl/
> --enable-magic-quotes --disable-short-tags --enable-dmalloc --with-zlib --enable-bcmath --with-bz2
> --enable-calendar --enable-ctype --with-curl --with-dom=/usr/local --enable-exif
> --with-fdftk=/usr/local --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local
> --with-freetype-dir=/usr/local --with-ttf --with-t1lib --with-gettext --with-imap=/usr/local
> --with-ircg --enable-mbstring --with-mcrypt --with-mhash --with-mysql --with-pdflib=/usr/local
> --with-tiff-dir=/usr/local --with-pgsql --with-pspell --with-qtdom --with-readline --with-mm
> --enable-trans-sid --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-yp
> --enable-inline-optimization
>
> This configuration works perfectly as a static apache module just the DSO breaks.
>
> ------------------------------------------------------------------------
>
> [2001-07-27 23:37:41] sniper@php.net
>
> What was the configure line used to configure PHP?
>
>
> ------------------------------------------------------------------------
>
> [2001-07-27 09:56:33] chris@brenden.com
>
> Just Compile 4.0.6 (Apache-1.3.20 DSO) amazingly all the
> stuff I compiled in worked. When I have a php.ini in
> /usr/local/lib and try to start the server it bombs out (the
> back trace is below). The cgi version seems to work
> accordingly and report all modules working correctly (via
> php_info()). The apache config file seems correct aswell.
> Any help would be greatly appreciated. This is on a stock
> Red Hat 7.1 system.
>
>
> (gdb) bt
> #0 0x405b4d63 in virtual_file_ex (state=0xbfffd5b8,
> path=0xbfffc580 "/usr/local/lib/php.ini", verify_path=0)
> at tsrm_virtual_cwd.c:335
> #1 0x404bf6e0 in expand_filepath (
> filepath=0xbfffe690 "/usr/local/lib/php.ini", real_path=0x0)
> at fopen_wrappers.c:531
> #2 0x404bedcf in php_fopen_and_set_opened_path (
> path=0xbfffe690 "/usr/local/lib/php.ini",
> mode=0x406a7ec8 "r",
> opened_path=0x40738364) at fopen_wrappers.c:237
> #3 0x404bf44e in php_fopen_with_path (filename=0x406a7eca
> "php.ini",
> mode=0x406a7ec8 "r", path=0x8120e8c ".:/usr/local/lib",
> opened_path=0x40738364) at fopen_wrappers.c:414
> #4 0x404bfbd8 in php_init_config
> (php_ini_path_override=0x0) at php_ini.c:240
> #5 0x404bd93f in php_module_startup (sf=0x40737260) at
> main.c:827
> #6 0x404bb1e8 in php_apache_startup
> (sapi_module=0x40737260) at mod_php4.c:259
> #7 0x404bbcd6 in php_init_handler (s=0x80f1890,
> p=0x80f1868) at mod_php4.c:744
> #8 0x08083dda in ap_init_modules () at eval.c:41
> #9 0x0808e340 in main () at eval.c:41
> #10 0x4019c177 in __libc_start_main (main=0x808df9c <main>,
> argc=1,
> ubp_av=0xbffff8ec, init=0x8053268 <_init>,
> fini=0x80c6300 <_fini>,
> rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff8dc)
> at ../sysdeps/generic/libc-start.c:129
>
> ------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=1242