FYI Strange build problem: grep goes into busy loop?

David Holmes david.holmes at oracle.com
Thu Sep 6 21:48:48 PDT 2012


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