Comment 7 for bug 1098729

Revision history for this message
thierry bultel (thierry-bultel) wrote :

I also experimented the bug.
It may SIGSEGV or hang. Or it may work, very rarely.

But I cannot reproduce it at all if change my app to stay on a single CPU:

int
main(int argc, char * argv[] )
{

#ifdef QEMU
    cpu_set_t cpuSet;
    CPU_ZERO(&cpuSet);
    CPU_SET(0,&cpuSet);
    if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuSet) !=0)
     cerr << "sched_setaffinity failed" << endl;
#endif /* QEMU */