This file is indexed.

/usr/share/doc/mlton/guide/Bugs20041109 is in mlton-doc 20100608-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="robots" content="index,nofollow">



<title>Bugs20041109 - MLton Standard ML Compiler (SML Compiler)</title>
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="all" href="common.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="screen" href="screen.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="print" href="print.css">


<link rel="Start" href="Home">


</head>

<body lang="en" dir="ltr">

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-833377-1";
urchinTracker();
</script>
<table bgcolor = lightblue cellspacing = 0 style = "border: 0px;" width = 100%>
  <tr>
    <td style = "
		border: 0px;
		color: darkblue; 
		font-size: 150%;
		text-align: left;">
      <a class = mltona href="Home">MLton MLTONWIKIVERSION</a>
    <td style = "
		border: 0px;
		font-size: 150%;
		text-align: center;
		width: 50%;">
      Bugs20041109
    <td style = "
		border: 0px;
		text-align: right;">
      <table cellspacing = 0 style = "border: 0px">
        <tr style = "vertical-align: middle;">
      </table>
  <tr style = "background-color: white;">
    <td colspan = 3
	style = "
		border: 0px;
		font-size:70%;
		text-align: right;">
      <a href = "Home">Home</a>
      &nbsp;<a href = "TitleIndex">Index</a>
      &nbsp;
</table>
<div id="content" lang="en" dir="ltr">
Here are the known bugs in <a href="Release20041109">MLton 20041109</a>, listed in reverse chronological order of date reported. <p>
<a id="17"></a> 
</p>

    <ul>

    <li>
<p>
 <tt>MLton.Finalizable.touch</tt> doesn't necessarily keep values alive  long enough.  Our SVN has a patch to the compiler.  You must rebuild  the compiler in order for the patch to take effect. 
</p>
<p>
 Thanks to Florian Weimer for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="16"></a> 
</p>

    <ul>

    <li>
<p>
 A bug in an optimization pass may incorrectly transform a program  to flatten ref cells into their containing data structure, yielding a  type-error in the transformed program.  Our CVS has a  <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/ssa/ref-flatten.fun.diff?r1=1.35&amp;r2=1.37"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>   to the compiler.  You must rebuild the compiler in order for the  patch to take effect. 
</p>
<p>
 Thanks to <a href="VesaKarvonen">VesaKarvonen</a> for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="15"></a> 
</p>

    <ul>

    <li>
<p>
 A bug in the front end mistakenly allows unary constructors to be  used without an argument in patterns.  For example, the following  program is accepted, and triggers a large internal error. 
<pre> fun f x = case x of SOME =&gt; true | _ =&gt; false</pre> We have fixed the problem in our CVS. 
</p>
<p>
 Thanks to William Lovas for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="14"></a> 
</p>

    <ul>

    <li>
<p>
 A bug in Posix.IO.{getlk,setlk,setlkw} causes a link-time error:  <tt>undefined&nbsp;reference&nbsp;to&nbsp;Posix_IO_FLock_typ</tt>  Our CVS has a  <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/posix/primitive.sml.diff?r1=1.34&amp;r2=1.35"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>  to the Basis Library implementation. 
</p>
<p>
 Thanks to Adam Chlipala for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="13"></a> 
</p>

    <ul>

    <li>
<p>
 A bug can cause programs compiled with <tt>-profile&nbsp;alloc</tt> to  segfault.  Our CVS has a   <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/backend/ssa-to-rssa.fun.diff?r1=1.106&amp;r2=1.107"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>  to the compiler.  You must rebuild the compiler in order for the  patch to take effect. 
</p>
<p>
 Thanks to John Reppy for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="12"></a> 
</p>

    <ul>

    <li>
<p>
 A bug in an optimization pass may incorrectly flatten ref cells  into their containing data structure, breaking the sharing between  the cells.  Our CVS has a  <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/ssa/ref-flatten.fun.diff?r1=1.32&amp;r2=1.33"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>   to the compiler.  You must rebuild the compiler in order for the  patch to take effect. 
</p>
<p>
 Thanks to Paul Govereau for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="11"></a> 
</p>

    <ul>

    <li>
<p>
 Some arrays or vectors, such as <tt>(char&nbsp;*&nbsp;char)&nbsp;vector</tt>, are  incorrectly implemented, and will conflate the first and second  components of each element.  Our CVS has a   <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/backend/packed-representation.fun.diff?r1=1.32&amp;r2=1.33"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>  to the compiler.  You must rebuild the compiler in order for the  patch to take effect. 
</p>
<p>
 Thanks to Scott Cruzen for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="10"></a> 
</p>

    <ul>

    <li>
<p>
 <tt>Socket.Ctl.getLINGER</tt> and <tt>Socket.Ctl.setLINGER</tt>  mistakenly raise <tt>Subscript</tt>.    Our CVS has a   <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/net/socket.sml.diff?r1=1.14&amp;r2=1.15"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>  to the Basis Library implementation. 
