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_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

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

 

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

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