Bug 1214111

Summary: [abrt] php-cli: _zend_mm_realloc_int(): php-cgi killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Ernie D <wagnered>
Component: php-pecl-xdebugAssignee: Remi Collet <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: christof, fedora, jorton, pahan, wagnered
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f3d4de57d9b5ce1b565d0ab1b59ce347508a8378
Whiteboard: abrt_hash:0fc2288d953319a1e82dd67bd5797f36665b34dc
Fixed In Version: php-pecl-xdebug-2.3.2-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-09 15:08:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Ernie D 2015-04-22 02:30:10 UTC
Description of problem:
I was debugging with Eclipse-pdt - Luna.

while stepping through the code, it got hung up on
  $catalog_id = intval($_REQUEST['catalog_id']);

When I tried to step past that statement, it returned to it.

After stepping about three times, Eclipse gave me the message that it stopped debugging and then I saw the abrt message.

The code works with php5.4 on windows.

Version-Release number of selected component:
php-cli-5.6.7-1.fc21

Additional info:
reporter:       libreport-2.3.0
backtrace_rating: 4
cmdline:        /usr/bin/php-cgi
crash_function: _zend_mm_realloc_int
executable:     /usr/bin/php-cgi
kernel:         3.17.4-301.fc21.i686
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 _zend_mm_realloc_int at /usr/src/debug/php-5.6.7/Zend/zend_alloc.c:2155
 #1 _erealloc at /usr/src/debug/php-5.6.7/Zend/zend_alloc.c:2450
 #2 virtual_file_ex at /usr/src/debug/php-5.6.7/Zend/zend_virtual_cwd.c:1367
 #3 xdebug_path_to_url at /usr/src/debug/php-pecl-xdebug-2.3.2/NTS/usefulstuff.c:350
 #4 return_stackframe at /usr/src/debug/php-pecl-xdebug-2.3.2/NTS/xdebug_handler_dbgp.c:417
 #5 xdebug_dbgp_handle_stack_get at /usr/src/debug/php-pecl-xdebug-2.3.2/NTS/xdebug_handler_dbgp.c:1772
 #6 xdebug_dbgp_parse_option at /usr/src/debug/php-pecl-xdebug-2.3.2/NTS/xdebug_handler_dbgp.c:2078
 #7 xdebug_dbgp_cmdloop at /usr/src/debug/php-pecl-xdebug-2.3.2/NTS/xdebug_handler_dbgp.c:2127
 #8 xdebug_dbgp_breakpoint at /usr/src/debug/php-pecl-xdebug-2.3.2/NTS/xdebug_handler_dbgp.c:2398
 #9 xdebug_statement_call at /usr/src/debug/php-pecl-xdebug-2.3.2/NTS/xdebug.c:2110

Comment 1 Ernie D 2015-04-22 02:30:13 UTC
Created attachment 1017193 [details]
File: backtrace

Comment 2 Ernie D 2015-04-22 02:30:14 UTC
Created attachment 1017194 [details]
File: cgroup

Comment 3 Ernie D 2015-04-22 02:30:15 UTC
Created attachment 1017195 [details]
File: core_backtrace

Comment 4 Ernie D 2015-04-22 02:30:16 UTC
Created attachment 1017196 [details]
File: dso_list

Comment 5 Ernie D 2015-04-22 02:30:16 UTC
Created attachment 1017197 [details]
File: environ

Comment 6 Ernie D 2015-04-22 02:30:17 UTC
Created attachment 1017198 [details]
File: exploitable

Comment 7 Ernie D 2015-04-22 02:30:18 UTC
Created attachment 1017199 [details]
File: limits

Comment 8 Ernie D 2015-04-22 02:30:19 UTC
Created attachment 1017200 [details]
File: maps

Comment 9 Ernie D 2015-04-22 02:30:20 UTC
Created attachment 1017201 [details]
File: open_fds

Comment 10 Ernie D 2015-04-22 02:30:21 UTC
Created attachment 1017202 [details]
File: proc_pid_status

Comment 11 Ernie D 2015-04-22 02:30:22 UTC
Created attachment 1017203 [details]
File: var_log_messages

Comment 12 Remi Collet 2015-04-22 06:57:20 UTC
Reaffect to XDebug

Should be fixed by https://github.com/xdebug/xdebug/pull/172

Waiting for Derick feedback.

Comment 14 Ernie D 2015-04-22 16:28:14 UTC
It seems to be a nonrecurring situation. Although I might have told it to ignore further notices and don't know how to reset it for that problem.

But I also don't get a message from Eclipse stating that PHP stopped working.

I tried the test build, hoping that it would fix my original problem of Eclipse not stepping into the code, although with fc-21 it is actually stopping at a breakpoint, but just not displaying each statement that is processed.

Sorry I couldn't be more helpful

Ernie D

Comment 15 Fedora Update System 2015-05-27 11:38:51 UTC
php-pecl-xdebug-2.3.2-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/php-pecl-xdebug-2.3.2-2.fc22

Comment 16 Fedora Update System 2015-05-27 11:39:01 UTC
php-pecl-xdebug-2.3.2-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/php-pecl-xdebug-2.3.2-2.fc21

Comment 17 Fedora Update System 2015-05-28 12:04:42 UTC
Package php-pecl-xdebug-2.3.2-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing php-pecl-xdebug-2.3.2-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9015/php-pecl-xdebug-2.3.2-2.fc22
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2015-06-09 15:08:55 UTC
php-pecl-xdebug-2.3.2-3.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2015-06-09 15:20:19 UTC
php-pecl-xdebug-2.3.2-3.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.