1 |
On Tue, 20 Jul 2004 00:41:14 +0200 |
2 |
pageexec@××××××××.hu wrote: |
3 |
|
4 |
> > Compiling with CFLAGS="-nopie" did the trick, with that cpufreqd |
5 |
> > works. I just saw Ned Ludd's post on specific options to disable |
6 |
> > things, presumably -fno-pie is the same as -nopie?.. both work |
7 |
> > anyway. |
8 |
> |
9 |
> -nopie is specific to the gentoo hardened gcc, but it should behave |
10 |
> as -fno-pie. |
11 |
> |
12 |
> > Here's that gdb output, I take it I should include this in the bug |
13 |
> > report? |
14 |
> |
15 |
> could you not strip your binaries/libraries and get the backtrace |
16 |
> again please? it's kinda hard to decipher anything from these |
17 |
> addresses. also, you could run cpufreqd from gdb itself ('run |
18 |
> cpufreqd' or so) and then get the backtrace/disassembly. |
19 |
> |
20 |
> |
21 |
> -- |
22 |
> gentoo-hardened@g.o mailing list |
23 |
> |
24 |
|
25 |
same again, with CFLAGS="-fno-stack-protector-all -fno-stack-protector |
26 |
-fno-pie -g -ggdb -fno-omit-frame-pointer" FEATURES="nostrip" as |
27 |
suggested: |
28 |
|
29 |
warning: exec file is newer than core file. |
30 |
Core was generated by `/usr/sbin/cpufreqd'. |
31 |
Program terminated with signal 11, Segmentation fault. |
32 |
#0 0x40014dce in ?? () |
33 |
(gdb) bt |
34 |
#0 0x40014dce in ?? () |
35 |
#1 0x4001fe7c in ?? () |
36 |
#2 0x40013000 in ?? () |
37 |
#3 0x400132a0 in ?? () |
38 |
#4 0xbffff7e8 in ?? () |
39 |
#5 0x4001e0a3 in ?? () |
40 |
#6 0x40013018 in ?? () |
41 |
#7 0x80007338 in ?? () |
42 |
#8 0x8000383c in ?? () |
43 |
#9 0xb99efb32 in ?? () |
44 |
#10 0x80001c7e in ?? () |
45 |
(gdb) info registers |
46 |
eax 0x8000383c -2147469252 |
47 |
ecx 0x0 0 |
48 |
edx 0x8000383c -2147469252 |
49 |
ebx 0x400160f4 1073832180 |
50 |
esp 0xbffff7b0 0xbffff7b0 |
51 |
ebp 0xbffff7e8 0xbffff7e8 |
52 |
esi 0x800072ac -2147454292 |
53 |
edi 0x400132a0 1073820320 |
54 |
eip 0x40014dce 0x40014dce |
55 |
eflags 0x10212 66066 |
56 |
cs 0x73 115 |
57 |
ss 0x7b 123 |
58 |
ds 0x7b 123 |
59 |
es 0x7b 123 |
60 |
fs 0x0 0 |
61 |
gs 0x0 0 |
62 |
(gdb) x/8i $pc |
63 |
0x40014dce: Cannot access memory at address 0x40014dce |
64 |
(gdb) x/16x $sp |
65 |
0xbffff7b0: 0x4001fe7c 0x40013000 0x400132a0 |
66 |
0xbffff7e8 0xbffff7c0: 0x4001e0a3 0x40013018 0x80007338 |
67 |
0x8000383c 0xbffff7d0: 0xb99efb32 0x80001c7e 0x00000000 |
68 |
0x8000716c 0xbffff7e0: 0x800072ac 0x8000716c |
69 |
0xbffffa48 0x80001ce4 |
70 |
|
71 |
|
72 |
-- |
73 |
gentoo-hardened@g.o mailing list |