|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-05-16 11:16 UTC] ssb at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 11:00:01 2025 UTC |
This might be a lib problem or something, I first noticed it after the system was upgraded by a bunch of new libraries and stuff. (libc=5.3.12; glibc=2.1.1; apache 1.3.6, kernel=2.2.5) The simplest program that causes the crash is: (crash.php3) <?php echo "fopen()=", $fh = fopen("/tmp/file.txt","w"), "<br>\n"; echo "fclose()=", fclose($fh), "<br>\n"; ?> Yes, fopen() opens fine, tested seperately also. Can read and write from a file fine, just crashing when closes. From apache error_log: [notice] child pid 16580 exit signal Segmentation fault (11) From strace output against apache 16580 13:53:50 stat("/tmp/file.txt", {st_mode=0, st_size=0, ...}) = 0 16580 13:53:50 stat("/tmp", {st_mode=0, st_size=0, ...}) = 0 16580 13:53:50 open("/tmp/file.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 16580 13:53:50 close(5) = 0 16580 13:53:50 --- SIGSEGV (Segmentation fault) --- 16580 13:53:50 chdir("/etc/httpd") = 0 16580 13:53:50 SYS_174(0xb, 0xbfffe490, 0xbfffe404, 0x8, 0xb) = 0 16580 13:53:50 getpid() = 16580 16580 13:53:50 kill(16580, SIGSEGV) = 0 16580 13:53:50 sigreturn() = ? (mask now []) 16580 13:53:50 --- SIGSEGV (Segmentation fault) --- 16579 13:53:50 <... fcntl resumed> ) = 0 Yep, I know it's not very useful, but I'm out of places to look. It *looks* like a lib problem or something, but I don't know how to get any more low-level debugging. The system does not have gdb, so I can't generate a backtrace - will that show more info than strace? If so I can try and install that stuff. Feel free to contact me for more info, etc,