wiredtiger/wiredtiger.github.com — Issue #41: invalid read of size 4
Author: wiredtiger
Created: 2012-01-31 15:23:13+00:00
State: open

I'm seeing an invalid read in valgrind on this config:

cache=3
file_type=row
huffman_data=0
huffman_key=0
ops=0
rows=100

==97021== Invalid read of size 4
97021 at 0x8050CEA: __curstat_next (cur_stat.c:54)
97021 by 0x804CEA0: wts_stats (wts.c:369)
97021 by 0x804B675: main (t.c:125)
97021 Address 0x3ec674 is 0 bytes after a block of size 132 alloc'd
97021 at 0x5821D: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x
86-freebsd.so)
97021 by 0x80627C8: __wt_calloc (os_alloc.c:37)
97021 by 0x8050FAE: __wt_curstat_open (cur_stat.c:216)
97021 by 0x804E157: __session_open_cursor (api.c:72)
97021 by 0x804CD90: wts_stats (wts.c:362)
97021 by 0x804B675: main (t.c:125)
97021
97021 Invalid read of size 4
97021 at 0x8050E6A: __curstat_close (cur_stat.c:158)
97021 by 0x804CECE: wts_stats (wts.c:378)
97021 by 0x804B675: main (t.c:125)
97021 Address 0x3ec674 is 0 bytes after a block of size 132 alloc'd
97021 at 0x5821D: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-x
86-freebsd.so)
97021 by 0x80627C8: __wt_calloc (os_alloc.c:37)
97021 by 0x8050FAE: __wt_curstat_open (cur_stat.c:216)
97021 by 0x804E157: __session_open_cursor (api.c:72)
97021 by 0x804CD90: wts_stats (wts.c:362)
97021 by 0x804B675: main (t.c:125)

Add