Re: [protobuf] valgrind invalid write and double free errors

2010-10-19 Thread Kenton Varda
These don't look like they have anything to do with the I/O change. The FileDescriptor class describes the contents of a .proto file (it's not related to OS file descriptors). The problems you're seeing appear to be happening while running global destructors -- i.e. at program shutdown. Are you

[protobuf] valgrind invalid write and double free errors

2010-10-13 Thread CB
I've been using protobuf 2.3.0 for several weeks, using SerializeToString. The other day, I switched to using SerializeToOstream, and started seeing the following invalid write and double free errors reported by valgrind when my program is terminated; ==15778== Invalid write of size 4 ==15778==

Re: [protobuf] valgrind invalid write and double free errors

2010-10-13 Thread Evan Jones
On Oct 13, 2010, at 16:53 , CB wrote: Any feedback on how to further debug this problem would be appreciated. You aren't doing anything strange like using dlopen() to dynamically load/unload libraries, are you? I can't think of anything obvious that might cause this kind of error. The