FYI Strange build problem: grep goes into busy loop?

David Holmes david.holmes at oracle.com
Tue Sep 18 21:18:00 PDT 2012


Just for completeness I finally realized this was caused by a bug in the 
makefile that caused the _the* file to be appended to on each build. It 
had the makefile as a dependency and I was changing the makefile so this 
file got bigger and bigger and bigger :)

That bug has since been fixed by ensuring generated files are removed first.

David

On 7/09/2012 2:48 PM, David Holmes wrote:
> Just an FYI as I doubt anyone else will reproduce this. :)
>
> I've been doing a lot of tweaking of the build files and running "make
> images-only" a lot. I suddenly found that the build would "hang".
> Checking what was running I found this command, particularly the grep
> seemed to have gone into a busy loop - 100% CPU but not finished after
> 10 minutes!
>
> /bin/sh -c (/usr/bin/find
> /java/embedded/users/dh198349/embedded-profiles/builds/b00/se-linux-i586-ea/jdk/classes
> -type f -a \( -name FILE_NAME_THAT_DOESNT_EXIST -o -name "*.class" -o
> -name "*_dict" -o -name "*_th" \) | /bin/grep -f
> /java/embedded/users/dh198349/embedded-profiles/builds/b00/se-linux-i586-ea/jdk/lib/ext//_the.localedata.jar_include
> && /bin/echo )
>
> It was always this command and interestingly I haven't touched that file.
>
> Doing a clean and full build restored normality.
>
> Odd.
>
> David



More information about the build-infra-dev mailing list