[Omake] Omake hangs when building a large product

Michael Steinhaus mspline at gmail.com
Tue Mar 18 10:25:53 PDT 2008


I'm designing an omake-based build system for a large product (Windows
platform, Microsoft toolchain, ~2.5MLOC of C++/C# code in more than a
hundred dll/lib projects). Everything works fine when building only parts of
the product. A problem appears when building the entire product -- omake
just hangs at some point.

The box is Intel Core2Quad, 3GB RAM.
The command line is "omake -j4".
When the build process hangs, in the Task Manager I see omake consuming 0%
CPU resources and the are no other build-related processes running (like
compiler/linker).

When I inject into the omake process with debugger, I see 11 threads.
Typically one of them is in the _Sleep at 4, another one in _ReadFile at 20, a
third one is in _GetNamedPipeInfo at 20, and the rest are in
WaitForMultipleObjects/WaitForSingleObject calls. On top of the call stack,
all the threads are hanging in the _KiFastSystemCallRet at 0 system call.

This looks like deadlock, but I have no idea how to troubleshoot it.
Unfortunately, the problem is elusive and doesn't always reproduce.

I built the latest 0.9.8.5 sources, but the problem is still there. Tried to
build 0.9.9 from sources, but failed.

The product in question is a production system at Deutsche Bank, with lots
of legacy code and convoluted dependencies between individual projects. I'm
fascinated with the ease omake could cover the product's complexity in a
concise and generic way. I would like to convince the management to choose
omake as the official build tool. This problem with the hang, however, is a
critical block. I'd be greatful for any help or advise.

Regards,
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.metaprl.org/pipermail/omake/attachments/20080318/2713a72c/attachment.html


More information about the Omake mailing list