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

==4310== Invalid read of size 4
==4310==    at 0x5F3DA82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==4310==    by 0x5F2F759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==4310==    by 0x889692: _php_ibase_free_stmt_handle (ibase_query.c:127)
==4310==    by 0x8898E5: _php_ibase_free_query (ibase_query.c:169)
==4310==    by 0x889A0D: php_ibase_free_query_rsrc (ibase_query.c:189)
==4310==    by 0x102CB2D: zend_resource_dtor (zend_list.c:76)
==4310==    by 0x102D533: zend_close_rsrc (zend_list.c:230)
==4310==    by 0x10237B8: zend_hash_reverse_apply (zend_hash.c:1598)
==4310==    by 0x102D57D: zend_close_rsrc_list (zend_list.c:238)
==4310==    by 0xFB7AAF: shutdown_executor (zend_execute_API.c:353)
==4310==    by 0xFE9DD3: zend_deactivate (zend.c:1005)
==4310==    by 0xEDDE15: php_request_shutdown (main.c:1902)
==4310==  Address 0x150826c0 is 0 bytes inside a block of size 32 free'd
==4310==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==4310==    by 0xF84A41: _efree (zend_alloc.c:2444)
==4310==    by 0x885A40: _php_ibase_close_link (interbase.c:643)
==4310==    by 0x102CB2D: zend_resource_dtor (zend_list.c:76)
==4310==    by 0x102CC05: zend_list_close (zend_list.c:89)
==4310==    by 0x88711A: _php_ibase_connect (interbase.c:943)
==4310==    by 0x887B71: zif_ibase_connect (interbase.c:1037)
==4310==    by 0x10CC0AE: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==4310==    by 0x10C92C6: execute_ex (zend_vm_execute.h:432)
==4310==    by 0xFBB4EA: zend_call_function (zend_execute_API.c:855)
==4310==    by 0xFB9912: _call_user_function_ex (zend_execute_API.c:672)
==4310==    by 0xCF3121: user_shutdown_function_call (basic_functions.c:5017)
==4310==  Block was alloc'd at
==4310==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==4310==    by 0xF8609B: __zend_malloc (zend_alloc.c:2838)
==4310==    by 0xF7F7F6: _emalloc_32 (zend_alloc.c:2352)
==4310==    by 0x88754C: _php_ibase_connect (interbase.c:988)
==4310==    by 0x887B71: zif_ibase_connect (interbase.c:1037)
==4310==    by 0x10CC0AE: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==4310==    by 0x10C92C6: execute_ex (zend_vm_execute.h:432)
==4310==    by 0x10C9F13: zend_execute (zend_vm_execute.h:474)
==4310==    by 0xFEC038: zend_execute_scripts (zend.c:1482)
==4310==    by 0xEE0014: php_execute_script (main.c:2577)
==4310==    by 0x1232EF5: do_cli (php_cli.c:993)
==4310==    by 0x123489C: main (php_cli.c:1381)
==4310== 

 

Generated at Mon, 12 Feb 2018 03:40:49 +0000 (8 days ago)

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