valgrind find: initialize attr->write_offset at definition time