Hello,
can you make a backtrace of it (with gdb)?
Derick
On Tue, 18 Sep 2001, Richard Heyes wrote:
Hi, I'm getting some strange segfaults from a script I'm running. Isn't
consistent unfortunately, but I have managed to get this strace output
from the apache child serving the request. Does it mean anything to
anyone? Look like it's going through all the include() calls in the php
script, last one being page.cache.prepend.inc, and then barfing. :(
TIA
[root@delllive php-4.0.6]# strace -p 28188
fcntl(26, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
select(19, [17 18], NULL, NULL, NULL) = 1 (in [18])
accept(18, {sin_family=AF_INET, sin_port=htons(63416),
sin_addr=inet_addr(*.*.*.*)}}, [16]) = 3
fcntl(26, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x805a4f0, [],
SA_INTERRUPT|0x400}, 8) = 0
getsockname(3, {sin_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr(192.168.10.5)}}, [16]) = 0
setsockopt(3, IPPROTO_TCP1, [1], 4) = 0
read(3, GET / HTTP/1.1\r\nAccept: image/gi..., 4096) = 505
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
time(NULL) = 1000809165
gettimeofday({1000809165, 730544}, NULL) = 0
stat(/www/vhtdocs/adtrader3/htdocs, {st_mode=S_IFDIR|0775,
st_size=4096, ...}) = 0
open(/.htaccess, O_RDONLY)= -1 ENOENT (No such file or
directory)
open(/www/.htaccess, O_RDONLY)= -1 ENOENT (No such file or
directory)
open(/www/vhtdocs/.htaccess, O_RDONLY) = -1 ENOENT (No such file or
directory)
open(/www/vhtdocs/adtrader3/.htaccess, O_RDONLY) = -1 ENOENT (No such
file or directory)
open(/www/vhtdocs/adtrader3/htdocs/.htaccess, O_RDONLY) = -1 ENOENT
(No such file or directory)
stat(/www/vhtdocs/adtrader3/htdocs/index.html, 0xb868) = -1 ENOENT
(No such file or directory)
stat(/www/vhtdocs/adtrader3/htdocs, {st_mode=S_IFDIR|0775,
st_size=4096, ...}) = 0
stat(/www/vhtdocs/adtrader3/htdocs/index.php, {st_mode=S_IFREG|0775,
st_size=6248, ...}) = 0
stat(/www/vhtdocs/adtrader3/htdocs/index.php, {st_mode=S_IFREG|0775,
st_size=6248, ...}) = 0
umask(077) = 022
umask(022) = 077
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
rt_sigaction(SIGPROF, {0x4022effc, [], SA_RESTART|0x400}, {SIG_DFL},
8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
brk(0x8138000) = 0x8138000
brk(0x8139000) = 0x8139000
time(NULL) = 1000809165
getpid()= 28188
getpid()= 28188
getcwd(/, 4095) = 2
chdir(/www/vhtdocs/adtrader3/htdocs) = 0
open(/www/vhtdocs/adtrader3/htdocs/index.php, O_RDONLY) = 4
getcwd(/mnt/disk1/www/vhtdocs/adtrader3/htdocs, 4095) = 40
lstat(/www, {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
readlink(/www, /raid/www, 4095) = 9
lstat(/raid, {st_mode=S_IFLNK|0777, st_size=11, ...}) = 0
readlink(/raid, /mnt/disk1/, 4095) = 11
lstat(/mnt, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat(/mnt/disk1, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat(/mnt/disk1/www, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat(/mnt/disk1/www/vhtdocs, {st_mode=S_IFDIR|0775, st_size=4096,
...}) = 0
lstat(/mnt/disk1/www/vhtdocs/adtrader3, {st_mode=S_IFDIR|S_ISGID|0775,
st_size=4096, ...}) = 0
lstat(/mnt/disk1/www/vhtdocs/adtrader3/htdocs, {st_mode=S_IFDIR|0775,
st_size=4096, ...}) = 0
lstat(/mnt/disk1/www/vhtdocs/adtrader3/htdocs/index.php,
{st_mode=S_IFREG|0775, st_size=6248, ...}) = 0
brk(0x813e000) = 0x813e000
ioctl(4, TCGETS, 0xbfffe6fc)= -1 ENOTTY (Inappropriate ioctl
for device)
read(4, ?php\n/*..., 8192) = 6248
read(4, , 1944) = 0
brk(0x813f000) = 0x813f000
brk(0x8143000) = 0x8143000
brk(0x8153000) = 0x8153000
read(4, , 8192) = 0
ioctl(4, TCGETS, 0xbfffd70c)= -1 ENOTTY (Inappropriate ioctl
for device)
close(4)= 0
open(./siteconf.inc, O_RDONLY)= -1 ENOENT (No such file or
directory)
open(/www/vhtdocs/adtrader3/includes//siteconf.inc, O_RDONLY) = 4
getcwd(/mnt/disk1/www/vhtdocs/adtrader3/htdocs, 4095) = 40
lstat(/www, {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
readlink(/www, /raid/www, 4095) = 9
lstat(/raid, {st_mode=S_IFLNK|0777, st_size=11, ...}) = 0
readlink(/raid, /mnt/disk1/, 4095) = 11
lstat(/mnt, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat(/mnt/disk1, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat(/mnt/disk1/www, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat(/mnt/disk1/www/vhtdocs, {st_mode=S_IFDIR|0775, st_size=4096,
...}) = 0
lstat(/mnt/disk1/www/vhtdocs/adtrader3,