* [Qemu-devel] [Bug 1066909] [NEW] App-level clone emulation for microblaze is broken
@ 2012-10-15 14:26 Bugdal
2012-10-16 1:18 ` [Qemu-devel] [Bug 1066909] " Bugdal
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Bugdal @ 2012-10-15 14:26 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
When CLONE_THREAD is used, the new process starts with the program
counter pointing to the system call instruction, rather than the
instruction immediately following it. This causes an infinite cascade
(linear growth, not exponential) of thread creation, which quickly
crashes when the threads start running and they're all using the same
stack.
I'm using qemu 1.1.2 packaged with Debian, but I'm not aware of any
fixes since then that would address the problem.
I can provide a test program if needed; a short C program using
syscall() directly or an even-shorter asm program can demonstrate the
issue without need for debugging around pthread library routines.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1066909
Title:
App-level clone emulation for microblaze is broken
Status in QEMU:
New
Bug description:
When CLONE_THREAD is used, the new process starts with the program
counter pointing to the system call instruction, rather than the
instruction immediately following it. This causes an infinite cascade
(linear growth, not exponential) of thread creation, which quickly
crashes when the threads start running and they're all using the same
stack.
I'm using qemu 1.1.2 packaged with Debian, but I'm not aware of any
fixes since then that would address the problem.
I can provide a test program if needed; a short C program using
syscall() directly or an even-shorter asm program can demonstrate the
issue without need for debugging around pthread library routines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1066909/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [Bug 1066909] Re: App-level clone emulation for microblaze is broken
2012-10-15 14:26 [Qemu-devel] [Bug 1066909] [NEW] App-level clone emulation for microblaze is broken Bugdal
@ 2012-10-16 1:18 ` Bugdal
2012-10-20 20:01 ` Bugdal
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Bugdal @ 2012-10-16 1:18 UTC (permalink / raw)
To: qemu-devel
Here is a minimal test case showing the problem.
** Attachment added: "minimal test case"
https://bugs.launchpad.net/qemu/+bug/1066909/+attachment/3399581/+files/badclone.s
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1066909
Title:
App-level clone emulation for microblaze is broken
Status in QEMU:
New
Bug description:
When CLONE_THREAD is used, the new process starts with the program
counter pointing to the system call instruction, rather than the
instruction immediately following it. This causes an infinite cascade
(linear growth, not exponential) of thread creation, which quickly
crashes when the threads start running and they're all using the same
stack.
I'm using qemu 1.1.2 packaged with Debian, but I'm not aware of any
fixes since then that would address the problem.
I can provide a test program if needed; a short C program using
syscall() directly or an even-shorter asm program can demonstrate the
issue without need for debugging around pthread library routines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1066909/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [Bug 1066909] Re: App-level clone emulation for microblaze is broken
2012-10-15 14:26 [Qemu-devel] [Bug 1066909] [NEW] App-level clone emulation for microblaze is broken Bugdal
2012-10-16 1:18 ` [Qemu-devel] [Bug 1066909] " Bugdal
@ 2012-10-20 20:01 ` Bugdal
2012-10-21 0:29 ` Aurelien Jarno
2017-01-19 14:18 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Bugdal @ 2012-10-20 20:01 UTC (permalink / raw)
To: qemu-devel
I accidentally posted the patch, which is here, on the wrong bug report
(1068900 instead of here). Apologies. For reference here is the patch;
it was committed and fixes this issue:
https://lists.eait.uq.edu.au/pipermail/microblaze-
linux/2012-October/005760.html
Issue # 1068900, where I mistakenly posted the patch, is unrelated and
not fixed; it should be reopened and this issue (1066909) should be
marked fixed.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1066909
Title:
App-level clone emulation for microblaze is broken
Status in QEMU:
New
Bug description:
When CLONE_THREAD is used, the new process starts with the program
counter pointing to the system call instruction, rather than the
instruction immediately following it. This causes an infinite cascade
(linear growth, not exponential) of thread creation, which quickly
crashes when the threads start running and they're all using the same
stack.
I'm using qemu 1.1.2 packaged with Debian, but I'm not aware of any
fixes since then that would address the problem.
I can provide a test program if needed; a short C program using
syscall() directly or an even-shorter asm program can demonstrate the
issue without need for debugging around pthread library routines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1066909/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [Bug 1066909] Re: App-level clone emulation for microblaze is broken
2012-10-15 14:26 [Qemu-devel] [Bug 1066909] [NEW] App-level clone emulation for microblaze is broken Bugdal
2012-10-16 1:18 ` [Qemu-devel] [Bug 1066909] " Bugdal
2012-10-20 20:01 ` Bugdal
@ 2012-10-21 0:29 ` Aurelien Jarno
2017-01-19 14:18 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Aurelien Jarno @ 2012-10-21 0:29 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: New => Fix Committed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1066909
Title:
App-level clone emulation for microblaze is broken
Status in QEMU:
Fix Committed
Bug description:
When CLONE_THREAD is used, the new process starts with the program
counter pointing to the system call instruction, rather than the
instruction immediately following it. This causes an infinite cascade
(linear growth, not exponential) of thread creation, which quickly
crashes when the threads start running and they're all using the same
stack.
I'm using qemu 1.1.2 packaged with Debian, but I'm not aware of any
fixes since then that would address the problem.
I can provide a test program if needed; a short C program using
syscall() directly or an even-shorter asm program can demonstrate the
issue without need for debugging around pthread library routines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1066909/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [Bug 1066909] Re: App-level clone emulation for microblaze is broken
2012-10-15 14:26 [Qemu-devel] [Bug 1066909] [NEW] App-level clone emulation for microblaze is broken Bugdal
` (2 preceding siblings ...)
2012-10-21 0:29 ` Aurelien Jarno
@ 2017-01-19 14:18 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2017-01-19 14:18 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Fix Committed => 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/1066909
Title:
App-level clone emulation for microblaze is broken
Status in QEMU:
Fix Released
Bug description:
When CLONE_THREAD is used, the new process starts with the program
counter pointing to the system call instruction, rather than the
instruction immediately following it. This causes an infinite cascade
(linear growth, not exponential) of thread creation, which quickly
crashes when the threads start running and they're all using the same
stack.
I'm using qemu 1.1.2 packaged with Debian, but I'm not aware of any
fixes since then that would address the problem.
I can provide a test program if needed; a short C program using
syscall() directly or an even-shorter asm program can demonstrate the
issue without need for debugging around pthread library routines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1066909/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-01-19 14:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-15 14:26 [Qemu-devel] [Bug 1066909] [NEW] App-level clone emulation for microblaze is broken Bugdal
2012-10-16 1:18 ` [Qemu-devel] [Bug 1066909] " Bugdal
2012-10-20 20:01 ` Bugdal
2012-10-21 0:29 ` Aurelien Jarno
2017-01-19 14:18 ` Thomas Huth
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.