MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001238XdebugUsage problems (Wrong Results)public2015-12-18 16:312016-01-25 21:59
Reporterpetervanderdoes 
Assigned Toderick 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntuOS Version15.10
Product Version2.4.0rc3 
Target VersionFixed in Version2.4.0rc4 
Summary0001238: php-fpm7.0 crashed with SIGSEGV in xdebug_var_export()
DescriptionUsing a WordPress site, PHP 7 crashes always, while debugging and while not debugging, at a certain point in the code.
Taking this code out and checking it by itself does not produce the problem.
Steps To ReproduceHard to reproduce by others, it seems to specific to a certain site I have locally. Another WordPress site does not show the same problem. But the crash always occurs at the same point.
Additional InformationThe code that cause the crash:
function is_admin() {
    if ( isset( $GLOBALS['current_screen'] ) )
        return $GLOBALS['current_screen']->in_admin();
    elseif ( defined( 'WP_ADMIN' ) )
        return WP_ADMIN;

    return false;
}

It crashes on return WP_ADMIN;

Attached is the SegvAnalysis portion of the coredump.
TagsNo tags attached.
Operating System
PHP Version7.0.0-7.0.4
Attached Filestxt file icon SegvAnalysis.txt [^] (19,836 bytes) 2015-12-18 16:31 [Show Content]
txt file icon SegvAnalysis2.txt [^] (18,803 bytes) 2015-12-18 18:27 [Show Content]

- Relationships

-  Notes
(0003358)
derick (administrator)
2015-12-18 16:35

Thanks for the report and backtrace.

I am pretty sure that this is 0001229 - can you try the latest source from GitHub please?

cheers,
Derick
(0003359)
aramonc (reporter)
2015-12-18 16:53
edited on: 2015-12-18 16:54

Derick, I don't know if this helps, but I'm seeing a similar issue. Syslog reports

[ 5277.283602] php-fpm7.0[29262]: segfault at 12 ip 00007f4fd4d0c082 sp 00007ffde87616e0 error 4 in xdebug.so[7f4fd4ce3000+38000]

I can provide full crash report if you like.

Environmnet:

Ubuntu 15.10
PHP 7.0.1 - Ondrej Sury PPA
XDebug 2.4.0 RC3 - Ondrej Sury PPA
PHPStorm 10.0.1
App in Symfony 2.7

I'll try the mainline branch this weekend.

(0003360)
petervanderdoes (reporter)
2015-12-18 18:27

Cloned the repository, installed 2.4.0RC4-dev, resulted in NO crash during normal work, but crash when debugging as soon as a breakpoint is hit and you continue the program.

Uploaded new backtrace.
(0003361)
derick (administrator)
2015-12-18 18:39

Looks like I missed one occurence of the issue.

Quick fix for you to make things work while I fix it is to change any -O2 to -O0 in the Makefile after running "./configure" and before "make". Instead of just "make" you'll likely will have to run "make clean" first (but still after "./configure".
(0003362)
petervanderdoes (reporter)
2015-12-18 19:04

Yup that seems to solve the issue for debugging.

Thanks.
(0003363)
petervanderdoes (reporter)
2015-12-18 19:04

And regular stuff as well, No more crashing
(0003364)
derick (administrator)
2015-12-18 23:16

This should now be fixed in Git's master - without the O2 ? O0 hack.

- Issue History
Date Modified Username Field Change
2015-12-18 16:31 petervanderdoes New Issue
2015-12-18 16:31 petervanderdoes File Added: SegvAnalysis.txt
2015-12-18 16:35 derick Note Added: 0003358
2015-12-18 16:35 derick Assigned To => derick
2015-12-18 16:35 derick Status new => feedback
2015-12-18 16:53 aramonc Note Added: 0003359
2015-12-18 16:54 aramonc Note Edited: 0003359 View Revisions
2015-12-18 18:27 petervanderdoes Note Added: 0003360
2015-12-18 18:27 petervanderdoes Status feedback => assigned
2015-12-18 18:27 petervanderdoes File Added: SegvAnalysis2.txt
2015-12-18 18:39 derick Note Added: 0003361
2015-12-18 19:04 petervanderdoes Note Added: 0003362
2015-12-18 19:04 petervanderdoes Note Added: 0003363
2015-12-18 23:16 derick Note Added: 0003364
2015-12-18 23:16 derick Status assigned => closed
2015-12-18 23:16 derick Resolution open => fixed
2015-12-18 23:16 derick Fixed in Version => 2.4.0
2016-01-25 21:59 derick Fixed in Version 2.4.0 => 2.4.0rc4
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker