digitalmars.D.bugs - [Issue 1796] New: execv does not initialize argv properly
- d-bugmail puremagic.com (24/24) Jan 21 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1796
- d-bugmail puremagic.com (7/7) Jan 21 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1796
- d-bugmail puremagic.com (8/8) Jan 21 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1796
- d-bugmail puremagic.com (8/8) Jan 26 2013 http://d.puremagic.com/issues/show_bug.cgi?id=1796
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 Sorry - that's the actual behavior of execv. Not a bug. --
Jan 21 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1796 Andrei Alexandrescu <andrei erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 26 2013