Gentoo Archives: gentoo-embedded

From: Douglas Campos <qmx2352@×××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] lockups with hardened kernel
Date: Mon, 09 Jan 2006 19:49:46
Message-Id: cc04c5eb0601091149h7dc20740ja0e37792b701f8ea@mail.gmail.com
In Reply to: Re: [gentoo-embedded] lockups with hardened kernel by "Peter S. Mazinger"
1 I think that we can have some problems with 3.4.4-r1
2
3 all python modules like pygresql, psycopg et all won't work, with
4 uclibc-0.9.27-r1, 0.9.28
5 when we'd with gcc-3.4.3-20050110 it worked well
6
7 python -m pgdb -i returns
8
9 python: cannot resolve 'error_message'
10
11 Perhaps is the size optimization that is doing something nasty to some
12 binaries?
13
14 HEEEEELP!
15
16 Cheers
17
18 Douglas Campos
19
20 On 1/9/06, Peter S. Mazinger <ps.m@×××.net> wrote:
21 >
22 > On Sat, 7 Jan 2006, Mike Frysinger wrote:
23 >
24 > > On Saturday 07 January 2006 02:30, Natanael Copa wrote:
25 > > > On lør, 2006-01-07 at 00:44 -0500, Mike Frysinger wrote:
26 > > > > On Wednesday 04 January 2006 03:52, Natanael Copa wrote:
27 > > > > > I got a report from someone who experienced lockups when using
28 > > > > > gentoo-embedded built system (2.6.14-hardened-r1)
29 > > > >
30 > > > > this is a hardened kernel issue rather than a userland issue ...
31 > you'd be
32 > > > > better off e-mailing the gentoo-hardened list
33 > > >
34 > > > Probably, but I think I found the reason. Whenever I build the kernel
35 > > > with "optimize for size" it hangs after an hour with intense net load
36 > > > and io load (I made a loop that dd if=/dev/cdrom)
37 > > >
38 > > > When I disabled "Configure standard kernel features (for small
39 > > > systems)" (gcc -Os) the problem magically went away.
40 > >
41 > > the kernel can be pretty sensitive to optimizations
42 >
43 > if kernel is built w/ gcc-3.4.4 and -Os (at least I had that for 2.4.x
44 > kernels) it "optimizes away" memcmp and the kernels have gotten a patch
45 > to overcome this, the same problem does not occur w/ gcc-3.3.x.
46 >
47 > > > So I think its a bug in gcc version 3.4.4 (Gentoo Hardened 3.4.4-r1,
48 > > > ssp-3.4.4-1.0, pie-8.7.8)
49 > > >
50 > > > Makes me nervous because I have built everything with -Os.
51 >
52 > I have built everything w/ -Os and do not have trouble w/ it
53 >
54 > Peter
55 >
56 > --
57 > Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
58 > Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
59 >
60 > --
61 > gentoo-embedded@g.o mailing list
62 >
63 >