-
Notifications
You must be signed in to change notification settings - Fork 8k
Fixed #73973 - debug_zval_dump() assertion error for resource consts with --enable-debug #2332
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
Conversation
|
This looks okay to me (and travis, but that's release mode) ... just waiting for some input from @nikic |
|
The two cited commits aren't related to this problem. As such, this simply reverts the original fix, such that bug73098.phpt valgrinds again. First error: |
|
Oh, I didn't valgrind it ... Looks like we're back to square one then ... have you had any ideas yet @nikic ? |
|
@nikic thanks! I will investigate further and re-work this PR then |
|
Did you run valgrind with USE_ZEND_ALLOC=0? You can also invoke the test runner with valgrind using |
|
@nikic yeah, sure, I set |
|
You're not looking for faults, you're looking for memory errors reported by valgrind. |
…with --enable-debug
339815c to
d8b6cc3
Compare
|
Hi again @nikic @krakjoe ! and here is the old note I found that constants should be destroyed before resource list a35c61a#diff-856f8846e4ed94f923a0978e75c75b17R224 |
|
Great stuff, I'll have time to review later on today ... and @nikic will tell us if something is obviously wrong, I hope :) |
|
The bug reported in http://bugs.php.net/73973 remains. |
|
Hi @krakjoe ! Not sure if I properly understood you but let me explain. Before my fix I've added test After my fix this test passed successfully (locally on Ubuntu and OS X and on Travis). Also I've checked this test for memory errors with valgrind - everything looks fine. Could you please give me more details, I will verify it. Thanks! |
|
My mistake, I rebuilt this morning and there is no error ... must have been using wrong php executable or something. LGTM. |
|
Merged f65ae82 Thanks. |
Fix for https://bugs.php.net/bug.php?id=73973
I reverted changes in
zend_builtin_functions.cdone here - 6815c08Proper resource handling is done here 896814e and here ac58d21
Segmentation fault mentioned in https://bugs.php.net/bug.php?id=70398 will not occur because of
php-src/Zend/zend_ast.c
Line 481 in c8aa6f3
Corresponding to https://bugs.php.net/bug.php?id=70398 tests are passing successfully.