Skip navigation

[Mon Aug 21 12:58:01 2006] [notice] Graceful restart requested, doing restart
Fatal error 'Cannot allocate red zone for initial thread' at line 343 in file /usr/src/lib/libpthread/thread/thr_init.c (errno = 12)
[Mon Aug 21 12:58:02 2006] [notice] seg fault or similar nasty error detected in the parent process

thr_init.c

 /* 
 * Set up the thread stack. 
 * 
 * Create a red zone below the main stack. All other stacks 
 * are constrained to a maximum size by the parameters 
 * passed to mmap(), but this stack is only limited by 
 * resource limits, so this stack needs an explicitly mapped 
 * red zone to protect the thread stack that is just beyond. 
 */ 
 if (mmap(_usrstack - _thr_stack_initial - 
   _thr_guard_default, _thr_guard_default, 0, MAP_ANON, 
   -1, 0) == MAP_FAILED) 
     PANIC("Cannot allocate red zone for initial thread");

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.