[Issue 11862] Using byChunk inside a std.parallelism's parallel loop causes crash when compiled in 32 bits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 3 13:11:15 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11862


Daniel Kozak <kozzi11 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kozzi11 at gmail.com


--- Comment #1 from Daniel Kozak <kozzi11 at gmail.com> 2014-01-03 13:11:11 PST ---
Problem seems to be in T[] rawRead(T)(T[] buffer)

 version(Win32)
        {
            immutable fd = ._fileno(_p.handle);
            //immutable mode = ._setmode(fd, _O_BINARY); when comment this line
            //scope(exit) ._setmode(fd, mode); and this line it seems to works
much better
            version(DIGITAL_MARS_STDIO)
            {
                // @@@BUG@@@ 4243
                immutable info = __fhnd_info[fd];
                __fhnd_info[fd] &= ~FHND_TEXT;
                scope(exit) __fhnd_info[fd] = info;
            }
        }

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list