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

Valgrind Report for ext/dba/tests/dba015.phpt ('DBA with persistent connections')

Script

1: <?php
2:
3: $handler 
"flatfile";
4: require_once(
dirname(__FILE__) .'/test.inc');
5: echo 
"database handler: $handler\n";
6:
7: echo 
"Test 1\n";
8:
$db_file1 dba_popen($db_filename'n''flatfile');
9:
dba_insert("key1""This is a test insert 1"$db_file1);
10: echo 
dba_fetch("key1"$db_file1), "\n";
11:
12:
13: echo 
"Test 2\n";
14:
$db_file2 dba_popen($db_filename'n''flatfile');
15: if (
$db_file1 === $db_file2) {
16:     echo 
"resources are the same\n";
17: } else {
18:     echo 
"resources are different\n";
19: }
20:
21:
22: echo 
"Test 3 - fetch both rows from second resource\n";
23:
dba_insert("key2""This is a test insert 2"$db_file2);
24: echo 
dba_fetch("key1"$db_file2), "\n";
25: echo 
dba_fetch("key2"$db_file2), "\n";
26:
27:
28: echo 
"Test 4 - fetch both rows from first resource\n";
29: echo 
dba_fetch("key1"$db_file1), "\n";
30: echo 
dba_fetch("key2"$db_file1), "\n";
31:
32: echo 
"Test 5 - close 2nd resource\n";
33:
dba_close($db_file2);
34:
var_dump($db_file1);
35:
var_dump($db_file2);
36:
37: echo 
"Test 6 - query after closing 2nd resource\n";
38: echo 
dba_fetch("key1"$db_file1), "\n";
39: echo 
dba_fetch("key2"$db_file1), "\n";
40:
41:
?>
42:
===DONE===
43:

Report

