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

Bug#223441: Processed: NPTL bug



On Tue, Dec 09, 2003 at 09:33:17AM -0600, Debian Bug Tracking System wrote:
> Processing commands for control@bugs.debian.org:
> 
> > retitle 221257 nptl does not like arbitrary stack limits
> Bug#221257: assertion failure when starting zorp
> Changed Bug title.

>From the bug:

  # /etc/init.d/zorp start
   init.c:259: __pthread_initialize_minimal_internal: Assertion
   `__default_stacksize % __sysconf (_SC_PAGESIZE) == 0' failed.

>From Laurent:
   Dear libc maintainers!

   I guess that the bug could be squished by simply rounding down the
   stack limit to the nearest integer dividable by 4. My feeling is that
   assertions for internal programming errors.


No, it's complaining about the page size, so usually 4K.  You can get
the value from a shell script:
  % getconf PAGESIZE  
  4096

When you set a stack size, you're really messing with the internal
state of glibc.  It gives you an error message, because it doesn't make
sense to use a stack size that isn't a multiple of PAGESIZE.  I don't
think this is a bug in glibc.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: