/
notes.xml
8166 lines (7920 loc) · 293 KB
/
notes.xml
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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">
<chapter>
<header>
<copyright>
<year>2004</year><year>2011</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
The contents of this file are subject to the Erlang Public License,
Version 1.1, (the "License"); you may not use this file except in
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at http://www.erlang.org/.
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
</legalnotice>
<title>ERTS Release Notes</title>
<prepared>otp_appnotes</prepared>
<docno>nil</docno>
<date>nil</date>
<rev>nil</rev>
<file>notes.xml</file>
</header>
<p>This document describes the changes made to the ERTS application.</p>
<section><title>Erts 5.8.5</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
Several bugs concerning constant binary constructions
such as <<0:4294967295>> have been corrected.
Depending on the actual size of the binary and the type
of run-time system (32-bit, halfword, 64-bit), such
expression could either crash the run-time system or make
the loader refuse loading of the module.</p>
<p>
Own Id: OTP-9284</p>
</item>
<item>
<p>
The Erlsrv utility failed to stop the erlang machine if
no StopAction was defined when the service was stopped.
This is now corrected.</p>
<p>
Own Id: OTP-9344</p>
</item>
<item>
<p>
Due to a bug in glibc the runtime system could abort
while trying to destroy a mutex. A fix for this was
introduced in R14B02. This fix did, however, not solve
the problem. The runtime system will now issue a warning
instead of aborting.</p>
<p>
Own Id: OTP-9373 Aux Id: OTP-9009 </p>
</item>
<item>
<p>
Replace atom in DRV macro in prim_file with string</p>
<p>
An experimental version of Dialyzer discovered that the
atom that replaced the DRV macro in prim_file ends up in
calls to erlang:open_port({spawn, Driver}, Portopts) as
the Driver argument. The documentation states that this
call requires a string there.</p>
<p>
This change is also consistent with the one introduced in
commit 0f03b1e9d2bef3bc830c31a369261af4c5234727 by Kostis
Sagonas.</p>
<p>
Own Id: OTP-9377</p>
</item>
<item>
<p>
Fix typos in the epmd documentation (Thanks to Holger
Weiß )</p>
<p>
Own Id: OTP-9387</p>
</item>
<item>
<p>
Fix faulty integer terms created by NIF API from 64-bit
integers on halfword emulator. (Thanks to Paolo Negri and
Paul Davis)</p>
<p>
Own Id: OTP-9394</p>
</item>
<item>
<p>
Fix <c>epmd</c> crash on vxworks caused by faulty
argument to select() system call.</p>
<p>
Own Id: OTP-9427 Aux Id: seq11855 </p>
</item>
<item>
<p>
The ets:test_ms function could in rare cases truncate the
error messages. This is now corrected.</p>
<p>
Own Id: OTP-9435</p>
</item>
<item>
<p>
Fix bug related to hibernate and HiPE (clear
F_HIBERNATE_SCHED flag)</p>
<p>
F_HIBERNATE_SCHED flag that was introduced in
b7ecdcd1ae9e11b8f75e must be cleared in hipe_mode_switch
as well. Otherwise, processes running HiPE code that
hibernate, wake up and then trap into a BIF will not be
rescheduled.(Thanks to Paul Guyot)</p>
<p>
Own Id: OTP-9452</p>
</item>
<item>
<p>
Fix bug in FreeBSD topology detection code (Thanks to
Paul Guyot)</p>
<p>
Own Id: OTP-9453</p>
</item>
<item>
<p>
Fix use of logical operator && with constant
operand instead of bitwise & (Thanks to Cristian
Greco)</p>
<p>
Own Id: OTP-9454</p>
</item>
<item>
<p>
inet: error if fd does not match socket domain</p>
<p>
If an IPv4 fd is opened as an IPv6 socket, unexpected
behaviour can occur. For example, if an IPv4 UDP socket
is opened and passed into Erlang as an IPv6 socket, the
first 3 bytes (corresponding to 1 byte representing the
protocol family, 2 bytes set to the port) are stripped
from the payload. The cause of the UDP payload truncation
happens in inet_drv.c:packet_inet_input when a call to
inet_get_address fails silently because the family is set
to PF_INET6 but the buffer len is the size of an IPv4
struct sockaddr_in.</p>
<p>
(Thanks to Andrew Tunnell-Jones for finding the bug and
the test case!)</p>
<p>
Own Id: OTP-9455</p>
</item>
<item>
<p>
erts: use a union to avoid strict aliasing issues</p>
<p>
Use a union for pointer type conversion to avoid compiler
warnings about strict-aliasing violations with gcc-4.1.
gcc >= 4.2 does not emit the warning. erts: adapt
matrix_nif to R14 erl_nif API changes (Thanks To Tuncer
Ayaz)</p>
<p>
Own Id: OTP-9487</p>
</item>
<item>
<p>
fix 64-bit issues in the garbage collection (Thanks to
Richard Carlsson)</p>
<p>
Own Id: OTP-9488</p>
</item>
<item>
<p>
epmd: fix compiler warnings</p>
<p>
Suppress compiler warnings about ignored return values.
(Thanks to Michael Santos )</p>
<p>
Own Id: OTP-9500</p>
</item>
<item>
<p>
Fix non-existing function (erlang:disconnect/1) in
distributed reference manual (Thanks to Fabian Król)</p>
<p>
Own Id: OTP-9504</p>
</item>
<item>
<p>
Document fdatasync -lrt requirement (SunOS <= 5.10)
(Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-9512</p>
</item>
<item>
<p>
Let epmd ignore empty ERL_EPMD_ADDRESS</p>
<p>
If the environment variable ERL_EPMD_ADDRESS is set to
the empty string, empd now behaves like it does by
default when ERL_EPMD_ADDRESS is unset. That is, in this
case, epmd now listens on all available interfaces
instead of using only the loopback interface, which
happened because epmd added the loopback address to the
(in this case empty) list of addresses specified via
ERL_EPMD_ADDRESS.</p>
<p>
Also, epmd now ignores ERL_EPMD_ADDRESS if it contains
only separator characters (comma and space).</p>
<p>
The same applies to epmd's -address option.(Thanks to
Holger Weiß)</p>
<p>
Own Id: OTP-9525</p>
</item>
<item>
<p>
Remove dead code in erl_compile (Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-9527</p>
</item>
<item>
<p>
Add erlang:external_size/2 BIF</p>
<p>
This BIF's second parameter is a list of options.
Currently the only allowed option is {minor_version,
Version} where version is either 0 (default) or 1.
(Thanks to Filipe David Manana )</p>
<p>
Own Id: OTP-9528</p>
</item>
<item>
<p>
Fix enif_compare on 64bits machines</p>
<p>
In 64bits machines the Sint type has a size of 8 bytes,
while on 32bits machines it has a 4 bytes size.
enif_compare was ignoring this and therefore returning
incorrect values when the result of the CMP function
(which returns a Sint value) doesn't fit in 4 bytes.
(Thanks to Filipe David Manana)</p>
<p>
Own Id: OTP-9533</p>
</item>
<item>
<p>
Implement or fix -Werror option</p>
<p>
If -Werror is enabled and there are warnings no output
file is written. Also make sure that error/warning
reporting is consistent. (Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-9536</p>
</item>
<item>
<p>In some rare cases we did not have a run queue when
scheduling misc ops. This is now fixed.</p>
<p>
Own Id: OTP-9537</p>
</item>
<item>
<p>Remove misc. compiler warnings</p>
<p>
Own Id: OTP-9542</p>
</item>
<item>
<p>
Two bugs in gen_sctp has been corrected: getopts/setopts
hence also send could only be called from socket owner,
and options 'linger', 'rcvbuf' and 'sndbuf' was read from
wrong protocol layer hence read wrong values by getopts.</p>
<p>
Own Id: OTP-9544</p>
</item>
<item>
<p>
Erlang/OTP can now be built on MacOS X Lion.</p>
<p>
Own Id: OTP-9547</p>
</item>
<item>
<p> XML files have been corrected. </p>
<p>
Own Id: OTP-9550 Aux Id: OTP-9541 </p>
</item>
<item>
<p>
Fix potential errors inspired by running cppcheck(1)
(Thanks to Christian von Roques)</p>
<p>
Own Id: OTP-9557</p>
</item>
<item>
<p>When auxiliary work was enqueued on a scheduler, the
wakeup of the scheduler in order to handle this work
could be lost. Wakeups in order to handle ordinary work
were not effected by this bug. The bug only effected
runtime systems with SMP support as follows:</p> <list>
<item>Deallocation of some ETS data structures could be
delayed.</item> <item>On Linux systems not using the NPTL
thread library (typically ancient systems with kernel
versions prior to 2.6) and Windows systems, the <c>{Port,
{exit_status, Status}}</c> message from a terminating
port program could be delayed. That is, it only effected
port programs which had been started by passing
<c>exit_status</c> as an option to
<c>open_port/2</c>.</item> </list>
<p>
Own Id: OTP-9567</p>
</item>
<item>
<p>
Handle rare race in the crypto key server functionality</p>
<p>
Own Id: OTP-9586</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p> Types and specifications have been added. </p>
<p>
Own Id: OTP-9356</p>
</item>
<item>
<p>
New allocator strategy "address order first fit". May
ease the emptying of memory carriers and thereby real
release of memory back to the OS.</p>
<p>
Own Id: OTP-9424</p>
</item>
<item>
<p>
The new <c>erlang:check_old_code/1</c> BIF checks whether
a module has old code.</p>
<p>
Own Id: OTP-9495</p>
</item>
<item>
<p> Update documentation and specifications of some of
the zlib functions. </p>
<p>
Own Id: OTP-9506</p>
</item>
<item>
<p>
Detect the available CPUs on IRIX</p>
<p>
Add support for querying the number of configured and
online processors on SGI systems running IRIX.(Thanks to
Holger Weiß)</p>
<p>
Own Id: OTP-9531</p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.8.4</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>Fix binary and iolist overflow problems. Typically
problems arose in length calculation where the result
would exceed (1 bsl 32 - 1).</p>
<p>
Own Id: OTP-9118</p>
</item>
<item>
<p>
Using the old erlang shell (i.e. erl instead on werl) on
windows and doing several init:restart's would eventually
hang the VM. That is no longer the case.</p>
<p>
Own Id: OTP-9139</p>
</item>
<item>
<p>
Removed recursive C code when printing Erlang terms to
buffers, avoiding stack overflows that could cause VM to
crash.</p>
<p>
Own Id: OTP-9140</p>
</item>
<item>
<p>
The send_timeout option in gen_tcp did not work properly
in active mode or with {active,once} options. This is now
corrected.</p>
<p>
Own Id: OTP-9145</p>
</item>
<item>
<p>
Fixed various typos across the documentation (Thanks to
Tuncer Ayaz)</p>
<p>
Own Id: OTP-9154</p>
</item>
<item>
<p>Remove duplicate stack entries which could occur after
calling certain BIFs.</p>
<p>
Own Id: OTP-9163</p>
</item>
<item>
<p>
A race when starting two nodes simultaneously using
run_erl has been removed.</p>
<p>
Own Id: OTP-9164</p>
</item>
<item>
<p>
Add documentation on .erlang processing back again
(Thanks to Gabor Liptak)</p>
<p>
Own Id: OTP-9189</p>
</item>
<item>
<p>
Remove gratuitous paren in driver_entry(Thanks to Tuncer
Ayaz)</p>
<p>
Own Id: OTP-9192</p>
</item>
<item>
<p>
Fix some wrong pointer dereferences (Thanks to Cristian
Greco)</p>
<p>
Own Id: OTP-9194</p>
</item>
<item>
<p>
erts: Remove unused variables (Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-9205</p>
</item>
<item>
<p>
The documentation for <c>init:get_args/0</c> has been
removed. <c>init:get_args/0</c> itself was deprecated in
R9C and removed in R12B. (Thanks to Eric Pailleau.)</p>
<p>
Own Id: OTP-9209</p>
</item>
<item>
<p>
Allow user to specify the IP address epmd binds to</p>
<p>
The IP address(es) epmd binds to can now be specified by
the user, either via epmd's new "-address" option or (if
that's not used) by setting the environment variable
ERL_EPMD_ADDRESS. Multiple addresses may be specified
using a comma-separated list. If the loopback address is
not in this list, it will be added implicitly, so that
the daemon can be queried by an interactive epmd
process.(Thanks to Holger Weiß)</p>
<p>
Own Id: OTP-9213</p>
</item>
<item>
<p>
epmd: include host address in local access check</p>
<p>
In FreeBSD jails, the source and destination address of
connections to localhost are changed to be the IP address
of the jail. Consider connections from the host's IP
address to itself (e.g., the source and destination
address match) to be local for the access control checks.
(Thanks to Michal Santos and Tom at diogunix.com)</p>
<p>
Own Id: OTP-9214</p>
</item>
<item>
<p>
Fix list returned by net_kernel:epmd_module</p>
<p>
Function epmd_module of net_kernel returns a list instead
of an atom, when the epmd_module-flag is used. (Thanks to
Markus Knofe)</p>
<p>
Own Id: OTP-9215</p>
</item>
<item>
<p>
Fix epmd's dbg_perror() output</p>
<p>
The dbg_perror() function now hands the current errno
value over to dbg_gen_printf(). This fixes the problem
that errno had been reset to zero by the time it was used
(to print the corresponding error message) in the
dbg_gen_printf() function. (Thanks to Holger Weiß)</p>
<p>
Own Id: OTP-9223</p>
</item>
<item>
<p>
heart: remove garbage appended to heart command</p>
<p>
heart:get_cmd/0 is documented to return an empty string
if the command is cleared. get_cmd/0 returns 2 extra
bytes: 1 byte for the trailing null, 1 byte from the op
(the op is an unsigned char and 2 bytes are allocated for
it in the returned buffer). (Thanks to Michael Santos)</p>
<p>
Own Id: OTP-9224</p>
</item>
<item>
<p>
file: fix hang reading compressed files</p>
<p>
The gzio driver goes into an infinite loop when reading
past the end of a compressed file. Reported-By: Alex
Morarash (Thanks to Michael Santos)</p>
<p>
Own Id: OTP-9245</p>
</item>
<item>
<p>Eliminate alias warnings from gcc 4.5.2</p>
<p>
Own Id: OTP-9250</p>
</item>
<item>
<p>
Unsigned integer may overflow in error message (Thanks to
Michael Santos)</p>
<p>
Own Id: OTP-9251</p>
</item>
<item>
<p>
Driver names should be strings, not atoms</p>
<p>
Own Id: OTP-9253</p>
</item>
<item>
<p>
driver_entry: Remove gratuitous paren and fix typo
(Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-9254</p>
</item>
<item>
<p>
Fix format specifiers in erl_exit messages</p>
<p>
Fix an error message by using an unsigned integer
specifier as seen in a tweet by @metabrew: #erlang VM
crashed with "no next heap size found: -2090496108,
offset 0", suddenly allocated all available RAM</p>
<p>
Also correct mis-typed string formats in bif.c.(Thanks to
Michael Santos)</p>
<p>
Own Id: OTP-9262</p>
</item>
<item>
<p>
net_drv: remove unused tcp request id inet_drv: remove
gratuitous assignment (Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-9263</p>
</item>
<item>
<p>
Teach run_erl RUN_ERL_DISABLE_FLOWCNTRL for disabling
flow control</p>
<p>
Flow control can cause unwanted behaviour of the beam
process, if accidentally hit Ctrl-S (instead of Ctrl-D to
detach) the entire beam may be blocked.</p>
<p>
Fix this problem by making it possible to turn off flow
control by setting the environment variable
RUN_ERL_DISABLE_FLOWCNTRL. (Thanks to Jonas Faklkevik)</p>
<p>
Own Id: OTP-9270</p>
</item>
<item>
<p>The following bugs due to missing memory barriers have
been fixed:</p> <list> <item><p> ETS tables using the
<c>write_concurrency</c> option could potentially get
into an internally inconsistent state. </p></item>
<item><p> ETS tables using the <c>ordered_set</c> option
could potentially get into an internally inconsistent
state. </p></item> <item><p> A number of memory barriers
have been added when building with the
<c>libatomic_ops</c> API (i.e. when passing
<c>--with-libatomic_ops=PATH</c> to <c>configure</c>) and
the tilera atomics API (i.e. when building for the tilera
chip). Note that these bugs were due to erroneous usage
of the APIs, and not in the implementations of the APIs.
When using these APIs the following bugs where
present:</p> <list> <item><p> The BIF
<c>erlang:ports/0</c> could return an erroneous result.
</p></item> <item><p> A thread blocking other threads
during code loading, or setup of tracing could
potentially read invalid data. </p></item> <item><p>
Fixation of ETS tables could potentially get into an
internally inconsistent state. </p></item> </list>
</item> </list>
<p>
Own Id: OTP-9281</p>
</item>
<item>
<p>
Fix halfword bug for ETS ordered_set when doing
<c>select/match</c> with partly bound key.</p>
<p>
Own Id: OTP-9292</p>
</item>
<item>
<p>
Fix bug in <c>code:is_module_native</c> that caused crash
for deleted modules.</p>
<p>
Own Id: OTP-9298</p>
</item>
<item>
<p>
Calling <c>driver_async_cancel()</c> could cause a
scheduler thread to enter an eternal loop doing no useful
work. (Thanks to Anders Ramsell)</p>
<p>
Own Id: OTP-9302</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>
New <c>enif_is_exception function</c> to allow NIFs to
determine whether an <c>ERL_NIF_TERM</c> represents an
exception. (Thanks to Steve Vinoski)</p>
<p>
Own Id: OTP-9150</p>
</item>
<item>
<p>
A process being garbage collected by another process
could be scheduled on another scheduler. This prevented
this scheduler from doing any useful work until the
garbage collection was done. This either occurred due to
a explicit call to the <c>garbage_collect/1</c> BIF, or
due to a garbage collection part of code loading. A
process being garbage collected like this will now not be
scheduled until the garbage collection has completed.</p>
<p>
Own Id: OTP-9211</p>
</item>
<item>
<p>
Remove unnecessary validation copy in
prim_file:drv_command/3 (Thanks to Tony Rogvall)</p>
<p>
Own Id: OTP-9276</p>
</item>
<item>
<p>
Symbolic link handling on windows have been slightly
updated to map error conditions more consequently and
correctly read directory links created outside of the
Erlang environment.</p>
<p>
Own Id: OTP-9279</p>
</item>
<item>
<p>
Due to standard library DLL mismatches between versions
of OpenSSL and Erlang/OTP, OpenSSL is now linked
statically to the crypto driver on Windows. This fixes
problems starting crypto when running Erlang as a service
on all Windows versions.</p>
<p>
Own Id: OTP-9280</p>
</item>
<item>
<p>Halfword emulator memory handling improvements:</p>
<list> <item><p>Much more of internal memory structures
have been made able to use "high" memory and are no
longer restricted to the 4Gb limit that still applies for
all process heap data.</p> </item> <item><p>Fixed faulty
values from <c>erlang:memory()</c> caused by 32-bit
counter overflow.</p> </item> <item><p>New counter
<c>low</c> in <c>erlang:memory()</c> that sums up all
memory restricted by 4Gb limit.</p> </item> </list>
<p>
Own Id: OTP-9291 Aux Id: seq11841 </p>
</item>
<item>
<p>
The value set in the undocumented and unsupported
ERL_version_FLAGS (e.g. ERL_R14B03_FLAGS) environment
variable can now be overridden by the command line
(similar to ERL_AFLAGS).</p>
<p>
Own Id: OTP-9297</p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.8.3.2</title>
<section><title>Known Bugs and Problems</title>
<list>
<item>
<p>
Fix halfword emulator bug in <c>ets:select_delete</c> for
<c>ordered_set</c> that caused emulator to crash.</p>
<p>
Own Id: OTP-9258 Aux Id: seq11836 </p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.8.3.1</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
Ets table type ordered_set could order large integer keys
wrongly on pure 64bit platforms. This is now corrected.</p>
<p>
Own Id: OTP-9181</p>
</item>
<item>
<p>
The status of a process was unnecessarily set to waiting
before a process was enqueued in a run queue. This bug
was harmless up until OTP-R14B01. In OTP-R14B02
<c>erlang:hibernate/3</c> was fixed (OTP-9125). After the
introduction of OTP-9125, the previously harmless process
status bug sometimes caused erroneous badarg exceptions
from <c>process_info()</c>.</p>
<p>
OTP-9125 also introduced a thread unsafe access to the
status field of a process which now also have been fixed.</p>
<p>
*** INCOMPATIBILITY with noxs ***</p>
<p>
Own Id: OTP-9197</p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.8.3</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
The scroll wheel now scrolls the werl window on Windows.</p>
<p>
Own Id: OTP-8985</p>
</item>
<item>
<p>
Some malformed distribution messages could cause VM to
crash, this is now corrected.</p>
<p>
Own Id: OTP-8993</p>
</item>
<item>
<p>
The OS function getifaddrs() can return NULL in some
address fields for e.g PPP and tunnel devices which
caused the emulator to segfault. This bug has now been
corrected.</p>
<p>
Own Id: OTP-8996</p>
</item>
<item>
<p>
The expression <<A:0>> would always produce
an empty binary, even if <c>A</c> was not an integer.
Corrected to cause a <c>badarg</c> exception if the type
of <c>A</c> is invalid. (Thanks to Zvi.)</p>
<p>
Own Id: OTP-8997</p>
</item>
<item>
<p>
A bug that potentially could cause an emulator crash when
deleting an ETS-table has been fixed. A resource leak
when hitting the maximum amount of ETS-tables allowed has
also been fixed.</p>
<p>
Own Id: OTP-8999</p>
</item>
<item>
<p>
A bug in the <c>exit/2</c> BIF could potentially cause an
emulator crash.</p>
<p>
Own Id: OTP-9005</p>
</item>
<item>
<p>
Due to a bug in glibc the runtime system could abort
while trying to destroy a mutex. The runtime system will
now issue a warning instead of aborting.</p>
<p>
Own Id: OTP-9009</p>
</item>
<item>
<p>
A bug in epmd could create strange behaviour when
listen() calls failed. This is now corrected thanks to
Steve Vinoski.</p>
<p>
Own Id: OTP-9024</p>
</item>
<item>
<p>When setting file_info the win32_driver will now
correctly set access and modified time. Previously these
entities were swapped.</p>
<p>
Own Id: OTP-9046</p>
</item>
<item>
<p>
Setting scheduler bind type to <c>unbound</c> failed if
binding of schedulers wasn't supported, or if CPU
topology wasn't present. This even though the
documentation stated that it is possible to set the bind
type to <c>unbound</c>.</p>
<p>
Own Id: OTP-9056 Aux Id: Seq11779 </p>
</item>
<item>
<p>Two problems were fixed in crash dump: The time left
for timers are now shown as unsigned integers and the
contents of ordered_set ETS tables is no longer
included.</p>
<p>
Own Id: OTP-9057</p>
</item>
<item>
<p>
The VM could fail to set IP_TOS and SO_PRIORITY in
certain situations, either because sockets were supplied
as open file descriptors, or because SO_PRIORITY by
default was set higher than the user can explicitly set
it to. Those situations are now handled.</p>
<p>
Own Id: OTP-9069</p>
</item>
<item>
<p>
Wx on MacOS X generated complains on stderr about certain
cocoa functions not beeing called from the "Main thread".
This is now corrected.</p>
<p>
Own Id: OTP-9081</p>
</item>
<item>
<p>
Fix a couple typos in driver_entry(3) (thanks to Tuncer
Ayaz).</p>
<p>
Own Id: OTP-9085</p>
</item>
<item>
<p>
Mention that "-detached" implies "-noinput"</p>
<p>
Clarify that specifying "-noinput" is unnecessary if the
"-detached" flag is given. (thanks to Holger Weiß)</p>
<p>
Own Id: OTP-9086</p>
</item>
<item>
<p>
A potential problem (found by code inspection) when
calling a fun whose code was not loaded has been fixed.</p>
<p>
Own Id: OTP-9095</p>
</item>
<item>
<p>
The emulator could get into a state where it didn't check
for I/O.</p>
<p>
Own Id: OTP-9105 Aux Id: Seq11798 </p>
</item>
<item>
<p>
Attempting to create binaries exceeding 2Gb (using for
example <c>term_to_binary/1</c>) would crash the emulator
with an attempt to allocate huge amounts of memory.
(Thanks to Jon Meredith.)</p>
<p>
Own Id: OTP-9117</p>
</item>
<item>
<p>
Fix erlang:hibernate/3 on HiPE enabled emulator (Thanks
to Paul Guyot)</p>
<p>
Own Id: OTP-9125</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>From this release, the previously experimental
halfword emulator is now official. It can be enabled by
giving the <c>--enable-halfword-emulator</c> option to
the <c>configure</c> script.</p>
<p>The halfword emulator is a 64-bit application, but
uses halfwords (32-bit words) for all data in Erlang
processes, therefore using less memory and being faster
than the standard 64-bit emulator. The total size of all
BEAM code and all process data for all processes is
limited to 4Gb, but ETS tables and off-heap binaries are
only limited by the amount of available memory.</p>
<p>
Own Id: OTP-8941</p>
</item>
<item>
<p>
32-bit atomic memory operations have been introduced
internally in the run time system, and are now used where
appropriate. There were previously only atomic memory
operations of word size available. The 32-bit atomic
memory operations slightly reduce memory consumption, and
slightly improve performance on 64-bit runtime systems.</p>
<p>
Own Id: OTP-8974</p>
</item>
<item>
<p>
Performance enhancements for looking up timer-entries and
removing timers from the wheel.</p>
<p>
Own Id: OTP-8990</p>
</item>
<item>
<p>
Write accesses to ETS tables have been optimized by
reducing the amount of atomic memory operations needed
during a write access.</p>
<p>
Own Id: OTP-9000</p>
</item>
<item>
<p>
Strange C coding in the VM made the -D_FORTIFY_SOURCE
option to gcc-4.5 react badly. The code is now cleaned up
so that it's accepted by gcc-4.5.</p>
<p>
Own Id: OTP-9025</p>
</item>
<item>
<p>
The memory footprint for loaded code has been somewhat
reduced (especially in the 64-bit BEAM machine).</p>
<p>
Own Id: OTP-9030</p>
</item>
<item>
<p>
The maximum number of allowed arguments for an Erlang
function has been lowered from 256 to 255, so that the
number of arguments can now fit in a byte.</p>
<p>
Own Id: OTP-9049</p>
</item>
<item>
<p>
Dependency generation for Makefiles has been added to the
compiler and erlc. See the manual pages for