</p>
<p>
 Thanks to Ray Racine for reporting the bug. 
</p>
</li>

    </ul>


<p>
<a id="9"></a> 
</p>

    <ul>

    <li>
<p>
 <a href="ConcurrentML"> CML</a> <tt>Mailbox.send</tt> makes a call in the wrong atomic context.  Our CVS has a <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/lib/cml/core-cml/mailbox.sml.diff?r1=1.3&amp;r2=1.4"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>  to the CML implementation. 
</p>
</li>

    </ul>


<p>
<a id="8"></a> 
</p>

    <ul>

    <li>
<p>
 <tt>OS.Path.joinDirFile</tt> and <tt>OS.Path.toString</tt> did not  raise <tt>InvalidArc</tt> when they were supposed to.  They now do.  Our CVS has a <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/system/path.sml.diff?r1=1.8&amp;r2=1.11"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>  to the Basis Library implementation. 
</p>
<p>
 Thanks to Andreas Rossberg for reporting the bug. 
</p>
</li>

    </ul>


<p>
<a id="7"></a> 
</p>

    <ul>

    <li>
<p>
 The front end incorrectly disallows sequences of expressions  (separated by semicolons) after a topdec has already been processed.  For example, the following is incorrectly rejected.  
<pre> val x = 0;
 ignore x;
 ignore x;</pre> We have fixed the problem in our CVS. 
</p>
<p>
 Thanks to Andreas Rossberg for reporting the bug. 
</p>
</li>

    </ul>


<p>
<a id="6"></a> 
</p>

    <ul>

    <li>
<p>
 The front end incorrectly disallows expansive <tt>val</tt>  declarations that bind a type variable that doesn't occur in the  type of the value being bound.   For example, the following is  incorrectly rejected.  
<pre> val 'a x = let exception E of 'a in () end</pre> We have fixed the problem in our CVS. 
</p>
<p>
 Thanks to Andreas Rossberg for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="5"></a> 
</p>

    <ul>

    <li>
<p>
 The x86 codegen fails to account for the possibility that a 64-bit  move could interfere with itself (as simulated by 32-bit moves).  We  have fixed the problem in our CVS.   
</p>
<p>
 Thanks to Scott Cruzen for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="4"></a> 
</p>

    <ul>

    <li>
<p>
 <tt>NetHostDB.scan</tt> and <tt>NetHostDB.fromString</tt> incorrectly  raise an exception on internet addresses whose last component is a  zero, e.g <tt>0.0.0.0</tt>.  Our CVS has a   <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/net/net-host-db.sml.diff?r1=1.12&amp;r2=1.13"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a> to the Basis Library implementation. 
</p>
<p>
 Thanks to Scott Cruzen for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="3"></a> 
</p>

    <ul>

    <li>
<p>
 <tt>StreamIO.inputLine</tt> has an off-by-one error causing it to drop  the first character after a newline in some situations.  Our CVS has a   <a class="external" href="http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/io/stream-io.fun.diff?r1=text&amp;tr1=1.29&amp;r2=text&amp;tr2=1.30&amp;diff_format=h"><img src="moin-www.png" alt="[WWW]" height="11" width="11">patch</a>.  to the Basis Library implementation. 
</p>
<p>
 Thanks to Scott Cruzen for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="2"></a> 
</p>

    <ul>

    <li>
<p>
 <tt>BinIO.getInstream</tt> and <tt>TextIO.getInstream</tt> are  implemented incorrectly.  This also impacts the behavior of  <tt>BinIO.scanStream</tt> and <tt>TextIO.scanStream</tt>.  If you (directly  or indirectly) realize a <tt>TextIO.StreamIO.instream</tt> and do not  (directly or indirectly) call <tt>TextIO.setInstream</tt> with a derived  stream, you may lose input data.  We have fixed the problem in our  CVS.  
</p>
<p>
 Thanks to <a href="WesleyTerpstra">WesleyTerpstra</a> for reporting this bug. 
</p>
</li>

    </ul>


<p>
<a id="1"></a> 
</p>

    <ul>

    <li>
<p>
 <tt>Posix.ProcEnv.setpgid</tt> doesn't work.  If you compile a program  that uses it, you will get a link time error 
<pre>undefined reference to `Posix_ProcEnv_setpgid'</pre> The bug is due to <tt>Posix_ProcEnv_setpgid</tt> being omitted from the  MLton runtime.  We fixed the problem in our CVS by adding the  following definition to <tt>runtime/Posix/ProcEnv/ProcEnv.c</tt> 
<pre> Int Posix_ProcEnv_setpgid (Pid p, Gid g) {
        return setpgid (p, g);
}
</pre>
</p>
<p>
 Thanks to Tom Murphy for reporting this bug. 
</p>
</li>
</ul>

</div>



<p>
<hr>
Last edited on 2007-08-24 20:21:00 by <span title="fenrir.uchicago.edu"><a href="MatthewFluet">MatthewFluet</a></span>.
</body></html>