PHP  
 PHP_5_4
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

==17647== Invalid read of size 8
==17647==    at 0x665063: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1b28 is 56 bytes inside a block of size 88 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0x661422: dba_close (dba.c:436)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647== 
==17647== Invalid read of size 8
==17647==    at 0x669143: dba_fetch_flatfile (dba_flatfile.c:67)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1af0 is 0 bytes inside a block of size 88 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0x661422: dba_close (dba.c:436)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647== 
==17647== Invalid read of size 8
==17647==    at 0x66C387: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd23c0 is 16 bytes inside a block of size 48 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0x6690C4: dba_close_flatfile (dba_flatfile.c:59)
==17647==    by 0x6611D1: dba_close (dba.c:414)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 4
==17647==    at 0xCE238D: _php_stream_seek (streams.c:1280)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1f38 is 120 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 4
==17647==    at 0xCE23C4: _php_stream_seek (streams.c:1286)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1f58 is 152 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 8
==17647==    at 0xCE24F5: _php_stream_seek (streams.c:1297)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1f60 is 160 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 8
==17647==    at 0xCE25E0: _php_stream_seek (streams.c:1309)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1ec0 is 0 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 4
==17647==    at 0xCE2609: _php_stream_seek (streams.c:1309)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1f58 is 152 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 8
==17647==    at 0xCE2633: _php_stream_seek (streams.c:1312)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1ee8 is 40 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 8
==17647==    at 0xCE26B9: _php_stream_seek (streams.c:1322)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==    by 0xF55E79: main (php_cli.c:1365)
==17647==  Address 0x14dd1ec0 is 0 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 8
==17647==    at 0xCED546: php_stdiop_seek (plain_wrapper.c:456)
==17647==    by 0xCE26EA: _php_stream_seek (streams.c:1322)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==  Address 0x14dd1ec8 is 8 bytes inside a block of size 224 free'd
==17647==    at 0x4C27C24: free (vg_replace_malloc.c:473)
==17647==    by 0xCDFCE8: _php_stream_free (streams.c:562)
==17647==    by 0x661348: dba_close (dba.c:428)
==17647==    by 0x66149D: dba_close_rsrc (dba.c:446)
==17647==    by 0xDA4432: plist_entry_destructor (zend_list.c:209)
==17647==    by 0xD9FE25: zend_hash_apply_deleter (zend_hash.c:650)
==17647==    by 0xDA0372: zend_hash_apply_with_argument (zend_hash.c:743)
==17647==    by 0x661525: dba_close_pe_rsrc (dba.c:463)
==17647==    by 0xDA42CC: list_entry_destructor (zend_list.c:183)
==17647==    by 0xD9F6DF: zend_hash_del_key_or_index (zend_hash.c:531)
==17647==    by 0xDA3A75: _zend_list_delete (zend_list.c:57)
==17647==    by 0x6649DF: zif_dba_close (dba.c:984)
==17647== 
==17647== Invalid read of size 1
==17647==    at 0xCED552: php_stdiop_seek (plain_wrapper.c:461)
==17647==    by 0xCE26EA: _php_stream_seek (streams.c:1322)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==  Address 0xc is not stack'd, malloc'd or (recently) free'd
==17647== 
==17647== 
==17647== Process terminating with default action of signal 11 (SIGSEGV)
==17647==  Access not within mapped region at address 0xC
==17647==    at 0xCED552: php_stdiop_seek (plain_wrapper.c:461)
==17647==    by 0xCE26EA: _php_stream_seek (streams.c:1322)
==17647==    by 0x66C39C: flatfile_findkey (flatfile.c:172)
==17647==    by 0x66BDAA: flatfile_fetch (flatfile.c:90)
==17647==    by 0x669171: dba_fetch_flatfile (dba_flatfile.c:70)
==17647==    by 0x665091: zif_dba_fetch (dba.c:1035)
==17647==    by 0xDE45EF: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==17647==    by 0xDEE78F: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2233)
==17647==    by 0xDE274B: execute (zend_vm_execute.h:410)
==17647==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==17647==    by 0xCB8891: php_execute_script (main.c:2502)
==17647==    by 0xF5483C: do_cli (php_cli.c:989)
==17647==  If you believe this happened as a result of a stack
==17647==  overflow in your program's main thread (unlikely but
==17647==  possible), you can try to increase the size of the
==17647==  main thread stack using the --main-stacksize= flag.
==17647==  The main thread stack size used in this run was 33554432.

 

Generated at Thu, 16 Apr 2015 10:21:45 +0000 (2 days ago)

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