Thanks for reporting the problem. I updated the grep master on savannah to use the latest Gnulib, which has fixes in this area, by installing the attached patch. Please give it a try and let us know how it goes. You may need to run './bootstrap' from a fresh checkout (no caches from the previous build).