[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] pthread code crash??
From: |
Jun Koi |
Subject: |
[Qemu-devel] pthread code crash?? |
Date: |
Sun, 10 Jul 2011 23:23:09 +0800 |
hi,
i am doing some experiments with Qemu. this is to add a new pthread
into Qemu code, like below:
.......
pthread_t pt;
pthread_attr_t thread_attr;
pthread_attr_init(&thread_attr);
pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_DETACHED);
pthread_create(&pt, &thread_attr, my_handler, NULL);
......
the problem is that this simple code crashes Qemu 0.14.0 immediately
at the pthread_create() function.
and strangely, i dont have this problem with Qemu 0.12.4: the exactly
same code works flawlessly.
any hint on what is the root of the problem, and how to fix that?
thanks a lot,
Jun
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] pthread code crash??,
Jun Koi <=