digitalmars.D.bugs - [Issue 7107] New: Compiled program aborts when using foreach and std.regex.splitter
- d-bugmail puremagic.com (35/35) Dec 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=7107
- d-bugmail puremagic.com (11/11) Dec 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=7107
- d-bugmail puremagic.com (19/19) Apr 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7107
http://d.puremagic.com/issues/show_bug.cgi?id=7107 Summary: Compiled program aborts when using foreach and std.regex.splitter Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: ttanjo gmail.com --- Comment #0 from Tomoya Tanjo <ttanjo gmail.com> 2011-12-14 04:07:20 PST --- Created an attachment (id=1052) The output of the compiled program When I compiled the following code with DMD v2.057 with -inline option, the compiled program aborts in runtime (on Linux 64bit). When I use regex("h") or regex(" ") instead of regex(" "), this code works correctly. issue.d: ---------------------------------------------------- import std.regex; import std.stdio; void main() { foreach(w; splitter("hoge fuga", regex(" "))) { writeln(w); writeln(w.length); } } ---------------------------------------------------- I attached the output of the compiled program. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 14 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7107 --- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2011-12-14 04:26:02 PST --- This problem does not occurs in Windows 7 64bit. Output is: ---- hoge fuga 9 ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 14 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7107 Dmitry Olshansky <dmitry.olsh gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dmitry.olsh gmail.com Resolution| |WORKSFORME --- Comment #2 from Dmitry Olshansky <dmitry.olsh gmail.com> 2012-04-19 10:52:44 PDT --- Can't reproduce with 2.059 on Fedora x86_64. I tried: dmd x.d dmd -inline -O x.d dmd -m64 -inline -O x.d dmd -m64 -inline x.d All work. It's either a problem with your specific setup or it was fixed somewhere between 2.057-2.059. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2012