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

Valgrind Report for ext/interbase/tests/ibase_rollback_001.phpt ('ibase_rollback(): Basic test')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
$x ibase_connect($test_base);
6:
7:
ibase_query('INSERT INTO test1 VALUES (100, 2)');
8:
ibase_query('INSERT INTO test1 VALUES (100, 2)');
9:
ibase_query('INSERT INTO test1 VALUES (100, 2)');
10:
11:
$rs ibase_query('SELECT COUNT(*) FROM test1 WHERE i = 100');
12:
var_dump(ibase_fetch_row($rs));
13:
14:
var_dump(ibase_rollback($x));
15:
16:
$rs ibase_query('SELECT COUNT(*) FROM test1 WHERE i = 100');
17:
var_dump(ibase_fetch_row($rs));
18:
19:
var_dump(ibase_rollback($x));
20:
var_dump(ibase_rollback());
21:
22:
?>
23:

Report

==3813== Invalid read of size 4
==3813==    at 0x6149A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==3813==    by 0x613B759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==3813==    by 0x914074: _php_ibase_free_stmt_handle (ibase_query.c:127)
==3813==    by 0x9141B3: _php_ibase_free_result (ibase_query.c:148)
==3813==    by 0x117AF58: zend_resource_dtor (zend_list.c:76)
==3813==    by 0x117B97F: zend_close_rsrc (zend_list.c:230)
==3813==    by 0x11707ED: zend_hash_reverse_apply (zend_hash.c:1737)
==3813==    by 0x117B9CB: zend_close_rsrc_list (zend_list.c:238)
==3813==    by 0x1103517: shutdown_executor (zend_execute_API.c:262)
==3813==    by 0x1139437: zend_deactivate (zend.c:1106)
==3813==    by 0x1027C68: php_request_shutdown (main.c:1765)
==3813==    by 0x1389D7F: do_cli (php_cli.c:1178)
==3813==  Address 0x14f25af0 is 0 bytes inside a block of size 32 free'd
==3813==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==3813==    by 0x10C9DEF: _efree (zend_alloc.c:2506)
==3813==    by 0x91040B: _php_ibase_close_link (interbase.c:643)
==3813==    by 0x117AF58: zend_resource_dtor (zend_list.c:76)
==3813==    by 0x117B03B: zend_list_close (zend_list.c:89)
==3813==    by 0x911A77: _php_ibase_connect (interbase.c:946)
==3813==    by 0x91243E: zif_ibase_connect (interbase.c:1035)
==3813==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==3813==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==3813==    by 0x11078D8: zend_call_function (zend_execute_API.c:786)
==3813==    by 0x1106276: _call_user_function_ex (zend_execute_API.c:628)
==3813==    by 0xDE3522: user_shutdown_function_call (basic_functions.c:5051)
==3813==    by 0x116F2CC: zend_hash_apply (zend_hash.c:1654)
==3813==  Block was alloc'd at
==3813==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==3813==    by 0x10CD9EC: __zend_malloc (zend_alloc.c:2898)
==3813==    by 0x10C4C07: _emalloc_32 (zend_alloc.c:2419)
==3813==    by 0x911E82: _php_ibase_connect (interbase.c:991)
==3813==    by 0x91243E: zif_ibase_connect (interbase.c:1035)
==3813==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==3813==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==3813==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==3813==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==3813==    by 0x102A06F: php_execute_script (main.c:2467)
==3813==    by 0x1388BF6: do_cli (php_cli.c:1011)
==3813==    by 0x138A6B4: main (php_cli.c:1404)
==3813== 

 

Generated at Wed, 23 May 2018 02:31:34 +0000 (3 days ago)

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