Valgrind Report for ext/interbase/tests/bug45575.phpt ('Bug #45575 (Segfault with invalid non-string as event handler callback)')
Script
1:
<?php 2: 3: require("interbase.inc"); 4: 5: $db = ibase_connect($test_base); 6: 7: function foobar($var) { var_dump($var); return true; } 8: 9: ibase_set_event_handler($db, null, 'TEST1'); 10: ibase_set_event_handler($db, 1, 'TEST1'); 11: ibase_set_event_handler('foobar', 'TEST1'); 12: 13: ?> 14:
Report
==23789== Invalid read of size 8
==23789== at 0x7A91D5: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b60 is 0 bytes after a block of size 32 alloc'd
==23789== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==23789== by 0xDB90AC: _emalloc (zend_alloc.c:2427)
==23789== by 0x7AA868: zif_ibase_set_event_handler (ibase_events.c:345)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A9229: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b38 is 8 bytes before a block of size 32 alloc'd
==23789== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==23789== by 0xDB90AC: _emalloc (zend_alloc.c:2427)
==23789== by 0x7AA868: zif_ibase_set_event_handler (ibase_events.c:345)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A9237: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b30 is 16 bytes before a block of size 32 alloc'd
==23789== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==23789== by 0xDB90AC: _emalloc (zend_alloc.c:2427)
==23789== by 0x7AA868: zif_ibase_set_event_handler (ibase_events.c:345)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A9245: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b28 is 24 bytes before a block of size 32 alloc'd
==23789== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==23789== by 0xDB90AC: _emalloc (zend_alloc.c:2427)
==23789== by 0x7AA868: zif_ibase_set_event_handler (ibase_events.c:345)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A9253: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b20 is not stack'd, malloc'd or (recently) free'd
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A9261: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b18 is not stack'd, malloc'd or (recently) free'd
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A926F: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b10 is not stack'd, malloc'd or (recently) free'd
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A927D: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b08 is 16 bytes after a block of size 8 alloc'd
==23789== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==23789== by 0xDB90AC: _emalloc (zend_alloc.c:2427)
==23789== by 0xDB93A5: _safe_emalloc (zend_alloc.c:2583)
==23789== by 0x7AA83E: zif_ibase_set_event_handler (ibase_events.c:343)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A928B: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369b00 is 8 bytes after a block of size 8 alloc'd
==23789== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==23789== by 0xDB90AC: _emalloc (zend_alloc.c:2427)
==23789== by 0xDB93A5: _safe_emalloc (zend_alloc.c:2583)
==23789== by 0x7AA83E: zif_ibase_set_event_handler (ibase_events.c:343)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789==
==23789== Invalid read of size 8
==23789== at 0x7A92A0: _php_ibase_event_block (ibase_events.c:108)
==23789== by 0x7AAC9D: zif_ibase_set_event_handler (ibase_events.c:356)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789== Address 0x15369af8 is 0 bytes after a block of size 8 alloc'd
==23789== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==23789== by 0xDB90AC: _emalloc (zend_alloc.c:2427)
==23789== by 0xDB93A5: _safe_emalloc (zend_alloc.c:2583)
==23789== by 0x7AA83E: zif_ibase_set_event_handler (ibase_events.c:343)
==23789== by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==23789== by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==23789== by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==23789== by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==23789== by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==23789== by 0xD312C7: php_execute_script (main.c:2481)
==23789== by 0xFF21A4: do_cli (php_cli.c:993)
==23789== by 0xFF3951: main (php_cli.c:1377)
==23789==
Generated at Sat, 08 Jun 2013 10:22:27 +0000 (9 days ago)
|