4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>Bugs20070826</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
30 <div class="sectionbody">
31 <div class="paragraph"><p>Here are the known bugs in <a href="Release20070826">MLton 20070826</a>, listed
32 in reverse chronological order of date reported.</p></div>
33 <div class="ulist"><ul>
37 Bug in the mark-compact garbage collector where the C library’s <span class="monospaced">memcpy</span> was used to move objects during the compaction phase; this could lead to heap corruption and segmentation faults with newer versions of gcc and/or glibc, which assume that src and dst in a <span class="monospaced">memcpy</span> do not overlap.
39 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7461"><span class="monospaced">r7461</span></a>.</p></div>
44 Bug in elaboration of <span class="monospaced">datatype</span> declarations with <span class="monospaced">withtype</span> bindings.
46 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7434"><span class="monospaced">r7434</span></a>.</p></div>
51 Performance bug in <a href="RefFlatten">RefFlatten</a> optimization pass.
53 <div class="paragraph"><p>Thanks to Reactive Systems for the bug report.</p></div>
54 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7379"><span class="monospaced">r7379</span></a>.</p></div>
59 Performance bug in <a href="SimplifyTypes">SimplifyTypes</a> optimization pass.
61 <div class="paragraph"><p>Thanks to Reactive Systems for the bug report.</p></div>
62 <div class="paragraph"><p>Fixed by revisions <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7377"><span class="monospaced">r7377</span></a> and <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7378"><span class="monospaced">r7378</span></a>.</p></div>
67 Bug in amd64 codegen register allocation of indirect C calls.
69 <div class="paragraph"><p>Thanks to David Hansel for the bug report.</p></div>
70 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7368"><span class="monospaced">r7368</span></a>.</p></div>
75 Bug in <span class="monospaced">IntInf.scan</span> and <span class="monospaced">IntInf.fromString</span> where leading spaces were only accepted if the stream had an explicit sign character.
77 <div class="paragraph"><p>Thanks to David Hansel for the bug report.</p></div>
78 <div class="paragraph"><p>Fixed by revisions <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7227"><span class="monospaced">r7227</span></a> and <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7230"><span class="monospaced">r7230</span></a>.</p></div>
83 Bug in <span class="monospaced">IntInf.~>></span> that could cause a <span class="monospaced">glibc</span> assertion.
85 <div class="paragraph"><p>Fixed by revisions <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7083"><span class="monospaced">r7083</span></a>, <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7084"><span class="monospaced">r7084</span></a>, and <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7085"><span class="monospaced">r7085</span></a>.</p></div>
90 Bug in the return type of <span class="monospaced">MLton.Process.reap</span>.
92 <div class="paragraph"><p>Thanks to Risto Saarelma for the bug report.</p></div>
93 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r7029"><span class="monospaced">r7029</span></a>.</p></div>
98 Bug in <span class="monospaced">MLton.size</span> and <span class="monospaced">MLton.share</span> when tracing the current stack.
100 <div class="paragraph"><p>Fixed by revisions <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6978"><span class="monospaced">r6978</span></a>, <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6981"><span class="monospaced">r6981</span></a>, <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6988"><span class="monospaced">r6988</span></a>, <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6989"><span class="monospaced">r6989</span></a>, and <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6990"><span class="monospaced">r6990</span></a>.</p></div>
105 Bug in nested <span class="monospaced">_export</span>/<span class="monospaced">_import</span> functions.
107 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6919"><span class="monospaced">r6919</span></a>.</p></div>
112 Bug in the name mangling of <span class="monospaced">_import</span>-ed functions with the <span class="monospaced">stdcall</span> convention.
114 <div class="paragraph"><p>Thanks to Lars Bergstrom for the bug report.</p></div>
115 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6672"><span class="monospaced">r6672</span></a>.</p></div>
120 Bug in Windows code to page the heap to disk when unable to grow the heap to a desired size.
122 <div class="paragraph"><p>Thanks to Sami Evangelista for the bug report.</p></div>
123 <div class="paragraph"><p>Fixed by revisions <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6600"><span class="monospaced">r6600</span></a> and <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6624"><span class="monospaced">r6624</span></a>.</p></div>
128 Bug in \*NIX code to page the heap to disk when unable to grow the heap to a desired size.
130 <div class="paragraph"><p>Thanks to Nicolas Bertolotti for the bug report and patch.</p></div>
131 <div class="paragraph"><p>Fixed by revisions <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6596"><span class="monospaced">r6596</span></a> and <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6600"><span class="monospaced">r6600</span></a>.</p></div>
136 Space-safety bug in pass to <a href="RefFlatten"> flatten refs</a> into containing data structure.
138 <div class="paragraph"><p>Thanks to Daniel Spoonhower for the bug report and initial diagnosis and patch.</p></div>
139 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6395"><span class="monospaced">r6395</span></a>.</p></div>
144 Bug in the frontend that rejected <span class="monospaced">op longvid</span> patterns and expressions.
146 <div class="paragraph"><p>Thanks to Florian Weimer for the bug report.</p></div>
147 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6347"><span class="monospaced">r6347</span></a>.</p></div>
152 Bug in the <a href="http://www.standardml.org/Basis/imperative-io.html#SIG:IMPERATIVE_IO.canInput:VAL"><span class="monospaced">IMPERATIVE_IO.canInput</span></a> function of the <a href="BasisLibrary">Basis Library</a> implementation.
154 <div class="paragraph"><p>Thanks to Ville Laurikari for the bug report.</p></div>
155 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6261"><span class="monospaced">r6261</span></a>.</p></div>
160 Bug in algebraic simplification of real primitives. <a href="http://www.standardml.org/Basis/real.html#SIG:REAL.\|@LTE\|:VAL"><span class="monospaced">REAL<em><N></em>.<=(x, x)</span></a> is <span class="monospaced">false</span> when <span class="monospaced">x</span> is NaN.
162 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6242"><span class="monospaced">r6242</span></a>.</p></div>
167 Bug in the FFI visible representation of <span class="monospaced">Int16.int ref</span> (and references of other primitive types smaller than 32-bits) on big-endian platforms.
169 <div class="paragraph"><p>Thanks to Dave Herman for the bug report.</p></div>
170 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6267"><span class="monospaced">r6267</span></a>.</p></div>
175 Bug in type inference of flexible records. This would later cause the compiler to raise the <span class="monospaced">TypeError</span> exception.
177 <div class="paragraph"><p>Thanks to Wesley Terpstra for the bug report.</p></div>
178 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6229"><span class="monospaced">r6229</span></a>.</p></div>
183 Bug in cross-compilation of <span class="monospaced">gdtoa</span> library.
185 <div class="paragraph"><p>Thanks to Wesley Terpstra for the bug report and patch.</p></div>
186 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6620"><span class="monospaced">r6620</span></a>.</p></div>
191 Bug in pass to <a href="RefFlatten"> flatten refs</a> into containing data structure.
193 <div class="paragraph"><p>Thanks to Ruy Ley-Wild for the bug report.</p></div>
194 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6191"><span class="monospaced">r6191</span></a>.</p></div>
199 Bug in the handling of weak pointers by the mark-compact garbage collector.
201 <div class="paragraph"><p>Thanks to Sean McLaughlin for the bug report and Florian Weimer for the initial diagnosis.</p></div>
202 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6183"><span class="monospaced">r6183</span></a>.</p></div>
207 Bug in the elaboration of structures with signature constraints. This would later cause the compiler to raise the <span class="monospaced">TypeError</span> exception.
209 <div class="paragraph"><p>Thanks to Vesa Karvonen for the bug report.</p></div>
210 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6046"><span class="monospaced">r6046</span></a>.</p></div>
215 Bug in the interaction of <span class="monospaced">_export</span>-ed functions and signal handlers.
217 <div class="paragraph"><p>Thanks to Sean McLaughlin for the bug report.</p></div>
218 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r6013"><span class="monospaced">r6013</span></a>.</p></div>
223 Bug in the implementation of <span class="monospaced">_export</span>-ed functions using the <span class="monospaced">char</span> type, leading to a linker error.
225 <div class="paragraph"><p>Thanks to Katsuhiro Ueno for the bug report.</p></div>
226 <div class="paragraph"><p>Fixed by revision <a href="https://github.com/MLton/mlton/commit/%3A%2FSVN%20r5999"><span class="monospaced">r5999</span></a>.</p></div>
232 <div id="footnotes"><hr></div>
234 <div id="footer-text">
236 <div id="footer-badges">