| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Brian Kramer <kram9361 AT uidaho DOT edu> |
| Subject: | Spawnvp on pwd.exe and mkdir.exe fails |
| Date: | Sun, 2 Apr 2006 23:52:58 +0000 (UTC) |
| Lines: | 34 |
| Message-ID: | <loom.20060403T014817-595@post.gmane.org> |
| Mime-Version: | 1.0 |
| User-Agent: | Loom/3.14 (http://gmane.org/) |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
I have a simple C++ file I am using to spawn pwd.exe and mkdir.exe. These are
causing stackdumps. Can anyone help me resolve this? ls.exe does not cause a
stackdump.
The same C++ file compiles using Visual Studio and the output is as expected.
In particular on Windows:
pid=1996
/cygdrive/e/tempprojects/pwd/Debug
done
And under cygwin:
pid=5860
(pwd.exe.stackdump written)
done
Here's my program:
#include <process.h>
#include <stdio.h>
int main()
{
char* argv[] = {"pwd.exe", 0};
int pid = spawnvp( _P_NOWAIT, argv[0], argv );
printf("pid=%d\n",pid);
int termstat;
cwait( &termstat, pid, WAIT_CHILD );
printf("done\n");
return 0;
}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |