SEGFAULT caused by modifying the CPSR register
Bug #607794 reported by
LG
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
IIf the CPSR register (qemu-system-arm) is set to an invalid mode, qemu will segfault, because it tries to access a NULL-Pointer "env" in translate.c:9286. Either way, qemu will abort in exec.c:1863.
To post a comment you must log in.
Here is a part of the gdb backtrace:
#2 0x000000000051a2bb in bank_number (env=<value optimized out>
#4 0x000000000051a584 in cpsr_write ((env=0x110a9d0
If I build qemu with debug flags, the env value won't be optimized out, but will remain 0.