On Wed, Mar 20, 2019 at 10:36 AM Otto, Thomas <thomas.o...@pdv-fs.de> wrote: > > See the corresponding thread on gcc-help: > > "ggc_collect() discarding/reusing remap_debug_filename() output, thus > producing invalid objects"
Hmm, but AFAICS it can end up on the heap if plain get_src_pwd () result survives. I vaguely remember GC being happy with heap strings (due to identifiers?), but not sure. Otherwise the patch looks obvious enough. How did you test it? The patch misses a changelog entry. Richard. > > Regards > > Thomas >