Gentoo Archives: gentoo-hardened

From: Adam Lantos <hege@××××××.org>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] Re: hardened glibc-2.5 issues
Date: Sat, 16 Jun 2007 23:54:40
Message-Id: 603052830706161652i2cf409b9u1f4b6c061c6bfebc@mail.gmail.com
In Reply to: [gentoo-hardened] hardened glibc-2.5 issues by Adam Lantos
1 Tomorrow I try to compile another glibc-2.5-hardened with nptl support
2 completely disabled, because mysql seems to accept linuxthreads'
3 LD_ASSUME_KERNEL env variable.
4
5 hardened-glibc-2.5-r3 *not*being*nptl-safe*? anyone experienced with
6 that problem or it is just my config :) glibc-2.5 with and without
7 hardened produced the same bogus behaviour. Strange, because I used
8 glibc-2.4 (not hardened) with nptlonly long-long time without any
9 regrets.
10
11 cheers,
12 adam
13
14
15 On 6/16/07, Adam Lantos <hege@××××××.org> wrote:
16 > hi
17 >
18 > I have recently upgraded one of my gentoo systems to glibc-2.5-r3 (USE
19 > = hardened nptl nptlonly), and since then random issues emerged from
20 > nowhere...
21 >
22 > Openldap's slapd and mysqld are unable to run stable, after daemon
23 > parent process forks the worker processes, they get killed, and master
24 > daemon exits.
25 >
26 > I remerged glibc with USE="-hardened -nptlonly", but still no success,
27 > my threaded processes die randomly.
28 >
29 > Any ideas? Copied the strace output to the bottom of this mail
30 >
31 >
32 > yours,
33 > adam
34 >
35 >
36 > strace of slapd:
37 >
38 > child_stack=0x37a7f4c4,
39 > flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|
40 > CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
41 > parent_tidptr=0x37a7fbd8,
42 > {entry_number:6, base_addr:0x37a7fb90, limit:1048575, seg_32bit:1, contents:0,
43 > read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1},
44 > child_tidptr=0x37a7fbd8) = 11694
45 > [pid 19145] futex(0x37a7fbd8, FUTEX_WAIT, 11694, NULL <unfinished ...>
46 > [pid 11694] sendto(933755872, ptrace: umoven: Input/output error
47 > 0xc, 1277361828, 0, ptrace: umoven: Input/output error
48 > {...}, 933754056) = 0
49 > [pid 11694] epoll_ctl(6, EPOLL_CTL_ADD, 4, {EPOLLIN, {u32=293003816,
50 > u64=293003816}}) = 0
51 > [pid 19145] <... futex resumed> ) = -1 EINTR (Interrupted system call)
52 > [pid 11694] +++ killed by SIGKILL +++
53 > PANIC: handle_group_exit: 11694 leader 19145
54 > Process 11694 detached
55 > +++ killed by SIGKILL +++
56 > Process 19145 detached
57 >
58 --
59 gentoo-hardened@g.o mailing list