From: Nicholas Sherlock <n.sherlock@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Windows DEP problem with nested functions
Date: Wed, 07 May 2008 10:06:00 -0000 [thread overview]
Message-ID: <48217E4E.6070500@gmail.com> (raw)
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
next reply other threads:[~2008-05-07 10:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 10:06 Nicholas Sherlock [this message]
2008-05-08 6:59 ` Ian Lance Taylor
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=48217E4E.6070500@gmail.com \
--to=n.sherlock@gmail.com \
--cc=gcc-help@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).