delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/22/10:48:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Thu, 22 Dec 2011 09:47:50 -0600
From: Brian Ford <Brian DOT Ford AT FlightSafety DOT com>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: 16 byte pthread stack alignments
In-Reply-To: <20111222153132.GH31936@calimero.vinschen.de>
Message-ID: <Pine.CYG.4.58.1112220946210.748@PC1163-8460-XP.flightsafety.com>
References: <Pine DOT CYG DOT 4 DOT 58 DOT 1112201743030 DOT 3964 AT PC1163-8460-XP DOT flightsafety DOT com> <20111221094211 DOT GH23547 AT calimero DOT vinschen DOT de> <4EF1F937 DOT 9040107 AT gmail DOT com> <20111221154104 DOT GB11841 AT calimero DOT vinschen DOT de> <Pine DOT CYG DOT 4 DOT 58 DOT 1112211020000 DOT 3076 AT PC1163-8460-XP DOT flightsafety DOT com> <Pine DOT CYG DOT 4 DOT 58 DOT 1112211218020 DOT 3076 AT PC1163-8460-XP DOT flightsafety DOT com> <Pine DOT CYG DOT 4 DOT 58 DOT 1112211523340 DOT 3076 AT PC1163-8460-XP DOT flightsafety DOT com> <20111222092738 DOT GB31936 AT calimero DOT vinschen DOT de> <Pine DOT CYG DOT 4 DOT 58 DOT 1112220917560 DOT 3076 AT PC1163-8460-XP DOT flightsafety DOT com> <20111222153132 DOT GH31936 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, 22 Dec 2011, Corinna Vinschen wrote:

> The error message is kind of nonsense anyway.  The expression in question
> is
>
>   sizeof (cygheap_exec_info) + (nprocs * sizeof (children[0]))
>
> so it's just a `sizeof', not an actual usage of the member.  Try this
> for now:
>
> Index: sigproc.cc
> ===================================================================
> RCS file: /cvs/src/src/winsup/cygwin/sigproc.cc,v
> retrieving revision 1.372
> diff -u -p -r1.372 sigproc.cc
> --- sigproc.cc	10 Dec 2011 01:33:56 -0000	1.372
> +++ sigproc.cc	22 Dec 2011 15:30:58 -0000
> @@ -911,7 +911,7 @@ cygheap_exec_info::alloc ()
>  {
>   return (cygheap_exec_info *) ccalloc_abort (HEAP_1_EXEC, 1,
>  					     sizeof (cygheap_exec_info)
> -					     + (nprocs * sizeof (children[0])));
> +					     + (nprocs * sizeof (cchildren)));
>  }

FWIW, that worked.

-- 
Brian Ford
Staff Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019