XtNewString is a macro and shouldn't be given an argument that can change it's value on successive evaluations. xmh has such an abuse in.
Created attachment 4270 [details] Here's an untested patch.
This is fixed in Red Hat Linux 7.3 in XFree86 4.2.0, just confirmed.