Ok, I am using Apache 2.0.51, and PHP 4.3.8. I compiled both srpms with
the "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" added to the CFLAGS.
Attached is the last few lines of an strace httpd -X. Compiling without
these flags works fine.
## strace
###
brk(0) = 0x80119000
brk(0x8013a000) = 0x8013a000
fcntl64(8, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(8, 0x801194d8, 8000) = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 30) = 1
read(8, "GET /index.php HTTP/1.1\r\nHost: t"..., 8000) = 784
gettimeofday({1106860629, 791325}, NULL) = 0
stat64("/var/www/html/index.php", {st_mode=S_IFREG|0744,
st_size=24699, ...}) = 0
open("/var/www/html/index.php", O_RDONLY) = 9
read(9, " Jon wrote:
> > I'm running Fedora Core 1, all packages up to date. I want to add large
> > file support to php. I downloaded the source rpm. Added
> > "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" to CFLAGS in the spec file,
> > rebuilt the rpm and installed it. Apache starts fine but I get
> > "[notice] child pid exit signal Segmentation fault (11)" when ever
> > I request a page. Compiling the same source without those flags works
> > fine. I must be missing something, but I am in way over my head. Can
> > someone tell me what I am doing wrong?
> >
>
> You did not mention your apache version and php setup (mod_php vs. cgi)
> IMHO if you are using mod_php, both apache and php must be compiled with
> the same _FILE_OFFSET_BITS or you get segmen. fault. LFS is available on
> for apache 2.X only. CGI should not be affected as it's another process.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php