PHP  
 PHP_5_5
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

==30852== Invalid read of size 8
==30852==    at 0x7D5BE9: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba70 is 0 bytes after a block of size 32 alloc'd
==30852==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==30852==    by 0xDEEA44: _emalloc (zend_alloc.c:2427)
==30852==    by 0x7D727C: zif_ibase_set_event_handler (ibase_events.c:343)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C3D: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba48 is 8 bytes before a block of size 32 alloc'd
==30852==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==30852==    by 0xDEEA44: _emalloc (zend_alloc.c:2427)
==30852==    by 0x7D727C: zif_ibase_set_event_handler (ibase_events.c:343)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C4B: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba40 is 16 bytes before a block of size 32 alloc'd
==30852==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==30852==    by 0xDEEA44: _emalloc (zend_alloc.c:2427)
==30852==    by 0x7D727C: zif_ibase_set_event_handler (ibase_events.c:343)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C59: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba38 is 24 bytes before a block of size 32 alloc'd
==30852==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==30852==    by 0xDEEA44: _emalloc (zend_alloc.c:2427)
==30852==    by 0x7D727C: zif_ibase_set_event_handler (ibase_events.c:343)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C67: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba30 is not stack'd, malloc'd or (recently) free'd
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C75: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba28 is not stack'd, malloc'd or (recently) free'd
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C83: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba20 is not stack'd, malloc'd or (recently) free'd
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C91: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba18 is 16 bytes after a block of size 8 alloc'd
==30852==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==30852==    by 0xDEEA44: _emalloc (zend_alloc.c:2427)
==30852==    by 0xDEED3E: _safe_emalloc (zend_alloc.c:2583)
==30852==    by 0x7D7252: zif_ibase_set_event_handler (ibase_events.c:341)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5C9F: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba10 is 8 bytes after a block of size 8 alloc'd
==30852==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==30852==    by 0xDEEA44: _emalloc (zend_alloc.c:2427)
==30852==    by 0xDEED3E: _safe_emalloc (zend_alloc.c:2583)
==30852==    by 0x7D7252: zif_ibase_set_event_handler (ibase_events.c:341)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852== 
==30852== Invalid read of size 8
==30852==    at 0x7D5CB4: _php_ibase_event_block (ibase_events.c:106)
==30852==    by 0x7D76B1: zif_ibase_set_event_handler (ibase_events.c:354)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852==  Address 0x1541ba08 is 0 bytes after a block of size 8 alloc'd
==30852==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==30852==    by 0xDEEA44: _emalloc (zend_alloc.c:2427)
==30852==    by 0xDEED3E: _safe_emalloc (zend_alloc.c:2583)
==30852==    by 0x7D7252: zif_ibase_set_event_handler (ibase_events.c:341)
==30852==    by 0xEA8251: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)
==30852==    by 0xEB22C2: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2329)
==30852==    by 0xEA5EA0: execute_ex (zend_vm_execute.h:363)
==30852==    by 0xEA6A32: zend_execute (zend_vm_execute.h:388)
==30852==    by 0xE43001: zend_execute_scripts (zend.c:1316)
==30852==    by 0xD6679C: php_execute_script (main.c:2506)
==30852==    by 0x10274E5: do_cli (php_cli.c:994)
==30852==    by 0x1028C92: main (php_cli.c:1378)
==30852== 

 

Generated at Tue, 22 Apr 2014 03:58:31 +0000 (2 days ago)

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