[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#591259: gcc-4.4 cannot compile kernel properly



Package: gcc
Version: 4:4.4.4-2
Severity: important

On my "system", I am unable to compile a working kernel (the latest version). More specifically, the kernel boots, but hangs when it tries to launch /sbin/init .

The "system" is a virtual machine under MS Virtual PC 2007 SP1, version 6.0.192.0, the real OS is Windows XP SP3 32-bit.

The Debian distro is the latest "testing" (squeeze), all packages are the latest versions.

I played with various kernel config options and (recent) kernel versions, but nothing helped to resolve the situation. OTOH, in this same virtual machine, working 2.6 kernels, including the latest, have been produced by many different gcc versions - 3.4, 4.1, 4.3 etc. And, of course, the kernel compiles and runs just fine with the gcc-4.3 package, from the same "squeeze" distro.

For example, I get this on the screen when I attempt to boot kernel 2.6.34.1 compiled with gcc-4.4:

..........................

hda: 13311648 sectors (6815 MB) w/64KiB Cache, CHS=13206/16/63
 hda: hda1 hda2 hda3
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/inpu
t0
VFS: Mounted root (ext2 filesystem) readonly on device 3:2.
Freeing unused kernel memory: 164k freed
BUG: unable to handle kernel paging request at 97c74c9c
IP: [<c1047183>] move_page_tables+0x160/0x19d
*pde = 00000000
Oops: 0002 [#1]
last sysfs file:

Pid: 1, comm: init Not tainted 2.6.34.1 #8 Virtual Machine/Virtual Machine
EIP: 0060:[<c1047183>] EFLAGS: 00000246 CPU: 0
EIP is at move_page_tables+0x160/0x19d
EAX: bffff000 EBX: d7c75c9c ECX: d7c72ffc EDX: bffff000
ESI: d7c7e000 EDI: 0116b067 EBP: d7c82000 ESP: d7c16e54
 DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
Process init (pid: 1, ti=d7c16000 task=d7c2e000 task.ti=d7c16000)
Stack:
 bffff000 d7c75c9c 00001000 c0000000 d7c7e000 c0000000 d7c2e000 d7c7e000
<0> c0000000 bfb28000 bffff000 c1055aa6 bfb27000 00001000 bfb27000 d7c7e000
<0> 00000000 d7c82000 00001000 d7c82034 d7c7e000 00000001 00000000 d7c5bc68
Call Trace:
 [<c1055aa6>] ? setup_arg_pages+0x14f/0x25e
 [<c1074e93>] ? load_elf_binary+0x346/0xfb3
 [<c1054de6>] ? get_arg_page+0x2d/0x76
 [<c10aa2b5>] ? _copy_from_user+0x2b/0x10e
 [<c105501a>] ? copy_strings+0x15a/0x164
 [<c1055096>] ? search_binary_handler+0x4b/0x124
 [<c1055f3f>] ? do_execve+0x153/0x1f8
 [<c10062e8>] ? sys_execve+0x2c/0x51
 [<c10025d2>] ? ptregs_execve+0x12/0x20
 [<c10e29fc>] ? syscall_call+0x7/0xb
 [<c1004b84>] ? kernel_execve+0x14/0x18
 [<c1144148>] ? kernel_init+0x0/0xf7
 [<c10011a0>] ? init_post+0x6d/0x95
 [<c114423b>] ? kernel_init+0xf3/0xf7
 [<c1002ac6>] ? kernel_thread_helper+0x6/0x10
Code: 31 c0 89 6c 24 04 eb 2f 8b 3c 01 85 ff 74 1f c7 04 01 00 00 00 00 8b 5c 24
 18 8b 2e 3b ab d8 00 00 00 75 03 0f 01 3a 8b 5c 24 04 <89> 3c 03 81 c2 00 10 00
 00 83 c0 04 3b 54 24 14 72 cb 8b 1c 24
EIP: [<c1047183>] move_page_tables+0x160/0x19d SS:ESP 0068:d7c16e54
CR2: 0000000097c74c9c
---[ end trace 191ad17feb018f43 ]---

The error is always and easily reproducible. If more info is needed, I'm ready to supply it.



      



Reply to: