help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DuplicateHandle(in) failed (e=6)


From: Lynn Lin
Subject: Re: DuplicateHandle(in) failed (e=6)
Date: Sun, 8 Jan 2012 09:27:16 +0800

Thanks very much for your quick response.

I am not sure whether I describe this issue well. The third party call the perl 
script (this perl script call gmake) perl use pipe to capture gmake output .It 
report the above error

There is one piece code in makefile.
DDIRS = $( foreach dir,$(OBJLISTDIR),$(shell cmd.exe /C "md $(dir) 1>NUL 
2>NUL)))

%.bin:... $(DDIRS)
         command

If I remove 1>NUL and 2>NUL ,the error go away. But I continue see the error 
which haven't identified in which makefile code

Process_easy :  DuplicateHandle(In) failed (e=6)
processor_easy: failed to launch process failed (e=6)

Sent from my iPad 

在 2012-1-8,8:45,Jeffrey Walton <address@hidden> 写道:

> On Sat, Jan 7, 2012 at 7:31 PM, Lynn Lin <address@hidden> wrote:
>> Hi all
>> I meet a very strange issue. I use gmake 3.81 on windows 2003 and have a 
>> perl script to call gmake.The script is working fine if I open dos command 
>> and run this script.
>> However if I use third party tool(Jenkins ,continuous integration tool),it 
>> report the following error
>> make: create_child_process DuplicateHandle(In) failed (e=6)
> That would be ERROR_INVALID_HANDLE
> (http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx).
> 
> The third party tool is probably attempting to use an invalid handle.
> Most likely, the handle was valid but is now closed (or is set to
> INVALID_HANDLE_VALUE). Note well (N.B.): INVALID_HANDLE_VALUE is
> different than NULL, and its easy to mix the two up. For example, some
> functions return NULL on failure, others return INVALID_HANDLE_VALUE.
> It depends on the context/object, and you have to pay attention to
> details on the Win32 call.
> 
> Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]