* [Qemu-devel] [Bug 607794] [NEW] SEGFAULT caused by modifying the CPSR register
@ 2010-07-20 14:27 LG
2010-07-20 14:31 ` [Qemu-devel] [Bug 607794] " LG
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: LG @ 2010-07-20 14:27 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
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.
** Affects: qemu
Importance: Undecided
Status: New
--
SEGFAULT caused by modifying the CPSR register
https://bugs.launchpad.net/bugs/607794
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
Status in QEMU: New
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 607794] Re: SEGFAULT caused by modifying the CPSR register
2010-07-20 14:27 [Qemu-devel] [Bug 607794] [NEW] SEGFAULT caused by modifying the CPSR register LG
@ 2010-07-20 14:31 ` LG
2011-12-24 18:45 ` Peter Maydell
2012-07-10 14:49 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: LG @ 2010-07-20 14:31 UTC (permalink / raw)
To: qemu-devel
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.
--
SEGFAULT caused by modifying the CPSR register
https://bugs.launchpad.net/bugs/607794
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
Status in QEMU: New
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 607794] Re: SEGFAULT caused by modifying the CPSR register
2010-07-20 14:27 [Qemu-devel] [Bug 607794] [NEW] SEGFAULT caused by modifying the CPSR register LG
2010-07-20 14:31 ` [Qemu-devel] [Bug 607794] " LG
@ 2011-12-24 18:45 ` Peter Maydell
2012-07-10 14:49 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2011-12-24 18:45 UTC (permalink / raw)
To: qemu-devel
The missing detail in this bug report is that you only get the segfault
if the CPSR register is being changed via the gdb stub interface. This
happens because we try to use cpu_single_env as the env to pass to
cpu_abort(), and if you've got to bank_number() via the gdb stub then
cpu_single_env is NULL. I'm going to submit some patches which (a) fix
this and (b) change behaviour to ignore bogus mode setting attempts
rather than aborting.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/607794
Title:
SEGFAULT caused by modifying the CPSR register
Status in QEMU:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/607794/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 607794] Re: SEGFAULT caused by modifying the CPSR register
2010-07-20 14:27 [Qemu-devel] [Bug 607794] [NEW] SEGFAULT caused by modifying the CPSR register LG
2010-07-20 14:31 ` [Qemu-devel] [Bug 607794] " LG
2011-12-24 18:45 ` Peter Maydell
@ 2012-07-10 14:49 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2012-07-10 14:49 UTC (permalink / raw)
To: qemu-devel
The patches that fix this bug are in QEMU 1.1.
** Changed in: qemu
Status: New => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/607794
Title:
SEGFAULT caused by modifying the CPSR register
Status in QEMU:
Fix Released
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 manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/607794/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-10 14:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-20 14:27 [Qemu-devel] [Bug 607794] [NEW] SEGFAULT caused by modifying the CPSR register LG
2010-07-20 14:31 ` [Qemu-devel] [Bug 607794] " LG
2011-12-24 18:45 ` Peter Maydell
2012-07-10 14:49 ` Peter Maydell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.