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

Crash on module shutdown #4

Closed
jocel1 opened this issue Jun 1, 2014 · 4 comments
Closed

Crash on module shutdown #4

jocel1 opened this issue Jun 1, 2014 · 4 comments

Comments

@jocel1
Copy link

jocel1 commented Jun 1, 2014

Hi,

I'm experiencing a crash in uopz with php 5.4.28 & uopz 2.0.4.
Basically I'm just adding uopz.so without calling any uopz function, and it crashes :

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x000000010399e283 in _zend_mm_free_int ()
(gdb) bt
#0 0x000000010399e283 in _zend_mm_free_int ()
#1 0x00000001039b5715 in destroy_op_array ()
#2 0x00000001039c9be5 in zend_hash_apply_deleter ()
#3 0x00000001039c9cde in zend_hash_apply ()
#4 0x000000010272e717 in php_uopz_clean_user_class ()
#5 0x00000001039c9cc4 in zend_hash_apply ()
#6 0x000000010272e419 in zm_deactivate_uopz ()
#7 0x00000001039c4742 in zend_deactivate_modules ()
#8 0x000000010396b36c in php_request_shutdown ()
#9 0x0000000103a42bc2 in php_handler ()
#10 0x0000000100002e17 in ap_run_handler ()
#11 0x0000000100003281 in ap_invoke_handler ()
#12 0x00000001000203b6 in ap_process_request ()
#13 0x000000010001dda5 in ap_process_http_connection ()
#14 0x000000010000e107 in ap_run_process_connection ()
#15 0x0000000100025d11 in child_main ()
#16 0x0000000100025339 in make_child ()
#17 0x0000000100024aa2 in ap_mpm_run ()
#18 0x0000000100007d98 in main ()

I'll try to run it on a debug build to have more infos.

Thanks and regards,
Jocelyn Fournier

@jocel1
Copy link
Author

jocel1 commented Jun 1, 2014

I don't know if this could be related and if there is a known incompatibility, but I'm using ioncube loader (which is loaded before uopz).

@krakjoe
Copy link
Owner

krakjoe commented Jun 1, 2014

Can you test without ioncube loaded please ?

It's impossible to do anything if ioncube is causing you a problem, it is closed source ... and a horrible horrible idea ...

@jocel1
Copy link
Author

jocel1 commented Jun 1, 2014

with a debug build (hence without ioncube), it seems there's no more crash during the shutdown...
Note that the tested project was not encoded, but the ioncube loader extension was loaded.

@krakjoe
Copy link
Owner

krakjoe commented Jun 1, 2014

I can't do anything, sorry ...

Just so you know, if I could fix it, I would, ask anyone ...

But I want to say ... I really dislike ionCube, I dislike what it does and encourages, I think it's a dated, unnecessary, and damaging way to think ... code that you can rely on is code you can read, code you can change, code you can develop, code you can get help with.

ionCube stands in opposition to everything I hold up to be important.

TL;DR don't use ionCube

@krakjoe krakjoe closed this as completed Jun 1, 2014
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

2 participants