php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78519 Segfaults running phpdbg tests
Submitted: 2019-09-09 10:40 UTC Modified: 2019-09-09 14:33 UTC
From: devang at teaksi dot com Assigned:
Status: Wont fix Package: phpdbg
PHP Version: 7.1.32 OS: CentOS 6 2.6.32-754.17.1.el6.x86
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: devang at teaksi dot com
New email:
PHP Version: OS:

 

 [2019-09-09 10:40 UTC] devang at teaksi dot com
Description:
------------
Dear Friend,
Following test cases are FAILING with "segfault" error listing in /var/log/message file.
See following example error line
2019-09-09T03:31:57.585558-07:00 XXXXX kernel: phpdbg[4356]: segfault at 9 ip 000000000086da76 sp 00007ffeb4f444e0 error 4 in phpdbg[400000+bd8000]
2019-09-09T03:32:14.810433-07:00 XXXXX kernel: phpdbg[4376]: segfault at 9 ip 000000000086da76 sp 00007ffc9f0f8510 error 4 in phpdbg[400000+bd8000]
2019-09-09T03:32:32.055598-07:00 XXXXX kernel: phpdbg[4395]: segfault at 9 ip 000000000086da76 sp 00007fffe2f45dd0 error 4 in phpdbg[400000+bd8000]
2019-09-09T03:33:03.656409-07:00 XXXXX kernel: phpdbg[4597]: segfault at 9 ip 000000000086da76 sp 00007ffed53cd0e0 error 4 in phpdbg[400000+bd8000]


Test script:
---------------
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/breakpoints_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/breakpoints_003.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/breakpoints_005.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/breakpoints_008.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/bug73704.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/clean_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/clear_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/exceptions_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/exceptions_002.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/generator_run.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/include_once.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/info_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/normal_exit.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/phpdbg_break_next.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/phpdbg_get_executable_stream_wrapper.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/phpdbg_oplog_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/phpdbg_oplog_002.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/run_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/run_002.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/set_exception_handler.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/stdin_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/watch_001.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/watch_002.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/watch_003.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/watch_004.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/watch_005.phpt
sapi/cli/php run-tests.php -P sapi/phpdbg/tests/watch_006.phpt

Expected result:
----------------
Not much knowledge about result.

Actual result:
--------------
AILING with "segfault" error listing in /var/log/message file.
See following example error line
2019-09-09T03:31:57.585558-07:00 XXXXX kernel: phpdbg[4356]: segfault at 9 ip 000000000086da76 sp 00007ffeb4f444e0 error 4 in phpdbg[400000+bd8000]
2019-09-09T03:32:14.810433-07:00 XXXXX kernel: phpdbg[4376]: segfault at 9 ip 000000000086da76 sp 00007ffc9f0f8510 error 4 in phpdbg[400000+bd8000]
2019-09-09T03:32:32.055598-07:00 XXXXX kernel: phpdbg[4395]: segfault at 9 ip 000000000086da76 sp 00007fffe2f45dd0 error 4 in phpdbg[400000+bd8000]
2019-09-09T03:33:03.656409-07:00 XXXXX kernel: phpdbg[4597]: segfault at 9 ip 000000000086da76 sp 00007ffed53cd0e0 error 4 in phpdbg[400000+bd8000]


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-09 10:42 UTC] requinix@php.net
-Summary: Apache 2.4 +Summary: Segfaults running phpdbg tests -Status: Open +Status: Feedback -Package: Testing related +Package: phpdbg
 [2019-09-09 10:42 UTC] requinix@php.net
PHP 7.1 is no longer in active support. Does this still happen with PHP 7.2 or later?
 [2019-09-09 10:44 UTC] devang at teaksi dot com
Sorry forget to add "configure" command detail I believe it will help you a lot

./configure \
--disable-rpath \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-fpm \
--enable-ftp \
--enable-gd-native-ttf \
--enable-inline-optimization \
--enable-intl \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-zip \
--prefix=/opt/php7 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-bz2 \
--with-curl \
--with-fpm-group=apache \
--with-fpm-user=apache \
--with-freetype-dir \
--with-gd \
--with-gettext \
--with-gmp \
--with-imap \
--with-imap-ssl \
--with-jpeg-dir=/usr/lib64 \
--with-kerberos \
--with-libdir=lib64 \
--with-libxml-dir=/usr \
--with-mcrypt \
--with-mhash \
--with-mysqli \
--with-openssl \
--without-pdo-mysql \
--without-pdo-pgsql \
--without-pdo-sqlite \
--with-pcre-regex \
--with-png-dir=/usr/lib64 \
--with-pspell \
--with-readline \
--with-webp-dir=/usr/lib64 \
--with-xmlrpc \
--with-xpm-dir=/usr/lib64 \
--with-xsl \
--with-zlib

(Devang Modi)
 [2019-09-09 10:46 UTC] devang at teaksi dot com
Yes, I faced the same with 7.2.21 on the same operating system and the same "configure" command also.
thanks
(Devang Modi)
 [2019-09-09 10:48 UTC] requinix@php.net
-Status: Feedback +Status: Open -PHP Version: 7.1.32 +PHP Version: 7.2.21
 [2019-09-09 11:35 UTC] devang at teaksi dot com
Dear Friend,
Sorry I was wrong with 7.2.21 when I retest it passes all TEST CASES which were failed under 7.1.32.
But a small strange issue noted process "make test" completed with 
"make: *** [test] Error 1"
I am not sure what is the meaning of "make: *** [test] Error 1".
Please explain
I do have a "report" outcome file if you wish i can share with you but for that, you need to guide me on how I can share that file.
thanks
Devang Modi
 [2019-09-09 13:59 UTC] requinix@php.net
-Status: Open +Status: Wont fix -PHP Version: 7.2.21 +PHP Version: 7.1.32
 [2019-09-09 13:59 UTC] requinix@php.net
I don't happen to know why it would say that, other than one of the tests failing. Or perhaps some other command executed during make. There really should be some output that says what happened and where.
 [2019-09-09 14:33 UTC] devang at teaksi dot com
Honestly, speaking NO other commands were fired.
1) 
./configure \
--disable-rpath \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-fpm \
--enable-ftp \
--enable-inline-optimization \
--enable-intl \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-zip \
--prefix=/opt/php7 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-bz2 \
--with-curl \
--with-fpm-group=apache \
--with-fpm-user=apache \
--with-freetype-dir \
--with-gd \
--with-gettext \
--with-gmp \
--with-imap \
--with-imap-ssl \
--with-jpeg-dir=/usr/lib64 \
--with-kerberos \
--with-libdir=lib64 \
--with-libxml-dir=/usr \
--with-mhash \
--with-mysqli \
--with-openssl \
--without-pdo-mysql \
--without-pdo-pgsql \
--without-pdo-sqlite \
--with-pcre-regex \
--with-png-dir=/usr/lib64 \
--with-pspell \
--with-readline \
--with-webp-dir=/usr/lib64 \
--with-xmlrpc \
--with-xpm-dir=/usr/lib64 \
--with-xsl \
--with-zlib
2) make
3) make test 
and that ended with the shared error message
If you guide me I can share outcome of make test command 
that may give you more information.
thanks
Devang Modi
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 05:01:27 2020 UTC