View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000267 | Xdebug | Uncategorized | public | 2007-05-13 19:10 | 2007-06-09 23:00 |
Reporter | flotsam | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | reopened | ||
Summary | 0000267: CLI segfaults when trace file is not writeable | ||||
Description | A script lets xdebug write a tracefile. Executed via Apache, xdebug sets owner.group of the tracefile to those of Apache (www-data.www-data on Debian) and permissions to 644. Executing the same script via PHP CLI segfaults w/o any useful info. Strace shows its because the tracefile is not writeable. CLI executes as current user, which is not www-data. It would be nice if xdebug terminates gracefully with an explanatory message instead of crashing ;) Here's strace's last lines: open("/tmp/init-parenchym.php.xt", O_RDWR|O_LARGEFILE) = -1 EACCES (Permission denied) | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.2.1 | ||||
|
I am quite positive this has been fixed in CVS already. For instructions on how to use the CVS version, see: http://xdebug.org/install.php#source |
|
And as I see now, the same is true vice versa: CLI creates trace file, Apache is denied to overwrite it, child process segfaults. (PHP Version is 5.2.2-1+b1) |
|
RE: derick 2007-05-13 20:17 It's not. I just compiled the sources of 2.0.0RC4-dev and had the same bug as described above. Besides, make test reports:
|
|
I can not reproduce this: derick@kossu:/home/httpd/html/test/xdebug$ cat bug267.php strlen( join( ", ", range( 1, 10 ) ) ); derick@kossu:/home/httpd/html/test/xdebug$ php bug267.php derick@kossu:/home/httpd/html/test/xdebug$ ls -l /tmp/bug267test.xt derick@kossu:/home/httpd/html/test/xdebug$ sudo chown root /tmp/bug267test.xt derick@kossu:/home/httpd/html/test/xdebug$ ls -l /tmp/bug267test.xt derick@kossu:/home/httpd/html/test/xdebug$ php bug267.php derick@kossu:/home/httpd/html/test/xdebug$ date derick@kossu:/home/httpd/html/test/xdebug$ ls -l /tmp/bug267test.* As you can see it did not overwrite the file, but instead saw that the file was not writable and created a file with a random bit in it; and no segfault. When using autotrace: derick@kossu:/home/httpd/html/test/xdebug$ php -dxdebug.auto_trace=1 bug267.php derick@kossu:/home/httpd/html/test/xdebug$ php -dxdebug.auto_trace=1 bug267.php derick@kossu:/home/httpd/html/test/xdebug$ ls -l /tmp/*.xt derick@kossu:/home/httpd/html/test/xdebug$ sudo chown root /tmp/trace.1258863198.xt derick@kossu:/home/httpd/html/test/xdebug$ php -dxdebug.auto_trace=1 bug267.php derick@kossu:/home/httpd/html/test/xdebug$ ls -l /tmp/*.xt |
|
Thanks for describing that procedure. I copied that step by step and again got that segfault. Hmm... Checked out your latest sources, which are RC5-dev, and :) xdebug works as you described. Well, it seems xdebug creates a new file every time, even if it could overwrite the last one. -- Which makes perfectly sense, 'cause that random part in the filename is, well, random. But over time it would fill up my tmp space... Thank you for xdebug |
|
Cool, let's close it then. |
Date Modified | Username | Field | Change |
---|---|---|---|
2007-05-13 19:10 | flotsam | New Issue | |
2007-05-13 19:17 | derick | Status | new => resolved |
2007-05-13 19:17 | derick | Resolution | open => fixed |
2007-05-13 19:17 | derick | Assigned To | => derick |
2007-05-13 19:17 | derick | Note Added: 0000612 | |
2007-05-13 19:19 | flotsam | Note Added: 0000613 | |
2007-05-13 19:35 | flotsam | Status | resolved => feedback |
2007-05-13 19:35 | flotsam | Resolution | fixed => reopened |
2007-05-13 19:35 | flotsam | Note Added: 0000614 | |
2007-05-22 21:46 | derick | Note Added: 0000626 | |
2007-06-07 19:56 | flotsam | Note Added: 0000651 | |
2007-06-09 23:00 | derick | Status | feedback => closed |
2007-06-09 23:00 | derick | Note Added: 0000653 | |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |