Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
June 03, 2012 [Issue 8191] New: cstream is completely unusable on x86_64 | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8191 Summary: cstream is completely unusable on x86_64 Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: lomereiter@gmail.com --- Comment #0 from Artem Tarasov <lomereiter@gmail.com> 2012-06-03 05:57:44 PDT --- Even the simplest piece of code segfaults: import std.cstream; void main(string[] args) { auto _dout = new CFile(stdout, FileMode.Out); _dout.printf("%d", 123); } With GDC it doesn't even link. In 32-bit chroot cstream seems to work as expected. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 19, 2012 [Issue 8191] cstream.printf is completely unusable on x86_64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Artem Tarasov | http://d.puremagic.com/issues/show_bug.cgi?id=8191 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw@ubuntu.com --- Comment #1 from Iain Buclaw <ibuclaw@ubuntu.com> 2012-07-19 04:41:28 PDT --- This is because printf in std.stream is 32bit-centric: ---- size_t printf(const(char)[] format, ...) { va_list ap; ap = cast(va_list) &format; ap += format.sizeof; return vprintf(format, ap); } ---- on x86_64, this would pass vprintf garbage. Regards -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 19, 2012 [Issue 8191] cstream.printf is completely unusable on x86_64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Artem Tarasov | http://d.puremagic.com/issues/show_bug.cgi?id=8191 --- Comment #2 from Iain Buclaw <ibuclaw@ubuntu.com> 2012-07-19 04:59:22 PDT --- https://github.com/D-Programming-Language/phobos/pull/704 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 23, 2012 [Issue 8191] cstream.printf is completely unusable on x86_64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Artem Tarasov | http://d.puremagic.com/issues/show_bug.cgi?id=8191 --- Comment #3 from github-bugzilla@puremagic.com 2012-07-22 21:07:21 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/5313288dd1015a8a117bf6fea538fa72251c6cea Merge pull request #704 from ibuclaw/issue8191 Fix cstream.printf() on x86_64. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 25, 2012 [Issue 8191] cstream.printf is completely unusable on x86_64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Artem Tarasov | http://d.puremagic.com/issues/show_bug.cgi?id=8191 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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