digitalmars.D.bugs - [Issue 1796] New: execv does not initialize argv properly
- d-bugmail puremagic.com Jan 21 2008
- d-bugmail puremagic.com Jan 21 2008
- d-bugmail puremagic.com Jan 21 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1796 Summary: execv does not initialize argv properly Product: D Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: andrei metalanguage.com Consider: import std.process, std.stdio; void main(string[] args) { writeln(args); assert(args.length); execv(args[0], args[1 .. $]); } This program should execute itself forever. In fact, when started with no options, it asserts at the second execution: args is not properly initialized by the execv function. --
Jan 21 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1796 andrei metalanguage.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --
Jan 21 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1796 andrei metalanguage.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED ------- Comment #1 from andrei metalanguage.com 2008-01-21 12:51 ------- Sorry - that's the actual behavior of execv. Not a bug. --
Jan 21 2008









d-bugmail puremagic.com 