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

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> Date: Sun, 30 Aug 2009 22:39:22 +0300
> From: Eli Zaretskii <[email protected]>
> Cc: [email protected]
> 
> > Date: Sun, 30 Aug 2009 12:22:44 -0700 (PDT)
> > From: duanec <[email protected]>
> > 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  <[email protected]>

	* 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 */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.