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

==19201== Invalid read of size 4
==19201==    at 0x65F7A82: ??? (in /usr/lib64/libfbclient.so.2.5.7)
==19201==    by 0x65E9759: isc_database_info (in /usr/lib64/libfbclient.so.2.5.7)
==19201==    by 0x79A0DF: _php_ibase_free_stmt_handle (ibase_query.c:127)
==19201==    by 0x79A21E: _php_ibase_free_result (ibase_query.c:148)
==19201==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==19201==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==19201==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==19201==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==19201==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==19201==    by 0xFE155A: zend_deactivate (zend.c:1152)
==19201==    by 0xECED79: php_request_shutdown (main.c:1932)
==19201==    by 0x122E45A: do_cli (php_cli.c:1164)
==19201==  Address 0x15fd9230 is 0 bytes inside a block of size 32 free'd
==19201==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==19201==    by 0xF73AC3: _efree (zend_alloc.c:2500)
==19201==    by 0x7964DA: _php_ibase_close_link (interbase.c:643)
==19201==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==19201==    by 0x10217CF: zend_list_close (zend_list.c:87)
==19201==    by 0x797B46: _php_ibase_connect (interbase.c:943)
==19201==    by 0x7984B6: zif_ibase_connect (interbase.c:1030)
==19201==    by 0x11FF59D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:700)
==19201==    by 0x11FF59D: execute_ex (zend_vm_execute.h:54815)
==19201==    by 0xFB2F6B: zend_call_function (zend_execute_API.c:801)
==19201==    by 0xFB1896: _call_user_function_ex (zend_execute_API.c:643)
==19201==    by 0xC71660: user_shutdown_function_call (basic_functions.c:5059)
==19201==    by 0x10162DD: zend_hash_apply (zend_hash.c:1753)
==19201==  Block was alloc'd at
==19201==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==19201==    by 0xF777FD: __zend_malloc (zend_alloc.c:2896)
==19201==    by 0xF6E8DB: _emalloc_32 (zend_alloc.c:2413)
==19201==    by 0x797F51: _php_ibase_connect (interbase.c:988)
==19201==    by 0x7984B6: zif_ibase_connect (interbase.c:1030)
==19201==    by 0x11FF59D: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:700)
==19201==    by 0x11FF59D: execute_ex (zend_vm_execute.h:54815)
==19201==    by 0x122750B: zend_execute (zend_vm_execute.h:60215)
==19201==    by 0xFE348A: zend_execute_scripts (zend.c:1616)
==19201==    by 0xED11E3: php_execute_script (main.c:2643)
==19201==    by 0x122D2D1: do_cli (php_cli.c:997)
==19201==    by 0x122ED8F: main (php_cli.c:1389)
==19201== 

 

Generated at Sat, 01 Dec 2018 10:41:11 +0000 (10 days ago)

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