PHP  
 PHP_5_4
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

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($dbnull'TEST1');
10:
ibase_set_event_handler($db1'TEST1');
11:
ibase_set_event_handler('foobar''TEST1');
12:
13:
?>
14:

Report

==23701== Invalid read of size 8
==23701==    at 0x77EAD0: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deeb00 is 0 bytes after a block of size 32 alloc'd
==23701==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==23701==    by 0xD39015: _emalloc (zend_alloc.c:2423)
==23701==    by 0x7800FD: zif_ibase_set_event_handler (ibase_events.c:343)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB24: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deead8 is 8 bytes before a block of size 32 alloc'd
==23701==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==23701==    by 0xD39015: _emalloc (zend_alloc.c:2423)
==23701==    by 0x7800FD: zif_ibase_set_event_handler (ibase_events.c:343)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB32: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deead0 is 16 bytes before a block of size 32 alloc'd
==23701==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==23701==    by 0xD39015: _emalloc (zend_alloc.c:2423)
==23701==    by 0x7800FD: zif_ibase_set_event_handler (ibase_events.c:343)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB40: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deeac8 is 24 bytes before a block of size 32 alloc'd
==23701==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==23701==    by 0xD39015: _emalloc (zend_alloc.c:2423)
==23701==    by 0x7800FD: zif_ibase_set_event_handler (ibase_events.c:343)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB4E: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deeac0 is 32 bytes before a block of size 32 in arena "client"
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB5C: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deeab8 is 24 bytes after a block of size 16 in arena "client"
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB6A: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deeab0 is 16 bytes after a block of size 16 in arena "client"
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB78: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deeaa8 is 16 bytes after a block of size 8 alloc'd
==23701==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==23701==    by 0xD39015: _emalloc (zend_alloc.c:2423)
==23701==    by 0xD3930D: _safe_emalloc (zend_alloc.c:2539)
==23701==    by 0x7800D3: zif_ibase_set_event_handler (ibase_events.c:341)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB86: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deeaa0 is 8 bytes after a block of size 8 alloc'd
==23701==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==23701==    by 0xD39015: _emalloc (zend_alloc.c:2423)
==23701==    by 0xD3930D: _safe_emalloc (zend_alloc.c:2539)
==23701==    by 0x7800D3: zif_ibase_set_event_handler (ibase_events.c:341)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701== 
==23701== Invalid read of size 8
==23701==    at 0x77EB9B: _php_ibase_event_block (ibase_events.c:106)
==23701==    by 0x780532: zif_ibase_set_event_handler (ibase_events.c:354)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701==  Address 0x14deea98 is 0 bytes after a block of size 8 alloc'd
==23701==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==23701==    by 0xD39015: _emalloc (zend_alloc.c:2423)
==23701==    by 0xD3930D: _safe_emalloc (zend_alloc.c:2539)
==23701==    by 0x7800D3: zif_ibase_set_event_handler (ibase_events.c:341)
==23701==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==23701==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==23701==    by 0xDE274B: execute (zend_vm_execute.h:410)
==23701==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==23701==    by 0xCB8891: php_execute_script (main.c:2502)
==23701==    by 0xF5483C: do_cli (php_cli.c:989)
==23701==    by 0xF55E79: main (php_cli.c:1365)
==23701== 

 

Generated at Thu, 16 Apr 2015 10:21:45 +0000 (2 days ago)

Copyright © 2005-2015 The PHP Group
All rights reserved.