Gentoo Archives: gentoo-hardened

From: Ned Ludd <solar@g.o>
To: rumen_yotov@×××.bg
Cc: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] problems with bittorrent and bittornado
Date: Sun, 01 Aug 2004 06:19:47
Message-Id: 1091341129.17729.1294.camel@simple
In Reply to: Re: [gentoo-hardened] problems with bittorrent and bittornado by Rumen Yotov
1 On Sun, 2004-08-01 at 01:56, Rumen Yotov wrote:
2 > On нд, 2004-08-01 at 00:05, Ned Ludd wrote:
3 > > On Sat, 2004-07-31 at 16:44, Rumen Yotov wrote:
4 > > > Hi all,
5 > > > Tried to DL the new packages-athlon-XP-2004.2.iso with bittorrent or
6 > > > bittornado but couldn't. The system killed the processes
7 > > > (btdownloadcurses and gui).
8 > >
9 > >
10 > > > Used strace and it seems that PaX is the culpit, could somebody confirm
11 > > > this?
12 > >
13 > > Your understanding of the problem seems backwards. python is probably
14 > > the culpit and PaX is only making it obvious that something else has a
15 > > fundamental code flaw.
16 > > (It bugs me when I see people blame pax & grsec for faulty software)
17 > >
18 > Agreed, think PaX&grsec2 even help catch such things :).
19 > Bad wording. PaX is just doing what it should.
20 > For the moment just wanted to make sure it's not my own problem, as i
21 > have too much :) security things switched ON (PaX&grsec2, even /tmp is
22 > mounted noexec, ..).Know i have to pay a price (sometimes) for using it.
23 > > Now without a single piece of debug info or dmesg logs we can't do
24 > > anything to help you.
25 > >
26 > OK, you right.
27 > > > Have quite full grsec2&PaX with ~x86 system (hardened).
28 > > > Did it with azureus, but it's a java app.
29 > > > During tries with strace it even locked my xterm.
30 > > > TIA
31 > > > Rumen
32 > Here is the output info of (attachments):
33 > $strace -ff -obittorrent.err python /usr/bin/bittorrent.py
34 > install-x86-universal-allstages-2004.2.iso + emerge_info.txt
35 > TIA
36 > Rumen
37 > PS:as the first message was rejected by list-mailer as being to big,
38 > (231K),compressed the .err file. Sorry for this. Should i file a bug?
39
40 Yeah it looks like you should. python@gentoo would be who it needs to
41 get assigned to. Please CC: solar@gentoo
42
43 You probably want to give them some better debug info as well.
44 Try this.
45
46 FEATURES="nostrip" CFLAGS="-g3 -fno-omit-frame-pointer -fno-pie" emerge
47 python
48
49 ulimit -c unlimited
50 /usr/bin/python2.3 /usr/bin/bittorrent.py ..
51 # should segfault and drop a core here.
52 gdb -q /usr/bin/python2.3 ./core
53
54 (gdb) bt full
55 (gdb) info registers
56 (gdb) x/8i $pc
57 ------------------------------------------------
58
59 Optionally tell them to compile python with
60 myconf="${myconf} --with-pydebug" in the src_compile()
61 of the python.ebuild (that will probably expose other problems that we
62 have been to dumb to notice for far to long because of the -DNDEBUG in
63 the configure)
64
65 good luck.
66
67 --
68 Ned Ludd <solar@g.o>
69 Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer

Attachments

File name MIME type
signature.asc application/pgp-signature