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

segfault with php 5.5 when used in auto_prepend_file #47

Open
jocel1 opened this issue Sep 24, 2014 · 3 comments
Open

segfault with php 5.5 when used in auto_prepend_file #47

jocel1 opened this issue Sep 24, 2014 · 3 comments

Comments

@jocel1
Copy link

jocel1 commented Sep 24, 2014

Hi,

I have a simple script with

@jocel1
Copy link
Author

jocel1 commented Sep 24, 2014

The crash seems to occur in hp_get_function_name(). If I remove the else branch of the if (func) { } else { }, php doesn't crash anymore. Perhaps the curr_op = data->prev_execute_data->opline->extended_value; is not ok in this case ?

@jocel1
Copy link
Author

jocel1 commented Sep 24, 2014

If I'm doing the following test, it doesn't crash anymore :

if (data->prev_execute_data) {
curr_op = data->prev_execute_data->opline->extended_value;
} else {
curr_op = data->opline->extended_value;
}

However, I have a "???_op" in the list of functions

@jocel1
Copy link
Author

jocel1 commented Sep 25, 2014

I've just made a PR for this issue : #48

yazshel pushed a commit to FluentDevelopment/xhprof that referenced this issue Dec 3, 2020
Add missing tests and clean-up md5sum
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

1 participant