GNOME Bugzilla – Bug 340605
Lock readonly buffers when running under Valgrind?
Last modified: 2009-05-07 19:53:46 UTC
Perhaps a useful mem debugging aid would be locking buffers (or more generally, MiniObjects) that are not writeable using Valgrind client requests. This would make it much easier to catch semantics breach, especially as docs for _object_ref() don't mention writeability right now.
This sounds like something that one would only want to enable with special configure switches, as buffer refcounting is usually done atomically and you'd have to (a) check for the special mode case and (b) use normal locks to do all this in a thread-safe way otherwise if I'm not mistaken. Depends on whether we want to avoid (a) in normal operation I guess. Anyway, got a patch?
As there wasn't any progress in years I'll close this bug for now as we usually don't keep such feature request unless someone is working on it.