On Mon, Jan 19, 2009 at 10:51 PM, Daniel Brown <danbrown@xxxxxxx> wrote: > On Mon, Jan 19, 2009 at 15:12, Ian <barnracoon@xxxxxxxxx> wrote: > > Hi all, > > > > Appologies if this is the wrong list - please direct me in the right > > direction should this be the case. > > > > I am running PHP 5.2.8 on freebsd 7.0 and am getting a Seg fault when > > running one of my new programs. We run a couple of other sites of this > > server (only one upgraded to 5.2.8) and they are running fine - its just > > this script. This script uses: > > If you can run it from the command line, Ian, check the tail of > strace by running: > > strace php -e /path/to/offending/script.php > > Otherwise, there may be a problem with that particular port with > your system. If all else fails, compile from source. > > -- > </Daniel P. Brown> > daniel.brown@xxxxxxxxxxxx || danbrown@xxxxxxx > http://www.parasane.net/ || http://www.pilotpig.net/ > Unadvertised dedicated server deals, too low to print - email me to find > out! Hi Daniel, Here are the last couple lines from the strace: unlink("/some/dir/sqlite.sq3-journal") = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 access("/some/dir/sqlite.sq3-journal", F_OK) = -1 ENOENT (No such file or directory) fstat(3, {st_mode=0, st_size=0, ...}) = 0 syscall_478(0x3, 0x18, 0, 0) = 0x18 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16) = 16 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 open("/some/dir/sqlite.sq3-journal", O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0644) = 4 fstat(4, {st_mode=0, st_size=0, ...}) = 0 open(/some/dir", O_RDONLY) = 5 syscall_478(0x4, 0, 0, 0) = 0 write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 24) = 24 syscall_478(0x4, 0x1ff, 0, 0) = 0x1ff write(4, "\0"..., 1) = 1 syscall_478(0x3, 0x800, 0, 0) = 0x800 read(3, "\n\0\0\0\t\3\312\0\3\372\3\364\3\356\3\350\3\342\3\334\3\326\3\320\3\312\0\0\0\0\0\0\0"..., 1024) = 1024 syscall_478(0x4, 0x200, 0, 0) = 0x200 write(4, "\0\0\0\3\n\0\0\0\t\3\312\0\3\372\3\364\3\356\3\350\3\342\3\334\3\326\3\320\3\312\0\0\0"..., 1032) = 1032 syscall_478(0x4, 0x608, 0, 0) = 0x608 write(4, "\0\0\0\2\r\0\0\0\t\0C\0\3\226\3,\2\302\2W\1\354\1\202\1\30\0\256\0C\0\0\0"..., 1032) = 1032 syscall_478(0x4, 0xa10, 0, 0) = 0xa10 write(4, "\0\0\0\4\r\0\0\0\2\3\345\0\3\362\3\345\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1032) = 1032 syscall_478(0x4, 0xe18, 0, 0) = 0xe18 write(4, "\0\0\0\1SQLite format 3\0\4\0\1\1\0@ \0\0\0.\0"..., 1032) = 1032 fsync(4) = 0 fsync(5) = 0 close(5) = 0 syscall_478(0x4, 0x8, 0, 0) = 0x8 write(4, "\0\0\0\0"..., 4) = 4 fsync(4) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=281474976841728}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=65536, len=0}) = 0 syscall_478(0x3, 0, 0, 0) = 0 write(3, "SQLite format 3\0\4\0\1\1\0@ \0\0\0/\0\0\0\0\0"..., 1024) = 1024 syscall_478(0x3, 0x400, 0, 0) = 0x400 write(3, "\5\0\0\0\1\3\373\0\0\0\0\33\3\373\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 syscall_478(0x3, 0x800, 0, 0) = 0x800 write(3, "\n\0\0\0\n\3\304\0\3\372\3\364\3\356\3\350\3\342\3\334\3\326\3\320\3\312\3\304\0\0\0\0\0"..., 1024) = 1024 syscall_478(0x3, 0xc00, 0, 0) = 0xc00 write(3, "\r\0\0\0\2\3\345\0\3\362\3\345\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 syscall_478(0x3, 0x6400, 0, 0) = 0x6400 write(3, "\r\0\0\0\t\0C\0\3\226\3,\2\302\2W\1\354\1\202\1\30\0\256\0C\0\0\0\0\0\0\0"..., 1024) = 1024 syscall_478(0x3, 0x6800, 0, 0) = 0x6800 write(3, "\r\0\0\0\1\3\226\0\3\226\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 fsync(3) = 0 close(4) = 0 unlink("/some/dir/sqlite.sq3-journal") = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 gettimeofday({0, 0}, NULL) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 access("/some/dir/sqlite.sq3-journal", F_OK) = -1 ENOENT (No such file or directory) fstat(3, {st_mode=0, st_size=0, ...}) = 0 syscall_478(0x3, 0x18, 0, 0) = 0x18 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16) = 16 fcntl(3, F_SETLK, {type=0 /* F_??? */, whence=SEEK_SET, start=0, len=0}) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 --- SIGSEGV (Segmentation fault: 11) --- --- SIGSEGV (Segmentation fault: 11) --- PIOCWSTOP: Input/output error Any ideas :/ Thanks Ian