Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xhprof segfaults php56 #45

Open
hikmet opened this issue Sep 22, 2014 · 18 comments
Open

xhprof segfaults php56 #45

hikmet opened this issue Sep 22, 2014 · 18 comments

Comments

@hikmet
Copy link

hikmet commented Sep 22, 2014

Xhprof causes segfault on php56. We noticed there is an open bug here at https://bugs.php.net/bug.php?id=67997

thanks, --h.

@epriestley
Copy link
Member

Can you try against HEAD? I think this was fixed by 55a47c0

@shanemeyers
Copy link

I compiled 91e0be9 from HEAD against PHP 5.6.0 and we still get a segfault when we have xhprof enabled. What kind of information do you need to help track this down?

@paulgao
Copy link

paulgao commented Oct 14, 2014

i have same segfault,can you fix it plz?

@paulgao
Copy link

paulgao commented Oct 14, 2014

@onethumb
Copy link

onethumb commented Nov 9, 2014

Any luck on this yet?

@paulgao
Copy link

paulgao commented Nov 10, 2014

i use QafooLabs/xhprof@16b3ae2 to patch.
not segfault more.

@FeepingCreature
Copy link

It's gone... :(

@onethumb
Copy link

@paulgao Do you still have that patch somewhere? Can you share it?

@onethumb
Copy link

@paulgao Also possible that's a private repo and we just can't see it... mind making it public or re-publishing somewhere public?

@paulgao
Copy link

paulgao commented Nov 10, 2014

oh, it renamed.
plz see QafooLabs/php-profiler-extension@16b3ae2 .

@bd808
Copy link

bd808 commented Nov 28, 2014

I can not reproduce the reported crash using 5.6.3 and the current HEAD (91e0be9).

@onethumb
Copy link

Crashes consistently for us on 5.6.3 with current HEAD (91e0be9). If we turn on XHPROF_FLAGS_NO_BUILTINS it no longer crashes.

@shanemeyers
Copy link

The crash still occurs for us using PHP 5.6.3 and HEAD (91e0be9). I tried using the QafooLabs/php-profiler-extension@16b3ae2 patch, but I couldn't get it to apply against HEAD.

@Xon
Copy link

Xon commented Jan 4, 2015

Manually applying this pull request to HEAD (91e0be9) makes the crashes go away for me.

@beberlei
Copy link

You don't need to apply the patch from Qafoo PHP Profiler, just use that extension it is compatible with XHPROF: https://github.com/QafooLabs/php-profiler-extension.

Either compile from the repository using the installation hints in the README. Or we have Debian/Ubuntu packages and precompiled binaries for Linux and any PHP version 5.3 - 5.6:
https://qafoolabs.com/profiler/downloads

Its entirely usable without the SaaS platform we built around it, just use qafooprofiler_enable() and qafooprofiler_disable() instead.

@shanemeyers
Copy link

Applying pull #48 to HEAD (91e0be9) compiles cleanly, but we still get crashes.

 [Wed Jan 21 11:02:59 2015] [notice] child pid 25559 exit signal Segmentation fault (11)

@sn01615
Copy link

sn01615 commented Sep 15, 2015

Sep 15 21:18:02 dev kernel: in php-fpm[400000+888000]
Sep 15 21:18:02 dev kernel: php-fpm[1982]: segfault at 0 ip 0000000000651d40 sp 00007ffe516d5380 error 6 in php-fpm[400000+888000]
Sep 15 21:18:02 dev kernel: php-fpm[2105]: segfault at 0 ip 0000000000651d40 sp 00007ffe516d5380 error 6 in php-fpm[400000+888000]

@xuanskyer
Copy link

xuanskyer commented Jan 3, 2017

kernel: php-fpm[51660]: segfault at 18 ip 00007f80e6f1c24f sp 00007fff264638e0 error 4 in xhprof.so[7f80e6f18000+6000]

try this: fix crash

yazshel pushed a commit to FluentDevelopment/xhprof that referenced this issue Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests