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

php 5.1.x segfault #2812

Closed
robocoder opened this issue Dec 3, 2011 · 8 comments
Closed

php 5.1.x segfault #2812

robocoder opened this issue Dec 3, 2011 · 8 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@robocoder
Copy link
Contributor

It's been a while since we've tested with 5.1.x, and it looks like we have a regression.

DataTable.test.php segfaults:


(gdb) bt
#0  0x08356392 in zend_std_unset_property ()
#1  0x083835fc in ZEND_UNSET_OBJ_SPEC_UNUSED_CONST_HANDLER ()
#2  0x0835c4c5 in execute ()
#3  0x08332acc in zend_call_function ()
#4  0x0834f565 in zend_call_method ()
#5  0x08354911 in zend_objects_destroy_object ()
#6  0x08357a26 in zend_objects_store_del_ref ()
#7  0x0833b81d in _zval_dtor_func ()
#8  0x08358f82 in _zval_dtor ()
#9  0x0835b0c1 in zend_assign_to_variable ()
#10 0x0837fd09 in ZEND_ASSIGN_DIM_SPEC_VAR_CV_HANDLER ()
#11 0x0835c4c5 in execute ()
#12 0x0835ca0c in zend_do_fcall_common_helper_SPEC ()
#13 0x0835cdfc in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER ()
#14 0x0835c4c5 in execute ()
#15 0x0835ca0c in zend_do_fcall_common_helper_SPEC ()
#16 0x0835cdfc in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER ()
#17 0x0835c4c5 in execute ()
#18 0x08332acc in zend_call_function ()
#19 0x0834f565 in zend_call_method ()
#20 0x08354911 in zend_objects_destroy_object ()
#21 0x08357705 in zend_objects_store_call_destructors ()
#22 0x08330be8 in shutdown_destructors ()
#23 0x0833cd31 in zend_call_destructors ()
#24 0x082f9e91 in php_request_shutdown ()
#25 0x083a27cc in main ()
(gdb) 
@robocoder
Copy link
Contributor Author

Also segfaulting in Cookie.test.php. (The backtrace is uglier...looks like the stack is corrupted.)

@mattab
Copy link
Member

mattab commented Dec 3, 2011

interesting, it is segfaulting during shutdown? could it be session related? do you have more info because this is not telling us where the but is unfortunately... ;) do you think it can be fixed?

@robocoder
Copy link
Contributor Author

(In [5520]) refs #2735, refs #2812

@robocoder
Copy link
Contributor Author

I narrowed it down to the test_infiniteRecursion. I guess we trigger an old php bug here. (no seg fault in 5.2 or later versions that I have).

@robocoder
Copy link
Contributor Author

In tests/core/DataTable.tst.php's test_serializeWithInfiniteRecursion(), the seg fault happens even if I comment out the $table->getSerialized().

@mattab
Copy link
Member

mattab commented Dec 7, 2011

In tests/core/DataTable.tst.php's test_serializeWithInfiniteRecursion(), the seg fault happens even if I comment out the $table->getSerialized().

so the bug is in addRowFromArray ? Very strange... ! I have not yet setup 5.4 so cant debug now, but certainly interesting, might be a bug in PHP?

@robocoder
Copy link
Contributor Author

Yes, bug happens after calling addRowFromArray using php 5.1.x. Works fine in 5.4.

@mattab
Copy link
Member

mattab commented Dec 12, 2011

Marking as wont fix.

In the segmentation fault faq we recommend to ugprade PHP to latest version, which covers this issue.

@robocoder robocoder added this to the 1.7 Piwik 1.7 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants