cygheap problems, 20040326 snapshot

Brian Ford ford@vss.fsi.com
Fri Apr 2 19:29:00 GMT 2004


On Fri, 2 Apr 2004, Brian Ford wrote:

> Could you possibly build it with the attached patch and report the strace
> output?  Also, if you could scan cygwin/winsup/cygwin/how-to-debug-cygwin.txt,
> it will tell you how to get a working gdb to debug this.  The output of
> info dll would be interesting.  Thanks.
>
Ugh..., forgot the patch.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444
-------------- next part --------------
Index: winsup/cygwin/cygheap.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/cygheap.cc,v
retrieving revision 1.101
diff -u -p -r1.101 cygheap.cc
--- winsup/cygwin/cygheap.cc	26 Mar 2004 22:48:47 -0000	1.101
+++ winsup/cygwin/cygheap.cc	2 Apr 2004 19:29:02 -0000
@@ -164,7 +164,13 @@ cygheap_fixup_in_child (bool execed)
 
 	  system_printf ("Couldn't reserve %d bytes of space for cygwin's heap (%p <%p>) in child, %E",
 			 alloc_sz, cygheap, newaddr);
-	  api_fatal ("m.AllocationBase %p, m.BaseAddress %p, m.RegionSize %p, m.State %p\n",
+	  system_printf ("m.AllocationBase %p, m.BaseAddress %p, m.RegionSize %p, m.State %p\n",
+		     m.AllocationBase, m.BaseAddress, m.RegionSize, m.State);
+
+	  if (!VirtualQuery ((char *)m.BaseAddress + m.RegionSize, &m, sizeof m))
+	    system_printf ("couldn't get second memory info, %E");
+
+	  api_fatal ("blocking m.AllocationBase %p, m.BaseAddress %p, m.RegionSize %p, m.State %p\n",
 		     m.AllocationBase, m.BaseAddress, m.RegionSize, m.State);
 	}
 
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list