View Issue Details

IDProjectCategoryView StatusLast Update
0001623XdebugInstallationpublic2019-02-11 17:14
Reporternoodles Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformPHP 7.3.1OSCentOSOS Version7.6.1810
Product Version2.7.0rc1 
Summary0001623: Test fail on "Show an error if Xdebug can't open the remote debug log"
Description

When running the test suite it fails on:

Test for bug 0000932: Show an error if Xdebug can't open the remote debug log. [tests/bug00932.phpt]

Steps To Reproduce

Build from git sha 22da0b156a15bd6954773bbb0ae9f94746faaf33, run test suite:

SKIP_SLOW_TESTS=1 TEST_PHP_EXECUTABLE=/usr/bin/php TEST_PHP_ARGS="-n $modules -d zend_extension=/home/rpmbuild/php-pecl-xdebug/BUILDROOT/php-pecl-xdebug-2.7.0~rc2-0.8.20190204.22da0b1.el7.7.3.x86_64/usr/lib64/php/modules/xdebug.so -d xdebug.auto_trace=0" NO_INTERACTION=1 REPORT_EXIT_STATUS=1 /usr/bin/php -n run-tests.php --show-diff

Additional Information

========DIFF========
001+
001- Xdebug could not open the remote debug file '/tmp/bug932.log'.
========DONE========
FAIL Test for bug 0000932: Show an error if Xdebug can't open the remote debug log. [tests/bug00932.phpt]

TagsNo tags attached.
Operating SystemCentOS
PHP Version7.3.0-7.3.1

Activities

derick

2019-02-04 14:23

administrator   ~0004873

Can the tests write to /tmp ? I don't see how this is a bug.

noodles

2019-02-04 21:11

reporter   ~0004875

I tracked this down to the file still being writeable when chmod 0. I added a patch here: https://github.com/xdebug/xdebug/pull/444 which makes the test run as expected.

derick

2019-02-11 17:14

administrator   ~0004884

This ended up as the tests being run as root. As that's a really bad idea, I'm not going to change this. (The PR is already closed too).

cheers,
Derick

Issue History

Date Modified Username Field Change
2019-02-03 21:43 noodles New Issue
2019-02-04 14:23 derick Note Added: 0004873
2019-02-04 14:23 derick Assigned To => derick
2019-02-04 14:23 derick Status new => feedback
2019-02-04 21:11 noodles Note Added: 0004875
2019-02-04 21:11 noodles Status feedback => assigned
2019-02-11 17:14 derick Note Added: 0004884
2019-02-11 17:14 derick Status assigned => resolved
2019-02-11 17:14 derick Resolution open => no change required