Thread overview | |||||
---|---|---|---|---|---|
|
November 21, 2011 [Issue 6983] New: Vararg corrupts string on 64bit | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6983 Summary: Vararg corrupts string on 64bit Product: D Version: unspecified Platform: x86_64 OS/Version: Linux Status: NEW Keywords: wrong-code Severity: blocker Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: cbkbbejeap@mailinator.com Blocks: 6047,6576 --- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2011-11-21 08:45:25 PST --- Works on 32-bit, fails on 64-bit linux: import core.vararg; void foo(...) { string str = *(cast(string*)_argptr); assert(str.length == 0); } void main() { foo(""); } This might be the same as issue 6758, but I'm not certain. This may be the root cause of issue 6047 and issue 6576. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 28, 2012 [Issue 6983] Vararg corrupts string on 64bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | http://d.puremagic.com/issues/show_bug.cgi?id=6983 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |WONTFIX --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-04-28 02:11:11 PDT --- The 64 bit ABI won't allow using _argptr directly. Instead, use the functions in core.stdc.stdarg. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 29, 2012 [Issue 6983] Vararg corrupts string on 64bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | http://d.puremagic.com/issues/show_bug.cgi?id=6983 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-04-29 00:12:05 PDT --- (In reply to comment #1) > The 64 bit ABI won't allow using _argptr directly. Instead, use the functions in core.stdc.stdarg. The real bug is bug 7893: the spec says you *can* use _argptr in this way. -- 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