Jump to page: 1 2
Thread overview
[Issue 8621] Iteration variable in foreach not closed upon properly in delegate, resulting in completely corrupt large values appearing
[Issue 8621] Iterattion variable in foreach not closed upon properly in delegate
[Issue 8621] Iteration variable in foreach not closed upon properly in delegate
Sep 29, 2014
Marc Schütz
Oct 02, 2014
Kenji Hara
Oct 02, 2014
entheh@cantab.net
Oct 02, 2014
entheh@cantab.net
Oct 02, 2014
Gabor Mezo
Oct 02, 2014
entheh@cantab.net
Oct 02, 2014
Gabor Mezo
Oct 02, 2014
entheh@cantab.net
Oct 02, 2014
Ketmar Dark
Oct 02, 2014
entheh@cantab.net
Apr 08, 2016
Edwin van Leeuwen
Dec 17, 2022
Iain Buclaw
September 24, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--- Comment #2 from hsteoh@quickfur.ath.cx ---
Still happens on git HEAD (v2.067-devel-cfe52d3).

--
September 29, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

Marc Schütz <schuetzm@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schuetzm@gmx.net
            Summary|Iterattion variable in      |Iteration variable in
                   |foreach not closed upon     |foreach not closed upon
                   |properly in delegate        |properly in delegate

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> ---


*** This issue has been marked as a duplicate of issue 2043 ***

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

entheh@cantab.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #4 from entheh@cantab.net ---
Not a duplicate.

The present bug talks about corrupt values coming out of thin air. I quote myself:

"The sort of corrupt values I see for z are for example
28835840 = 0x01B80000
29949952 = 0x01C90000
38535168 = 0x024C0000
36110336 = 0x02270000
But it's always the same between one writeln and the other."

This is not happening at all in the other bug. The other bug is more like the well-known C# foreach lambda problem, but on steroids.

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

entheh@cantab.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Iteration variable in       |Iteration variable in
                   |foreach not closed upon     |foreach not closed upon
                   |properly in delegate        |properly in delegate,
                   |                            |resulting in completely
                   |                            |corrupt large values
                   |                            |appearing

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

Gabor Mezo <gabor.mezo@outlook.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gabor.mezo@outlook.com

--- Comment #5 from Gabor Mezo <gabor.mezo@outlook.com> ---
I can confirm that this issue is NOT present on DMD 2.066.0 Windows.

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

--- Comment #6 from entheh@cantab.net ---
Great - I haven't retested recently. Feel free to resolve :)

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

--- Comment #7 from Gabor Mezo <gabor.mezo@outlook.com> ---
We have "Still happens on git HEAD (v2.067-devel-cfe52d3)" comment above. Maybe it only appears on Linux, or reappeared in v2.067. Worth a check before goes resolved.

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

--- Comment #8 from entheh@cantab.net ---
True, I forgot that was there. For what it's worth, I originally encountered the bug on Windows.

--
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=8621

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--- Comment #9 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
just checked with HEAD-1d1998 on 32-bit GNU/Linux. first sample prints alot of '9', second sample prints alot of '0'. so it works at least for 32-bits. maybe this is 64-bit issue?

--
« First   ‹ Prev
1 2