Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 21, 2008 [Issue 1796] New: execv does not initialize argv properly | ||||
---|---|---|---|---|
| ||||
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. -- |
January 21, 2008 [Issue 1796] execv does not initialize argv properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1796 andrei@metalanguage.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- |
January 21, 2008 [Issue 1796] execv does not initialize argv properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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. -- |
January 26, 2013 [Issue 1796] execv does not initialize argv properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation