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

==29592== Invalid read of size 4
==29592==    at 0x6157A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==29592==    by 0x6149759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==29592==    by 0x8D92ED: _php_ibase_free_stmt_handle (ibase_query.c:127)
==29592==    by 0x8D9548: _php_ibase_free_query (ibase_query.c:169)
==29592==    by 0x8D9671: php_ibase_free_query_rsrc (ibase_query.c:189)
==29592==    by 0x1133558: zend_resource_dtor (zend_list.c:76)
==29592==    by 0x1133F7D: zend_close_rsrc (zend_list.c:230)
==29592==    by 0x1128FC5: zend_hash_reverse_apply (zend_hash.c:1597)
==29592==    by 0x1133FC9: zend_close_rsrc_list (zend_list.c:238)
==29592==    by 0x10BB887: shutdown_executor (zend_execute_API.c:263)
==29592==    by 0x10EF5D6: zend_deactivate (zend.c:1036)
==29592==    by 0xFE008F: php_request_shutdown (main.c:1904)
==29592==  Address 0x14f6d910 is 0 bytes inside a block of size 32 free'd
==29592==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==29592==    by 0x1084A05: _efree (zend_alloc.c:2444)
==29592==    by 0x8D5556: _php_ibase_close_link (interbase.c:643)
==29592==    by 0x1133558: zend_resource_dtor (zend_list.c:76)
==29592==    by 0x1133633: zend_list_close (zend_list.c:89)
==29592==    by 0x8D6BC2: _php_ibase_connect (interbase.c:943)
==29592==    by 0x8D76F2: zif_ibase_connect (interbase.c:1037)
==29592==    by 0x1345812: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==29592==    by 0x1345812: execute_ex (zend_vm_execute.h:59750)
==29592==    by 0x10C015F: zend_call_function (zend_execute_API.c:820)
==29592==    by 0x10BEAD7: _call_user_function_ex (zend_execute_API.c:655)
==29592==    by 0xD86A5C: user_shutdown_function_call (basic_functions.c:5023)
==29592==    by 0x1127935: zend_hash_apply (zend_hash.c:1506)
==29592==  Block was alloc'd at
==29592==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==29592==    by 0x1085F6B: __zend_malloc (zend_alloc.c:2829)
==29592==    by 0x107F79F: _emalloc_32 (zend_alloc.c:2352)
==29592==    by 0x8D6FB1: _php_ibase_connect (interbase.c:988)
==29592==    by 0x8D76F2: zif_ibase_connect (interbase.c:1037)
==29592==    by 0x1345812: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==29592==    by 0x1345812: execute_ex (zend_vm_execute.h:59750)
==29592==    by 0x136CD4C: zend_execute (zend_vm_execute.h:63776)
==29592==    by 0x10F14C9: zend_execute_scripts (zend.c:1496)
==29592==    by 0xFE2424: php_execute_script (main.c:2590)
==29592==    by 0x1372C07: do_cli (php_cli.c:1011)
==29592==    by 0x1374691: main (php_cli.c:1404)
==29592== 

 

Generated at Fri, 03 Aug 2018 22:39:28 +0000 (15 days ago)

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