==2336== Invalid read of size 8
==2336==    at 0x707544: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==    by 0x10AE44B: main (php_cli.c:1382)
==2336==  Address 0x154175f8 is 56 bytes inside a block of size 88 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0x703763: dba_close (dba.c:436)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0x702CC7: __zend_malloc (zend_alloc.h:97)
==2336==    by 0x705BB6: php_dba_open (dba.c:811)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==    by 0x10AE44B: main (php_cli.c:1382)
==2336== 
==2336== Invalid read of size 8
==2336==    at 0x70B710: dba_fetch_flatfile (dba_flatfile.c:67)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==    by 0x10AE44B: main (php_cli.c:1382)
==2336==  Address 0x154175c0 is 0 bytes inside a block of size 88 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0x703763: dba_close (dba.c:436)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0x702CC7: __zend_malloc (zend_alloc.h:97)
==2336==    by 0x705BB6: php_dba_open (dba.c:811)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==    by 0x10AE44B: main (php_cli.c:1382)
==2336== 
==2336== Invalid read of size 8
==2336==    at 0x70E976: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==    by 0x10AE44B: main (php_cli.c:1382)
==2336==  Address 0x15417e90 is 16 bytes inside a block of size 48 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0x70B691: dba_close_flatfile (dba_flatfile.c:59)
==2336==    by 0x703512: dba_close (dba.c:414)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0x70B4EF: __zend_malloc (zend_alloc.h:97)
==2336==    by 0x70B5A3: dba_open_flatfile (dba_flatfile.c:44)
==2336==    by 0x70684B: php_dba_open (dba.c:925)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336== 
==2336== Invalid read of size 4
==2336==    at 0xE3AD2B: _php_stream_seek (streams.c:1275)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==  Address 0x15417a08 is 120 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 4
==2336==    at 0xE3AD62: _php_stream_seek (streams.c:1281)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==  Address 0x15417a28 is 152 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 8
==2336==    at 0xE3AE93: _php_stream_seek (streams.c:1292)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==  Address 0x15417a30 is 160 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 8
==2336==    at 0xE3AF7E: _php_stream_seek (streams.c:1304)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==  Address 0x15417990 is 0 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 4
==2336==    at 0xE3AFA7: _php_stream_seek (streams.c:1304)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==  Address 0x15417a28 is 152 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 8
==2336==    at 0xE3AFD1: _php_stream_seek (streams.c:1307)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==  Address 0x154179b8 is 40 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 8
==2336==    at 0xE3B057: _php_stream_seek (streams.c:1317)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==    by 0x10ACC52: do_cli (php_cli.c:998)
==2336==  Address 0x15417990 is 0 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 8
==2336==    at 0xE45C46: php_stdiop_seek (plain_wrapper.c:479)
==2336==    by 0xE3B088: _php_stream_seek (streams.c:1317)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==  Address 0x15417998 is 8 bytes inside a block of size 224 free'd
==2336==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==2336==    by 0xE38680: _php_stream_free (streams.c:557)
==2336==    by 0x703689: dba_close (dba.c:428)
==2336==    by 0x7037DE: dba_close_rsrc (dba.c:446)
==2336==    by 0xF11B3C: plist_entry_destructor (zend_list.c:209)
==2336==    by 0xF0A8BC: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0A8BC: zend_hash_bucket_delete (zend_hash.c:192)
==2336==    by 0xF0D7FC: zend_hash_apply_with_argument (zend_hash.c:670)
==2336==    by 0x703871: dba_close_pe_rsrc (dba.c:463)
==2336==    by 0xF119D2: list_entry_destructor (zend_list.c:183)
==2336==    by 0xF0CE77: i_zend_hash_bucket_delete (zend_hash.c:182)
==2336==    by 0xF0CE77: zend_hash_del_key_or_index (zend_hash.c:526)
==2336==    by 0xF1115D: _zend_list_delete (zend_list.c:57)
==2336==    by 0x706EAC: zif_dba_close (dba.c:984)
==2336==  Block was alloc'd at
==2336==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==2336==    by 0xE36AEB: __zend_malloc (zend_alloc.h:97)
==2336==    by 0xE37C03: _php_stream_alloc (streams.c:292)
==2336==    by 0xE44E28: _php_stream_fopen_from_fd_int (plain_wrapper.c:168)
==2336==    by 0xE45148: _php_stream_fopen_from_fd (plain_wrapper.c:227)
==2336==    by 0xE47131: _php_stream_fopen (plain_wrapper.c:980)
==2336==    by 0xE47447: php_plain_files_stream_opener (plain_wrapper.c:1036)
==2336==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==2336==    by 0x7060B0: php_dba_open (dba.c:860)
==2336==    by 0x706D16: zif_dba_popen (dba.c:959)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336== 
==2336== Invalid read of size 1
==2336==    at 0xE45C52: php_stdiop_seek (plain_wrapper.c:484)
==2336==    by 0xE3B088: _php_stream_seek (streams.c:1317)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==  Address 0xc is not stack'd, malloc'd or (recently) free'd
==2336== 
==2336== 
==2336== Process terminating with default action of signal 11 (SIGSEGV)
==2336==  Access not within mapped region at address 0xC
==2336==    at 0xE45C52: php_stdiop_seek (plain_wrapper.c:484)
==2336==    by 0xE3B088: _php_stream_seek (streams.c:1317)
==2336==    by 0x70E98B: flatfile_findkey (flatfile.c:166)
==2336==    by 0x70E39A: flatfile_fetch (flatfile.c:90)
==2336==    by 0x70B73E: dba_fetch_flatfile (dba_flatfile.c:70)
==2336==    by 0x707572: zif_dba_fetch (dba.c:1035)
==2336==    by 0xF600AA: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==2336==    by 0xF6BC40: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==2336==    by 0xF5DB30: execute_ex (zend_vm_execute.h:363)
==2336==    by 0xF5E6D3: zend_execute (zend_vm_execute.h:388)
==2336==    by 0xEF221E: zend_execute_scripts (zend.c:1341)
==2336==    by 0xE0E799: php_execute_script (main.c:2613)
==2336==  If you believe this happened as a result of a stack
==2336==  overflow in your program's main thread (unlikely but
==2336==  possible), you can try to increase the size of the
==2336==  main thread stack using the --main-stacksize= flag.
==2336==  The main thread stack size used in this run was 33554432.

 

Generated at Sat, 13 Jan 2018 16:36:59 +0000 (8 days ago)

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