| 1 |
= Bugs20041109 |
| 2 |
|
| 3 |
Here are the known bugs in <<Release20041109#,MLton 20041109>>, listed |
| 4 |
in reverse chronological order of date reported. |
| 5 |
|
| 6 |
* [[bug17]] |
| 7 |
`MLton.Finalizable.touch` doesn't necessarily keep values alive |
| 8 |
long enough. Our SVN has a patch to the compiler. You must rebuild |
| 9 |
the compiler in order for the patch to take effect. |
| 10 |
+ |
| 11 |
Thanks to Florian Weimer for reporting this bug. |
| 12 |
|
| 13 |
* [[bug16]] |
| 14 |
A bug in an optimization pass may incorrectly transform a program |
| 15 |
to flatten ref cells into their containing data structure, yielding a |
| 16 |
type-error in the transformed program. Our CVS has a |
| 17 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/ssa/ref-flatten.fun.diff?r1=1.35&r2=1.37[patch] |
| 18 |
to the compiler. You must rebuild the compiler in order for the |
| 19 |
patch to take effect. |
| 20 |
+ |
| 21 |
Thanks to <<VesaKarvonen#>> for reporting this bug. |
| 22 |
|
| 23 |
* [[bug15]] |
| 24 |
A bug in the front end mistakenly allows unary constructors to be |
| 25 |
used without an argument in patterns. For example, the following |
| 26 |
program is accepted, and triggers a large internal error. |
| 27 |
+ |
| 28 |
[source,sml] |
| 29 |
---- |
| 30 |
fun f x = case x of SOME => true | _ => false |
| 31 |
---- |
| 32 |
+ |
| 33 |
We have fixed the problem in our CVS. |
| 34 |
+ |
| 35 |
Thanks to William Lovas for reporting this bug. |
| 36 |
|
| 37 |
* [[bug14]] |
| 38 |
A bug in `Posix.IO.{getlk,setlk,setlkw}` causes a link-time error: |
| 39 |
`undefined reference to Posix_IO_FLock_typ` |
| 40 |
Our CVS has a |
| 41 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/posix/primitive.sml.diff?r1=1.34&r2=1.35[patch] |
| 42 |
to the Basis Library implementation. |
| 43 |
+ |
| 44 |
Thanks to Adam Chlipala for reporting this bug. |
| 45 |
|
| 46 |
* [[bug13]] |
| 47 |
A bug can cause programs compiled with `-profile alloc` to |
| 48 |
segfault. Our CVS has a |
| 49 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/backend/ssa-to-rssa.fun.diff?r1=1.106&r2=1.107[patch] |
| 50 |
to the compiler. You must rebuild the compiler in order for the |
| 51 |
patch to take effect. |
| 52 |
+ |
| 53 |
Thanks to John Reppy for reporting this bug. |
| 54 |
|
| 55 |
* [[bug12]] |
| 56 |
A bug in an optimization pass may incorrectly flatten ref cells |
| 57 |
into their containing data structure, breaking the sharing between |
| 58 |
the cells. Our CVS has a |
| 59 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/ssa/ref-flatten.fun.diff?r1=1.32&r2=1.33[patch] |
| 60 |
to the compiler. You must rebuild the compiler in order for the |
| 61 |
patch to take effect. |
| 62 |
+ |
| 63 |
Thanks to Paul Govereau for reporting this bug. |
| 64 |
|
| 65 |
* [[bug11]] |
| 66 |
Some arrays or vectors, such as `(char * char) vector`, are |
| 67 |
incorrectly implemented, and will conflate the first and second |
| 68 |
components of each element. Our CVS has a |
| 69 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/mlton/backend/packed-representation.fun.diff?r1=1.32&r2=1.33[patch] |
| 70 |
to the compiler. You must rebuild the compiler in order for the |
| 71 |
patch to take effect. |
| 72 |
+ |
| 73 |
Thanks to Scott Cruzen for reporting this bug. |
| 74 |
|
| 75 |
* [[bug10]] |
| 76 |
`Socket.Ctl.getLINGER` and `Socket.Ctl.setLINGER` |
| 77 |
mistakenly raise `Subscript`. |
| 78 |
Our CVS has a |
| 79 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/net/socket.sml.diff?r1=1.14&r2=1.15[patch] |
| 80 |
to the Basis Library implementation. |
| 81 |
+ |
| 82 |
Thanks to Ray Racine for reporting the bug. |
| 83 |
|
| 84 |
* [[bug09]] |
| 85 |
<<ConcurrentML#,CML>> `Mailbox.send` makes a call in the wrong atomic context. |
| 86 |
Our CVS has a http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/lib/cml/core-cml/mailbox.sml.diff?r1=1.3&r2=1.4[patch] |
| 87 |
to the CML implementation. |
| 88 |
|
| 89 |
* [[bug08]] |
| 90 |
`OS.Path.joinDirFile` and `OS.Path.toString` did not |
| 91 |
raise `InvalidArc` when they were supposed to. They now do. |
| 92 |
Our CVS has a http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/system/path.sml.diff?r1=1.8&r2=1.11[patch] |
| 93 |
to the Basis Library implementation. |
| 94 |
+ |
| 95 |
Thanks to Andreas Rossberg for reporting the bug. |
| 96 |
|
| 97 |
* [[bug07]] |
| 98 |
The front end incorrectly disallows sequences of expressions |
| 99 |
(separated by semicolons) after a topdec has already been processed. |
| 100 |
For example, the following is incorrectly rejected. |
| 101 |
+ |
| 102 |
[source,sml] |
| 103 |
---- |
| 104 |
val x = 0; |
| 105 |
ignore x; |
| 106 |
ignore x; |
| 107 |
---- |
| 108 |
+ |
| 109 |
We have fixed the problem in our CVS. |
| 110 |
+ |
| 111 |
Thanks to Andreas Rossberg for reporting the bug. |
| 112 |
|
| 113 |
* [[bug06]] |
| 114 |
The front end incorrectly disallows expansive `val` |
| 115 |
declarations that bind a type variable that doesn't occur in the |
| 116 |
type of the value being bound. For example, the following is |
| 117 |
incorrectly rejected. |
| 118 |
+ |
| 119 |
[source,sml] |
| 120 |
---- |
| 121 |
val 'a x = let exception E of 'a in () end |
| 122 |
---- |
| 123 |
+ |
| 124 |
We have fixed the problem in our CVS. |
| 125 |
+ |
| 126 |
Thanks to Andreas Rossberg for reporting this bug. |
| 127 |
|
| 128 |
* [[bug05]] |
| 129 |
The x86 codegen fails to account for the possibility that a 64-bit |
| 130 |
move could interfere with itself (as simulated by 32-bit moves). We |
| 131 |
have fixed the problem in our CVS. |
| 132 |
+ |
| 133 |
Thanks to Scott Cruzen for reporting this bug. |
| 134 |
|
| 135 |
* [[bug04]] |
| 136 |
`NetHostDB.scan` and `NetHostDB.fromString` incorrectly |
| 137 |
raise an exception on internet addresses whose last component is a |
| 138 |
zero, e.g `0.0.0.0`. Our CVS has a |
| 139 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/net/net-host-db.sml.diff?r1=1.12&r2=1.13[patch] to the Basis Library implementation. |
| 140 |
+ |
| 141 |
Thanks to Scott Cruzen for reporting this bug. |
| 142 |
|
| 143 |
* [[bug03]] |
| 144 |
`StreamIO.inputLine` has an off-by-one error causing it to drop |
| 145 |
the first character after a newline in some situations. Our CVS has a |
| 146 |
http://mlton.org/cgi-bin/viewcvs.cgi/mlton/mlton/basis-library/io/stream-io.fun.diff?r1=text&tr1=1.29&r2=text&tr2=1.30&diff_format=h[patch]. |
| 147 |
to the Basis Library implementation. |
| 148 |
+ |
| 149 |
Thanks to Scott Cruzen for reporting this bug. |
| 150 |
|
| 151 |
* [[bug02]] |
| 152 |
`BinIO.getInstream` and `TextIO.getInstream` are |
| 153 |
implemented incorrectly. This also impacts the behavior of |
| 154 |
`BinIO.scanStream` and `TextIO.scanStream`. If you (directly |
| 155 |
or indirectly) realize a `TextIO.StreamIO.instream` and do not |
| 156 |
(directly or indirectly) call `TextIO.setInstream` with a derived |
| 157 |
stream, you may lose input data. We have fixed the problem in our |
| 158 |
CVS. |
| 159 |
+ |
| 160 |
Thanks to <<WesleyTerpstra#>> for reporting this bug. |
| 161 |
|
| 162 |
* [[bug01]] |
| 163 |
`Posix.ProcEnv.setpgid` doesn't work. If you compile a program |
| 164 |
that uses it, you will get a link time error |
| 165 |
+ |
| 166 |
---- |
| 167 |
undefined reference to `Posix_ProcEnv_setpgid' |
| 168 |
---- |
| 169 |
+ |
| 170 |
The bug is due to `Posix_ProcEnv_setpgid` being omitted from the |
| 171 |
MLton runtime. We fixed the problem in our CVS by adding the |
| 172 |
following definition to `runtime/Posix/ProcEnv/ProcEnv.c` |
| 173 |
+ |
| 174 |
[source,c] |
| 175 |
---- |
| 176 |
Int Posix_ProcEnv_setpgid (Pid p, Gid g) { |
| 177 |
return setpgid (p, g); |
| 178 |
} |
| 179 |
---- |
| 180 |
+ |
| 181 |
Thanks to Tom Murphy for reporting this bug. |