From: Yale Zhang <yzhang1985@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] why does qemu i386 userspace emulation crashes when pthread used?
Date: Fri, 22 Apr 2011 11:29:21 -0700 [thread overview]
Message-ID: <BANLkTineJp1kfT8_kyuFJekPNNwactu+Ew@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimgR8k86qPd1NnUVbEWod_BY8u+xw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]
I have found the problem and fix. NEW_STACK_SIZE for clone() should be
increased from the default 16384 (x86_64) to 256 KiB.
On Tue, Apr 19, 2011 at 6:33 PM, Yale Zhang <yzhang1985@gmail.com> wrote:
> Hi. I'm want to run some pthread programs using qemu userspace emulation
> (target=i386, host=x86_64,arm), but see NPTL support isn't supported for the
> i386 target. I have applied a patch from here
> http://patchwork.ozlabs.org/patch/45206/ and used it to run a simple
> pthread fork, join program. The program is able to launch multiple threads,
> but the 1st thread that exits causes the program to crash inside the pthread
> library.
>
> What are the reasons NPTL isn't supported for i386 and was it ever
> supported in the past? I even wrote another simple program that does the
> equivalent, but with using fork(), waitpid() instead of pthread_create(),
> pthread_join(), and it works correctly. This seems to suggest thread local
> storage wasn't implemented correctly?
>
> Thanks,
> Yale
>
>
[-- Attachment #2: Type: text/html, Size: 1432 bytes --]
prev parent reply other threads:[~2011-04-22 18:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 1:33 [Qemu-devel] why does qemu i386 userspace emulation crashes when pthread used? Yale Zhang
2011-04-22 18:29 ` Yale Zhang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTineJp1kfT8_kyuFJekPNNwactu+Ew@mail.gmail.com \
--to=yzhang1985@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).