make-w32
[Top][All Lists]
Advanced

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

Re: Interrupt/Exception caught (code = 0xc0000005, addr = 0x77c478ac)


From: Eli Zaretskii
Subject: Re: Interrupt/Exception caught (code = 0xc0000005, addr = 0x77c478ac)
Date: Mon, 31 Aug 2009 20:49:09 +0300

> Date: Sun, 30 Aug 2009 22:39:22 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> 
> > Date: Sun, 30 Aug 2009 12:22:44 -0700 (PDT)
> > From: duanec <address@hidden>
> > Cc: 
> > 
> > 
> > Attached: demo.bat Makefile (both are small)
> > 
> > The attached demo.bat demonstrates this error for me:
> >     gmake.exe: Interrupt/Exception caught (code = 0xc0000005, addr =
> > 0x77c478ac)
> > It demonstrates this error for the current release version
> > mingw32-3.81-20080326-3
> >   and for the prior version mingw32-3.81-2.  (I did not try any other
> > versions).
> 
> Thanks, I will look into this.

I think I fixed this.  If you can build Make from sources, please
apply the patch below and see if the problem goes away.

Thanks.


2009-08-31  Eli Zaretskii  <address@hidden>

        * function.c (windows32_openpipe): Update envp after calling
        sync_Path_environment.


--- function.c~3        2009-07-04 14:21:25.326250000 +0300
+++ function.c  2009-08-31 20:43:28.795375000 +0300
@@ -1475,6 +1475,9 @@
 
   /* make sure that CreateProcess() has Path it needs */
   sync_Path_environment();
+  /* `sync_Path_environment' may realloc `environ', so take note of
+     the new value.  */
+  envp = environ;
 
   if (!process_begin(hProcess, command_argv, envp, command_argv[0], NULL)) {
     /* register process for wait */




reply via email to

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