Gentoo Archives: gentoo-embedded

From: "Peter S. Mazinger" <ps.m@×××.net>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] vim and less segfaulting
Date: Tue, 07 Jun 2005 07:32:28
Message-Id: Pine.LNX.4.44.0506070928491.758-100000@lnx.bridge.intra
In Reply to: [gentoo-embedded] vim and less segfaulting by Natanael Copa
1 On Thu, 2 Jun 2005, Natanael Copa wrote:
2
3 > Looks like my uclibc hardened environment is broken.
4 >
5 > I had built a bunch of packages. I deinstalled them (around 9th May). I
6 > did an "emerge sync" a few days ago and then installed all the pacakges
7 > with "emerge -Duk" so that the already compiled packages were just
8 > reinstalled. The packages were installed sucessfully.
9 >
10 > But now vim and less have started to segfault:
11 >
12 > nc alpine # less
13 > Segmentation fault
14 >
15 > With strace:
16 > ...
17 > read(3, "\32\0010\0&\0\17\0\235\1&\5", 12) = 12
18 > read(3, "xterm|xterm terminal emulator (X"..., 48) = 48
19 > read(3, "\0\1\0\0\1\0\0\0\1\0\0\0\0\1\1\0\0\0\0\0\0\0\1\0\0\1\0"..., 38)
20 > = 38
21 > read(3, "P\0\10\0\30\0\377\377\377\377\377\377\377\377\377\377\377"...,
22 > 30) = 30read(3,
23 > "\0\0\4\0\6\0\10\0\31\0\36\0&\0*\0.\0\377\3779\0J\0L\0P"..., 826) = 826
24 > read(3, "\33[Z\0\7\0\r\0\33[%i%p1%d;%p2%dr\0\33[3g\0\33["..., 1318) = 1318
25 > read(3, "\1\0\0\0\1\0\3\0\6\0", 10) = 10
26 > read(3, "\1", 1) = 1
27 > read(3, "\0", 1) = 1
28 > read(3, "\377\377\0\0\3\0", 6) = 6
29 > read(3, "AX\0XM\0", 6) = 6
30 > close(3) = 0
31 > --- SIGSEGV (Segmentation fault) @ 0 (0) ---
32 > +++ killed by SIGSEGV +++
33 >
34 > I can recompile ncurses, vim, less, vim-core but it still segfaults.
35
36 ncurses, less are ok.
37 vim was nuked about a week ago, it is not related to hardened, bug the vim
38 maintainers about that.
39
40 >
41 > So I tried to recompile uclibc. It does compile but it fails on testing
42 > vfork:
43 > -------
44
45 if you would read the uclibc ebuild , you would see following line:
46 vfork test fails in sandbox (both glibc/uclibc)
47
48 Peter
49
50 --
51 Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
52 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
53
54 --
55 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] vim and less segfaulting "René Rhéaume" <rene.rheaume@×××××.com>