PHP 4.0 Bug #6133: unlink() seems to crash php
| From: | plexus at liscom dot dk | Date: | Sat, 12 Aug 2000 23:08:31 +0000 |
| Subject: | PHP 4.0 Bug #6133: unlink() seems to crash php | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28728@lists.php.net to get a copy of this message | ||
From: plexus@liscom.dk
Operating system: Linux
PHP version: 4.0.1pl2
PHP Bug Type: Misbehaving function
Bug description: unlink() seems to crash php
Short Error Description:
----------------------------------------
I am having trouble using the unlink() function. Everytime I try to unlink a specific file, it
crashes, I get an invalid http response, though it seems to delete the file as it should.
eg:
<?
unlink("/home/gamesite/testfile");
?>
When I run this, I get an invalid header back, but it seems to delete the file, I checked the apache
error log, and found a crash.
The Server Specs:
----------------------------------------
Red Hat Linux release 6.2 (Zoot)
Kernel 2.2.16 on an i686
PHP Configure Command:
./configure' '--with-mysql=/home/mysql/mysql'
'--with-apxs=/usr/local/apache/bin/apxs'
SERVER_SOFTWARE:
Apache/1.3.12 (Unix) PHP/4.0.1pl2
The Error:
----------------------------------------
This is what it says in the apache error log:
[Sun Aug 13 00:34:12 2000] [notice] child pid 1838 exit signal Segmentation fault (11)
And the backtrace:
(gdb) Core was generated by `/usr/local/apache/bin/httpd'.
Program terminated with signal 11, Segmentation fault.
(gdb) bt
#0 0x402cc490 in ?? ()
#1 0x807e34e in clean_parent_exit ()
#2 0x8080dd3 in standalone_main ()
#3 0x80812b3 in main ()
#4 0x400b99cb in __libc_start_main (main=0x8080f6c <main>, argc=1,
argv=0xbffffd54, init=0x804ed70 <_init>, fini=0x80b528c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffd4c)
at ../sysdeps/generic/libc-start.c:92
I am not sure if I used the correct core file for the backtrace, hopefully I did.
I hope you can solve this problem/bug. Thanks.