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

==17529== Invalid read of size 4
==17529==    at 0x6368A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==17529==    by 0x635A759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==17529==    by 0x79A05A: _php_ibase_free_stmt_handle (ibase_query.c:127)
==17529==    by 0x79A199: _php_ibase_free_result (ibase_query.c:148)
==17529==    by 0xFD80D4: zend_resource_dtor (zend_list.c:74)
==17529==    by 0xFD8B82: zend_close_rsrc_list (zend_list.c:230)
==17529==    by 0xF64D8A: shutdown_executor (zend_execute_API.c:263)
==17529==    by 0xF9847F: zend_deactivate (zend.c:1179)
==17529==    by 0xE85C03: php_request_shutdown (main.c:1906)
==17529==    by 0x1219D23: do_cli (php_cli.c:1159)
==17529==    by 0x121A658: main (php_cli.c:1384)
==17529==  Address 0x165664f0 is 0 bytes inside a block of size 32 free'd
==17529==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17529==    by 0xF2A91D: _efree (zend_alloc.c:2544)
==17529==    by 0x796455: _php_ibase_close_link (interbase.c:643)
==17529==    by 0xFD80D4: zend_resource_dtor (zend_list.c:74)
==17529==    by 0xFD81B7: zend_list_close (zend_list.c:87)
==17529==    by 0x797AC1: _php_ibase_connect (interbase.c:943)
==17529==    by 0x798431: zif_ibase_connect (interbase.c:1030)
==17529==    by 0x11E8D3D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:975)
==17529==    by 0x11E8D3D: execute_ex (zend_vm_execute.h:59872)
==17529==    by 0xF68B56: zend_call_function (zend_execute_API.c:769)
==17529==    by 0xF675A2: _call_user_function_ex (zend_execute_API.c:622)
==17529==    by 0xC29FBF: user_shutdown_function_call (basic_functions.c:5059)
==17529==    by 0xFCCCC0: zend_hash_apply (zend_hash.c:1779)
==17529==  Block was alloc'd at
==17529==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17529==    by 0xF2E5A5: __zend_malloc (zend_alloc.c:2937)
==17529==    by 0xF25815: _emalloc_32 (zend_alloc.c:2457)
==17529==    by 0x797ECC: _php_ibase_connect (interbase.c:988)
==17529==    by 0x798431: zif_ibase_connect (interbase.c:1030)
==17529==    by 0x11E8D3D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:975)
==17529==    by 0x11E8D3D: execute_ex (zend_vm_execute.h:59872)
==17529==    by 0x1212C87: zend_execute (zend_vm_execute.h:66092)
==17529==    by 0xF9A305: zend_execute_scripts (zend.c:1637)
==17529==    by 0xE87FCD: php_execute_script (main.c:2609)
==17529==    by 0x1218B9A: do_cli (php_cli.c:992)
==17529==    by 0x121A658: main (php_cli.c:1384)
==17529== 

 

Generated at Tue, 05 Mar 2019 22:11:22 +0000 (12 days ago)

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