Bug 9415 - Error creating process (error 193)
Summary: Error creating process (error 193)
Status: RESOLVED WORKSFORME
Alias: None
Product: gdb
Classification: Unclassified
Component: win32 (show other bugs)
Version: 6.6
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-07 03:28 UTC by mortis
Modified: 2009-01-18 15:27 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mortis 2007-09-07 03:28:01 UTC
[Converted from Gnats 2310]

In both Cygwin and MinGW, if the full path of the executable being examined by gdb contains a space, one gets the message:
Error creating process ... (error 193).

Example:

C:\Documents and Settings\Tansay\My Documents>  
c:\mingw\bin\gdb HelloWorld

GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) run
Starting program: C:\Documents and Settings\Tansay\My Documents/HelloWorld.exe
Error creating process C:\Documents and Settings\Tansay\My Documents/HelloWorld.
exe, (error 193).
(gdb)

Release:
6.6

Environment:
Windows XP SP2

How-To-Repeat:
Put the executable being examined by gdb in a directory with a space in the full pathname.  Run.
Comment 1 mortis 2007-09-07 03:28:01 UTC
Fix:
As a workaround, don't keep your project in your "My Documents" folder, move it to C:\projects instead.
Comment 2 drow@false.org 2007-09-07 12:40:11 UTC
From: Daniel Jacobowitz <drow@false.org>
To: mortis@ucalgary.ca
Cc: gdb-gnats@sources.redhat.com
Subject: Re: win32/2310: Error creating process (error 193)
Date: Fri, 7 Sep 2007 08:40:11 -0400

 On Fri, Sep 07, 2007 at 03:23:29AM -0000, mortis@ucalgary.ca wrote:
 > GNU gdb 6.6
 > Copyright (C) 2006 Free Software Foundation, Inc.
 > GDB is free software, covered by the GNU General Public License, and you are
 > welcome to change it and/or distribute copies of it under certain conditions.
 > Type "show copying" to see the conditions.
 > There is absolutely no warranty for GDB.  Type "show warranty" for details.
 > This GDB was configured as "i686-pc-mingw32"...
 
 FSF releases of GDB don't yet support native mingw32 debugging.  The
 MinGW project has some patches; you'll need to ask them about it.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery
Comment 3 Pedro Alves 2009-01-18 15:27:39 UTC
Meanwhile, FSF GDB got support for mingw32.  This is not reproducible, though.