1 |
On Mon, 19 Jul 2004 13:32:39 +0200 |
2 |
pageexec@××××××××.hu wrote: |
3 |
|
4 |
> > Guess I need to post a bug report, just thought I'd see if anyone |
5 |
> > had any suggestions first on things to try. There's an strace below |
6 |
> > fwiw. |
7 |
> |
8 |
> could you enable coredumping (ulimit -c unlimited) then get one and |
9 |
> look at it from gdb ('gdb /usr/sbin/cpufreqd core' then 'bt', 'info |
10 |
> regs', 'x/8i $pc', 'x/16x $sp' at least)? you could also try to |
11 |
> recompile cpufreqd as a normal executable (this one was a PIE) and see |
12 |
> if that changes anything. in any case, i'm almost sure that it's not a |
13 |
> PaX related bug. |
14 |
> |
15 |
> |
16 |
> -- |
17 |
> gentoo-hardened@g.o mailing list |
18 |
> |
19 |
|
20 |
Compiling with CFLAGS="-nopie" did the trick, with that cpufreqd works. |
21 |
I just saw Ned Ludd's post on specific options to disable things, |
22 |
presumably -fno-pie is the same as -nopie?.. both work anyway. |
23 |
|
24 |
Here's that gdb output, I take it I should include this in the bug |
25 |
report? |
26 |
|
27 |
Core was generated by `/usr/sbin/cpufreqd'. |
28 |
Program terminated with signal 11, Segmentation fault. |
29 |
#0 0x40014dae in ?? () |
30 |
(gdb) bt |
31 |
#0 0x40014dae in ?? () |
32 |
#1 0x4001e0a3 in ?? () |
33 |
#2 0x40013018 in ?? () |
34 |
(gdb) info registers |
35 |
eax 0x800073d0 -2147454000 |
36 |
ecx 0x80003003 -2147471357 |
37 |
edx 0x80003003 -2147471357 |
38 |
ebx 0x400160f4 1073832180 |
39 |
esp 0xbffff7d0 0xbffff7d0 |
40 |
ebp 0x800073d0 0x800073d0 |
41 |
esi 0x4012ad84 1074965892 |
42 |
edi 0x800073d8 -2147453992 |
43 |
eip 0x40014dae 0x40014dae |
44 |
eflags 0x10202 66050 |
45 |
cs 0x73 115 |
46 |
ss 0x7b 123 |
47 |
ds 0x7b 123 |
48 |
es 0x7b 123 |
49 |
fs 0x0 0 |
50 |
gs 0x0 0 |
51 |
(gdb) x/8i $pc |
52 |
0x40014dae: Cannot access memory at address 0x40014dae |
53 |
(gdb) x/16x $sp |
54 |
0xbffff7d0: 0x4001e0a3 0x40013018 0x00000000 |
55 |
0x4001ff0c 0xbffff7e0: 0xf748c6bf 0x80001bc0 0x00000000 |
56 |
0x8000728c 0xbffff7f0: 0x40014d7c 0x8000728c 0x40014d7c |
57 |
0x80001be1 0xbffff800: 0x80003003 0x80007458 |
58 |
0x800049f5 0x80007858(gdb) |
59 |
|
60 |
|
61 |
Thanks for your help, much appreciated, |
62 |
|
63 |
Barry |
64 |
|
65 |
-- |
66 |
gentoo-hardened@g.o mailing list |