Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2014 13:37:22 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        current@freebsd.org
Subject:   Re: panic: aatpic_assign_cpu: bad cookie [Was: Build machine OK; laptop panics @r269515]
Message-ID:  <alpine.BSF.2.11.1408071335510.64214@mail.fig.ol.no>
In-Reply-To: <53E363DD.4040105@FreeBSD.org>
References:  <20140804194759.GT1228@albert.catwhisker.org> <20140805142914.GJ1228@albert.catwhisker.org> <C248C4AE-65AB-406A-A523-F7D7FAA8FBBE@FreeBSD.org> <53E1450D.5090708@protected-networks.net> <53E14CD1.20308@protected-networks.net> <8B832384-C1CC-4622-BA67-7447ECE317C9@FreeBSD.org> <alpine.BSF.2.11.1408061914220.64214@mail.fig.ol.no> <alpine.BSF.2.11.1408062244020.64214@mail.fig.ol.no> <20140806210759.GM1228@albert.catwhisker.org> <53E363DD.4040105@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Aug 2014 13:32+0200, Roger Pau Monné wrote:

> On 06/08/14 23:07, David Wolfskill wrote:
> > On Wed, Aug 06, 2014 at 10:48:32PM +0200, Trond Endrestøl wrote:
> >> ...
> >> Reverting r269510 did the trick, i.e.:
> >>
> >> cd /usr/src && svn up && svn diff -r 269510:269509 | patch
> >>
> >> My i386 head VM is running smoothly with r269641M, with M meaning only 
> >> the above reversal.
> >> ...
> > 
> > Works for me, as well -- thanks!
> > 
> > FreeBSD 11.0-CURRENT #1333  r269622M/269622:1100028: Wed Aug  6 14:01:30 PDT 2014
> > 
> > (I'll be providing more details to royger@ et al. in a moment.)
> 
> I think I've found the issue, but since I'm not able to reproduce it,
> could someone try the following patch? (without r269510 reverted).

I'll try it once I'm back home, in about 3 hours.

> Thanks, Roger.

NP.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-current@FreeBSD.ORG  Thu Aug  7 12:27:33 2014
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 45F7C9E3
 for <freebsd-current@freebsd.org>; Thu,  7 Aug 2014 12:27:33 +0000 (UTC)
Received: from ivan-labs.com (ivan-labs.com [162.243.251.239])
 by mx1.freebsd.org (Postfix) with ESMTP id 1EC1D2124
 for <freebsd-current@freebsd.org>; Thu,  7 Aug 2014 12:27:32 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by ivan-labs.com (Postfix) with ESMTP id 6795C120625
 for <freebsd-current@freebsd.org>; Thu,  7 Aug 2014 16:18:26 +0400 (MSK)
X-Virus-Scanned: Debian amavisd-new at 
Received: from ivan-labs.com ([127.0.0.1])
 by localhost (ivan-labs.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id uPgZShpXcjKw for <freebsd-current@freebsd.org>;
 Thu,  7 Aug 2014 16:18:26 +0400 (MSK)
Received: from [192.168.43.253] (host-48-159-66-217.spbmts.ru [217.66.159.48])
 by ivan-labs.com (Postfix) with ESMTPSA id 79787120056
 for <freebsd-current@freebsd.org>; Thu,  7 Aug 2014 16:18:22 +0400 (MSK)
Message-ID: <53E36E84.4060806@ivan-labs.com>
Date: Thu, 07 Aug 2014 16:18:12 +0400
From: "Ivan A. Kosarev" <ivan@ivan-labs.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: freebsd-current@freebsd.org
Subject: libthr and main thread stack size
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Aug 2014 12:27:33 -0000

Hello,

According to libthr's thr_init.c (the 9.2 version) init_main_thread() 
allocates s.c. "red zone" below the main stack in order to protect other 
stacks. The size of the main stack is determined by the 
_thr_stack_initial variable that is declared extern though it doesn't 
seem it can be changed. The value of the variable is set to 4M on 64-bit 
platforms which is obviously not sufficient for the most of real programs.

Can anyone please confirm that there is no way to increase the stack 
size for the main thread and thus any program linked against libthr has 
only a few megabytes of stack memory for its main thread--whatever the 
system stack size (ulimit -s) is set to?

Thanks.

-- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1408071335510.64214>