bug-libsigsegv
[Top][All Lists]
Advanced

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

[Bug-libsigsegv] Re: [PATCH] Fix powerpc64-unknown-linux-gnu implementat


From: Bruno Haible
Subject: [Bug-libsigsegv] Re: [PATCH] Fix powerpc64-unknown-linux-gnu implementation.
Date: Mon, 25 Oct 2010 00:19:00 +0200
User-agent: KMail/1.9.9

I wrote:
> By the way, stackvma-mincore.c uses a little more than 2048 bytes on the
> stack, but that should be OK.

On some platforms, the minimum SIGSTKSZ is only 2 KB. So this will be needed
as well:


--- src/stackvma-mincore.c.orig Mon Oct 25 00:16:34 2010
+++ src/stackvma-mincore.c      Sun Oct 24 19:31:47 2010
@@ -78,7 +78,7 @@
 {
   /* Use a moderately sized VEC here, small enough that it fits on the stack
      (without requiring malloc).  */
-  pageinfo_t vec[2048];
+  pageinfo_t vec[1024];
   unsigned long stepsize = sizeof (vec);
 
   for (;;)
@@ -130,7 +130,7 @@
 {
   /* Use a moderately sized VEC here, small enough that it fits on the stack
      (without requiring malloc).  */
-  pageinfo_t vec[2048];
+  pageinfo_t vec[1024];
   unsigned long stepsize = sizeof (vec);
 
   addr += pagesize;



reply via email to

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