Bug 9307 – escapeShellCommand returns empty string

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2013-01-12T16:45:00Z
Last change time
2013-01-12T17:30:20Z
Assigned to
nobody
Creator
londey

Attachments

IDFilenameSummaryContent-TypeSize
1179test.dExample programapplication/octet-stream140

Comments

Comment #0 by londey — 2013-01-12T16:45:38Z
Created attachment 1179 Example program std.process.escapeShellCommand returns an empty string in DMD 2.61 in code that previously worked for 2.60. In the attached program the assert fails using DMD64 2.61 on OSX.
Comment #1 by andrej.mitrovich — 2013-01-12T17:06:41Z
Also reproducible on win32. I'm looking at the diff of std.process between 2.060 and 2.061, and nothing's really changed in the function implementation apart from a single line in escapePosixArgumentImpl which has no effect on the results on win32, so it must be some dependency function which changed semantics.
Comment #2 by andrej.mitrovich — 2013-01-12T17:10:45Z
Obviously the unitttests are not run at all for this function, because -version=unittest_burnin is never set in Phobos. Considering this uses some odd internal "pure" allocator this might even be a result of a compiler bug. I'm investigating though..
Comment #3 by andrej.mitrovich — 2013-01-12T17:30:20Z
Caused by compiler regression in 2.061, see Issue 9309. *** This issue has been marked as a duplicate of issue 9309 ***