[xdebug-dev] Bug 0000267: CLI segfaults when trace file is not writeable

From: <noreply[@]lists.xdebug.org>
Date: Sun, 13 May 2007 20:17:20 +0200

The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000267
======================================================================
Reporter: flotsam
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 267
Category: Usage problems
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Operating System:
PHP Version: 5.2.1
Xdebug Version: 2.0.0rc3
Resolution: fixed
======================================================================
Date Submitted: 2007-05-13 20:10 CEST
Last Modified: 2007-05-13 20:17 CEST
======================================================================
Summary: 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)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
======================================================================

----------------------------------------------------------------------
 derick - 2007-05-13 20:17 CEST
----------------------------------------------------------------------
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

Bug History
Date Modified Username Field Change
======================================================================
2007-05-13 20:10flotsam New Bug
2007-05-13 20:10flotsam Bug Monitored: flotsam
2007-05-13 20:17derick Bugnote Added: 0000612
2007-05-13 20:17derick Assigned To => derick
2007-05-13 20:17derick Resolution open => fixed
2007-05-13 20:17derick Status new => resolved
======================================================================
Received on Sun May 13 2007 - 20:17:21 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST