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

Valgrind Report for ext/interbase/tests/ibase_free_query_001.phpt ('ibase_free_query(): Basic test')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$x ibase_connect($test_base);
6:
7:
$q =ibase_prepare($x'SELECT 1 FROM test1 WHERE i = ?');
8:
$q =ibase_prepare($x'SELECT 1 FROM test1 WHERE i = ?');
9:
$q ibase_prepare($x'SELECT 1 FROM test1 WHERE i = ?');
10:
11:
var_dump(ibase_free_query($q));
12:
var_dump(ibase_free_query($q));
13:
var_dump(ibase_free_query($x));
14:
15:
?>
16:

Report

==8393== Invalid read of size 4
==8393==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==8393==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==8393==    by 0x8D9225: _php_ibase_free_stmt_handle (ibase_query.c:127)
==8393==    by 0x8D9480: _php_ibase_free_query (ibase_query.c:169)
==8393==    by 0x8D95A9: php_ibase_free_query_rsrc (ibase_query.c:189)
==8393==    by 0x113354D: zend_resource_dtor (zend_list.c:76)
==8393==    by 0x1133F72: zend_close_rsrc (zend_list.c:230)
==8393==    by 0x1128FBA: zend_hash_reverse_apply (zend_hash.c:1597)
==8393==    by 0x1133FBE: zend_close_rsrc_list (zend_list.c:238)
==8393==    by 0x10BB87C: shutdown_executor (zend_execute_API.c:262)
==8393==    by 0x10EF5CB: zend_deactivate (zend.c:1036)
==8393==    by 0xFE0092: php_request_shutdown (main.c:1904)
==8393==  Address 0x14f5ea10 is 0 bytes inside a block of size 32 free'd
==8393==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==8393==    by 0x1084A08: _efree (zend_alloc.c:2444)
==8393==    by 0x8D548E: _php_ibase_close_link (interbase.c:643)
==8393==    by 0x113354D: zend_resource_dtor (zend_list.c:76)
==8393==    by 0x1133628: zend_list_close (zend_list.c:89)
==8393==    by 0x8D6AFA: _php_ibase_connect (interbase.c:943)
==8393==    by 0x8D762A: zif_ibase_connect (interbase.c:1037)
==8393==    by 0x1345359: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==8393==    by 0x1345359: execute_ex (zend_vm_execute.h:59734)
==8393==    by 0x10C0154: zend_call_function (zend_execute_API.c:819)
==8393==    by 0x10BEACC: _call_user_function_ex (zend_execute_API.c:654)
==8393==    by 0xD866F6: user_shutdown_function_call (basic_functions.c:5023)
==8393==    by 0x112792A: zend_hash_apply (zend_hash.c:1506)
==8393==  Block was alloc'd at
==8393==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==8393==    by 0x1085F6E: __zend_malloc (zend_alloc.c:2829)
==8393==    by 0x107F7A2: _emalloc_32 (zend_alloc.c:2352)
==8393==    by 0x8D6EE9: _php_ibase_connect (interbase.c:988)
==8393==    by 0x8D762A: zif_ibase_connect (interbase.c:1037)
==8393==    by 0x1345359: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==8393==    by 0x1345359: execute_ex (zend_vm_execute.h:59734)
==8393==    by 0x136C893: zend_execute (zend_vm_execute.h:63760)
==8393==    by 0x10F14BE: zend_execute_scripts (zend.c:1496)
==8393==    by 0xFE2427: php_execute_script (main.c:2590)
==8393==    by 0x137274E: do_cli (php_cli.c:1011)
==8393==    by 0x13741D8: main (php_cli.c:1404)
==8393== 

 

Generated at Thu, 21 Jun 2018 04:44:28 +0000 (2 days ago)

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