KB-20071202-019
From Triled Wiki
- Status: opened
- author: Motoya Kurotsu
- link: http://groups.google.co.jp/group/android-internals/msg/25e90449c017a082
- Description: emulator rebuilt by GCC 4.1.2 fails to run
- Confirmed on: Fedora 8
- Steps to reproduce:
Configure qemu to use gcc4. Then run it.
$ emulator -debug-kernel
Output will be similar to:
... eth0: SMC91C11xFD (rev 1) at c6800000 IRQ 12 [nowait] eth0: Ethernet addr: 52:54:00:12:34:56 goldfish nand dev0: size 4000000, page 2048, extra 64, erase 131072 goldfish nand dev1: size 4000000, page 2048, extra 64, erase 131072 qemu: fatal: Bad mode 8
Debugger output similar to:
$ gdb emulator ... AbortedProgram received signal SIGABRT, Aborted. [Switching to Thread 0xb7f076c0 (LWP 16095)] 0x00110402 in __kernel_vsyscall () (gdb) info stack #0 0x00110402 in __kernel_vsyscall () #1 0x00678690 in raise () from /lib/libc.so.6 #2 0x00679f91 in abort () from /lib/libc.so.6 #3 0x080aabbc in cpu_abort (env=0xba63db0, fmt=0x8184e98 "Bad mode %x \n") at /home/kurotsu/tmp/android/android-emulator-20071111/qemu/exec.c: 1220 #4 0x080daf81 in switch_mode (env=0xba63db0, mode=8) at /home/kurotsu/tmp/android/android-emulator-20071111/qemu/target-arm/helper.c:129 #5 0x090d40b8 in code_gen_buffer () #6 0x0ba63db0 in ?? () #7 0x00000008 in ?? () #8 0x00000008 in ?? () #9 0x0ba63db0 in ?? () #10 0x080b0986 in cpu_arm_exec (env1=0xba63db0) at /home/kurotsu/tmp/android/android-emulator-20071111/qemu/cpu-exec.c:789 #11 0x08052b16 in main_loop () at /home/kurotsu/tmp/android/android-emulator-20071111/qemu/vl.c:5766 Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb)
NOTE: Bug is related to qemu, used for emulation of Android Device.
[edit] Temporarily Solution
While configuring, be sure to use gcc3.
