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

Reply via email to