Windows DEP problem with nested functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm using GCC 3.4.4 on Cygwin on Windows XP. The following program:

#include <pthread.h>

int main() {
       pthread_t thread;

   void * task(void * arg) {
     return NULL;
       }

       pthread_create(&thread, NULL, task, NULL);
       pthread_join(thread, NULL);

   return 0;
}

only runs if DEP (Prevention of code execution on data pages) is turned off in Windows settings. I get a segfault if DEP is turned on. Is this a GCC problem, or a Cygwin problem?

Cheers,
Nicholas Sherlock

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux