> > Moving the 'mapset=xxxx;' bit out of the condition to about line 1257 > > just before 'if (reuse)' stops the segfault; see the attached patch. > > > That patch is against 5.0.3rc3, by the way. (which needs it) and it's already fixed in 5.3.