From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1Ew31V-0006rv-C6 for garchives@archives.gentoo.org; Mon, 09 Jan 2006 19:49:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k09Jn586009687; Mon, 9 Jan 2006 19:49:05 GMT Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k09Jn3TO030120 for ; Mon, 9 Jan 2006 19:49:04 GMT Received: by wproxy.gmail.com with SMTP id i12so12722wra for ; Mon, 09 Jan 2006 11:49:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=TcyCGyT/krBD18vYugEwI4E86vs8lhpu1uDrq1kxKk7HUXou5iXUIPHKi85/UVG0V/65V8J8pbMW2JgPx1d8g8TvFC1IP2gXEcUKWagAjy7KA/DYDZ8oCAorIcBi2uu1g7XZCk94cMG/jjObrhK0zzq/Kp0aVwkwCPX9TyVKo0I= Received: by 10.54.103.14 with SMTP id a14mr8055258wrc; Mon, 09 Jan 2006 11:49:03 -0800 (PST) Received: by 10.54.129.8 with HTTP; Mon, 9 Jan 2006 11:49:03 -0800 (PST) Message-ID: Date: Mon, 9 Jan 2006 17:49:03 -0200 From: Douglas Campos To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] lockups with hardened kernel In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_81439_10224669.1136836143136" References: <200601070235.18447.vapier@gentoo.org> X-Archives-Salt: 7941cc99-9b25-479d-a189-29b50a97a11a X-Archives-Hash: 8e9325f3504cee11aed8e59043bb706c ------=_Part_81439_10224669.1136836143136 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I think that we can have some problems with 3.4.4-r1 all python modules like pygresql, psycopg et all won't work, with uclibc-0.9.27-r1, 0.9.28 when we'd with gcc-3.4.3-20050110 it worked well python -m pgdb -i returns python: cannot resolve 'error_message' Perhaps is the size optimization that is doing something nasty to some binaries? HEEEEELP! Cheers Douglas Campos On 1/9/06, Peter S. Mazinger wrote: > > On Sat, 7 Jan 2006, Mike Frysinger wrote: > > > On Saturday 07 January 2006 02:30, Natanael Copa wrote: > > > On l=F8r, 2006-01-07 at 00:44 -0500, Mike Frysinger wrote: > > > > On Wednesday 04 January 2006 03:52, Natanael Copa wrote: > > > > > I got a report from someone who experienced lockups when using > > > > > gentoo-embedded built system (2.6.14-hardened-r1) > > > > > > > > this is a hardened kernel issue rather than a userland issue ... > you'd be > > > > better off e-mailing the gentoo-hardened list > > > > > > Probably, but I think I found the reason. Whenever I build the kernel > > > with "optimize for size" it hangs after an hour with intense net load > > > and io load (I made a loop that dd if=3D/dev/cdrom) > > > > > > When I disabled "Configure standard kernel features (for small > > > systems)" (gcc -Os) the problem magically went away. > > > > the kernel can be pretty sensitive to optimizations > > if kernel is built w/ gcc-3.4.4 and -Os (at least I had that for 2.4.x > kernels) it "optimizes away" memcmp and the kernels have gotten a patch > to overcome this, the same problem does not occur w/ gcc-3.3.x. > > > > So I think its a bug in gcc version 3.4.4 (Gentoo Hardened 3.4.4-r1, > > > ssp-3.4.4-1.0, pie-8.7.8) > > > > > > Makes me nervous because I have built everything with -Os. > > I have built everything w/ -Os and do not have trouble w/ it > > Peter > > -- > Peter S. Mazinger ID: 0xA5F059F2 > Key fingerprint =3D 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 > > -- > gentoo-embedded@gentoo.org mailing list > > ------=_Part_81439_10224669.1136836143136 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I think that we can have some problems with 3.4.4-r1
 
all python modules like pygresql, psycopg et all won't work, with ucli= bc-0.9.27-r1, 0.9.28
when we'd with gcc-3.4.3-20050110 it worked well
 
python -m pgdb -i returns
 
python: cannot resolve 'error_message'
 
Perhaps is the size optimization that is doing something nasty to some= binaries?
 
HEEEEELP!
 
Cheers
 
Douglas Campos
 
On 1/9/06, P= eter S. Mazinger <ps.m@gmx.net&g= t; wrote:
On Sat, 7 Jan 2006, Mike Frysing= er wrote:

> On Saturday 07 January 2006 02:30, Natanael Copa wrot= e:
> > On l=F8r, 2006-01-07 at 00:44 -0500, Mike Frysinger wrote:> > > On Wednesday 04 January 2006 03:52, Natanael Copa wrote:> > > > I got a report from someone who experienced lockups wh= en using
> > > > gentoo-embedded built system (2.6.14-hardened-r1)> > >
> > > this is a hardened kernel issue rather t= han a userland issue ... you'd be
> > > better off e-mailing th= e gentoo-hardened list
> >
> > Probably, but I think I found the reason. Whenev= er I build the kernel
> > with "optimize for size" it ha= ngs after an hour with intense net load
> > and io load (I made a = loop that dd if=3D/dev/cdrom)
> >
> > When I disabled "Configure standard kernel = features (for small
> > systems)" (gcc -Os) the problem magic= ally went away.
>
> the kernel can be pretty sensitive to optim= izations

if kernel is built w/ gcc-3.4.4 and -Os (at least I had that for 2.= 4.x
kernels) it "optimizes away" memcmp and the kernels have g= otten a patch
to overcome this, the same problem does not occur w/ gcc-3= .3.x .

> > So I think its a bug in gcc version 3.4.4 (Gentoo Harden= ed 3.4.4-r1,
> > ssp-3.4.4-1.0, pie-8.7.8)
> >
> &g= t; Makes me nervous because I have built everything with -Os.

I have= built everything w/ -Os and do not have trouble w/ it

Peter

--
Peter S. Mazinger <ps dot m at gmx dot net>= ;           ID: 0xA5F059F= 2
Key fingerprint =3D 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E= A5F0 59F2

--
gentoo-embedded@gentoo.org mailing list


------=_Part_81439_10224669.1136836143136-- -- gentoo-embedded@gentoo.org mailing list