This document describes the changes made to the Kernel application.
Refactored an internal API.
Own Id: OTP-14784
Processes which did output after switching jobs (Ctrl+G) could be left forever stuck in the io request.
Own Id: OTP-14571 Aux Id: ERL-472
Lock counting can now be fully toggled at runtime in
the lock counting emulator (
Own Id: OTP-13170
Own Id: OTP-14412
General Unicode improvements.
Own Id: OTP-14462
The documentation for the 'quiet' option in disk_log:open/1 had an incorrect default value.
Own Id: OTP-14498
Function
Function
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-13006 Aux Id: ERIERL-20, ERL-429
Fix bug where gethostname would incorrectly fail with enametoolong on Linux.
Own Id: OTP-14310
Fix bug causing
Own Id: OTP-14390
Add early reject of invalid node names from distributed nodes.
Own Id: OTP-14426
Since Unicode is now allowed in atoms an extra check is needed for node names, which are restricted to Latin-1.
Own Id: OTP-13805
Replaced usage of deprecated symbolic
Own Id: OTP-13831 Aux Id: OTP-13735
Own Id: OTP-13909
The performance of the
Own Id: OTP-14057 Aux Id: PR-1245
Functions for detecting changed code has been added.
Own Id: OTP-14059
Introduce an event manager in Erlang to handle OS signals. A subset of OS signals may be subscribed to and those are described in the Kernel application.
Own Id: OTP-14186
Sockets can now be bound to device (SO_BINDTODEVICE) on platforms where it is supported.
This has
been implemented e.g to support VRF-Lite under Linux; see
Own Id: OTP-14357 Aux Id: PR-1326
Added option to store shell_history on disk so that the history can be reused between sessions.
Own Id: OTP-14409 Aux Id: PR-1420
The size of crash reports created by
The crash report generated by
The new
function
Own Id: OTP-14417
One of the ETS tables used by the
Own Id: OTP-14419
Warnings have been added to the relevant documentation about not using un-secure distributed nodes in exposed environments.
Own Id: OTP-14425
Fix a race during cleanup of os:cmd that would cause os:cmd to hang indefinitely.
Own Id: OTP-14232 Aux Id: seq13275
The functions in the '
Own Id: OTP-14191
Two OTP processes that are known to receive many messages are 'rex' (used by 'rpc') and 'error_logger'. Those processes will now store unprocessed messages outside the process heap, which will potentially decrease the cost of garbage collections.
Own Id: OTP-14192
Own Id: OTP-13920 Aux Id: ERL-267
Add lost runtime dependency to erts-8.1. This should have been done in kernel-5.1 (OTP-19.1) as it cannot run without at least erts-8.1 (OTP-19.1).
Own Id: OTP-14003
Type and doc for gen_{tcp,udp,sctp}:controlling_process/2 has been improved.
Own Id: OTP-14022 Aux Id: PR-1208
Fix a memory leak when calling seq_trace:get_system_tracer().
Own Id: OTP-13742
Fix for the problem that when adding the ebin directory
of an application to the code path, the
Own Id: OTP-13758 Aux Id: ERL-195
Fix code_server crash when adding code paths of two levels.
Own Id: OTP-13765 Aux Id: ERL-194
Respect -proto_dist switch while connection to EPMD
Own Id: OTP-13770 Aux Id: PR-1129
Fixed a bug where init:stop could deadlock if a process with infinite shutdown timeout (e.g. a supervisor) attempted to load code while terminating.
Own Id: OTP-13802
Close stdin of commands run in os:cmd. This is a backwards compatibility fix that restores the behaviour of pre 19.0 os:cmd.
Own Id: OTP-13867 Aux Id: seq13178
Add
Own Id: OTP-13564
Rudimentary support for DSCP has been implemented
in the guise of a
Own Id: OTP-13582
When calling os:cmd from a process that has set trap_exit to true an 'EXIT' message would be left in the message queue. This bug was introduced in kernel vsn 5.0.1.
Own Id: OTP-13813
Fix a os:cmd bug where creating a background job using & would cause os:cmd to hang until the background job terminated or closed its stdout and stderr file descriptors. This bug has existed from kernel 5.0.
Own Id: OTP-13741
The handling of
Own Id: OTP-12593
Own Id: OTP-13409
On Windows, for modules that were loaded early (such
as the
Own Id: OTP-13410
Make file:datasync use fsync instead of fdatasync on Mac OSX.
Own Id: OTP-13411
The default chunk size for the fallback sendfile implementation, used on platforms that do not have a native sendfile, has been decreased in order to reduce connectivity issues.
Own Id: OTP-13444
Large file writes (2Gb or more) could fail on some Unix platforms (for example, OS X and FreeBSD).
Own Id: OTP-13461
A bug has been fixed where the DNS resolver inet_res did not refresh its view of the contents of for example resolv.conf immediately after start and hence then failed name resolution. Reported and fix suggested by Michal Ptaszek in GitHUB pull req #949.
Own Id: OTP-13470 Aux Id: Pull #969
Fix process leak from global_group.
Own Id: OTP-13516 Aux Id: PR-1008
The function
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-13622 Aux Id: PR-1065
The
Own Id: OTP-13631 Aux Id: PR-911
Add {line_delim, byte()} option to inet:setopts/2 and decode_packet/3
Own Id: OTP-12837
Added
The perf_counter is a very very cheap and high resolution timer that can be used to timestamp system events. It does not have monoticity guarantees, but should on most OS's expose a monotonous time.
Own Id: OTP-12908
The os:cmd call has been optimized on unix platforms to be scale better with the number of schedulers.
Own Id: OTP-13089
New functions that can load multiple modules at once
have been added to the '
Own Id: OTP-13111
The code path cache feature turned out not to be very useful in practice and has been removed. If an attempt is made to enable the code path cache, there will be a warning report informing the user that the feature has been removed.
Own Id: OTP-13191
When an attempt is made to start a distributed Erlang node with the same name as an existing node, the error message will be much shorter and easier to read than before. Example:
Own Id: OTP-13294
The output of the default error logger is somewhat prettier and easier to read. The default error logger is used during start-up of the OTP system. If the start-up fails, the output will be easier to read.
Own Id: OTP-13325
The functions
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-13449
Update the error reasons in dist_util, and show them in the logs if net_kernel:verbose(1) has been called.
Own Id: OTP-13458
Experimental support for Unix Domain Sockets has been
implemented. Read the sources if you want to try it out.
Example:
Own Id: OTP-13572 Aux Id: PR-612
Allow heart to be configured to not kill the previous emulator before calling the HEART_COMMAND. This is done by setting the environment variable HEART_NO_KILL to TRUE.
Own Id: OTP-13650
Also corrected specs for code loading functions and added more information in the documentation about the error reasons returned by code-loading functions.
Own Id: OTP-9375
Own Id: OTP-13254 Aux Id: OTP-11997, OTP-13222
Correct the contract for
Own Id: OTP-13335 Aux Id: ERL-95
Time warp safety improvements.
Introduced the options
Introduced the option
Own Id: OTP-13222 Aux Id: OTP-11997
Add validation callback for heart
The erlang heart process may now have a validation callback installed. The validation callback will be executed, if present, before any heartbeat to heart port program. If the validation fails, or stalls, no heartbeat will be sent and the node will go down.
With the option
Own Id: OTP-13250
Clarify documentation of
Own Id: OTP-13299
EPMD supports both IPv4 and IPv6
Also affects oldest supported windows version.
Own Id: OTP-13364
Host name lookups though inet_res, the Erlang DNS resolver, are now done case insensitively according to RFC 4343. Patch by Holger Weiß.
Own Id: OTP-12836
IPv6 distribution handler has been updated to share code with IPv4 so that all features are supported in IPv6 as well. A bug when using an IPv4 address as hostname has been fixed.
Own Id: OTP-13040
Caching of host names in the internal DNS resolver inet_res has been made character case insensitive for host names according to RFC 4343.
Own Id: OTP-13083
Cooked file mode buffering has been fixed so file:position/2 now works according to Posix on Posix systems i.e. when file:position/2 returns an error the file pointer is unaffected.
The Windows system documentation, however, is unclear on this point so the documentation of file:position/2 still does not promise anything.
Cooked file mode file:pread/2,3 and file:pwrite/2,3 have been corrected to honor character encoding like the combination of file:position/2 and file:read/2 or file:write/2 already does. This is probably not very useful since the character representation on the caller's side is latin1, period.
Own Id: OTP-13155 Aux Id: PR#646
Add {line_delim, byte()} option to inet:setopts/2 and decode_packet/3
Own Id: OTP-12837
A mechanism for limiting the amount of text that the built-in error logger events will produce has been introduced. It is useful for limiting both the size of log files and the CPU time used to produce them.
This mechanism is experimental in the sense that it may be changed if it turns out that it does not solve the problem it is supposed to solve. In that case, there may be backward incompatible improvements to this mechanism.
See the documentation for the config parameter
Own Id: OTP-12864
Fix error handling in
Own Id: OTP-12144
Introduce
Own Id: OTP-12342
It is now possible to paste text in JCL mode (using Ctrl-Y) that has been copied in the previous shell session. Also a bug that caused the JCL mode to crash when pasting text has been fixed.
Own Id: OTP-12673
Ensure that each segment of an IPv6 address when parsed from a string has a maximum of 4 hex digits
Own Id: OTP-12773
New BIF:
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-12151 Aux Id: seq12521
The internal group to user_drv protocol has been changed to be synchronous in order to guarantee that output sent to a process implementing the user_drv protocol is printed before replying. This protocol is used by the standard_output device and the ssh application when acting as a client.
This change changes the previous unlimited buffer when printing to standard_io and other devices that end up in user_drv to 1KB.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-12240
The
Own Id: OTP-12564
Map error logger warnings to warning messages by default.
Own Id: OTP-12755
Map beam error logger warnings to warning messages by default. Previously these messages were mapped to the error channel by default.
Own Id: OTP-12781
gen_tcp:shutdown/2 is now asynchronous
This solves the following problems with the old implementation:
It doesn't block when the TCP peer is idle or slow. This is the expected behaviour when shutdown() is called: the caller needs to be able to continue reading from the socket, not be prevented from doing so.
It doesn't truncate the output. The current version of gen_tcp:shutdown/2 will truncate any outbound data in the driver queue after about 10 seconds if the TCP peer is idle of slow. Worse yet, it doesn't even inform anyone that the data has been truncated: 'ok' is returned to the caller; and a FIN rather than an RST is sent to the TCP peer.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-12797
There are many cases where user code needs to be able to distinguish between a socket that was closed normally and one that was aborted. Setting the option {show_econnreset, true} enables the user to receive ECONNRESET errors on both active and passive sockets.
Own Id: OTP-12843
The 'raw' socket option could not be used multiple times in one call to any e.g gen_tcp function because only one of the occurrences were used. This bug has been fixed, and also a small bug concerning propagating error codes from within inet:setopts/2.
Own Id: OTP-11482 Aux Id: seq12872
A bug causing an infinite loop in hostname resolving has been corrected. To trigger this bug you would have to enter an bogus search method from a configuration file e.g .inetrc.
Bug pinpointed by Emil Holmström
Own Id: OTP-12133
The standard_error process now handles the getopts I/O protocol request correctly and stores its encoding in the same way as standard_io.
Also, io:put_chars(standard_error, [oops]) could previously crash the standard_error process. This is now corrected.
Own Id: OTP-12424
Configuration parameters for the Kernel application that allows setting socket options for the distribution sockets have been added. See the application Kernel documentation; parameters 'inet_dist_listen_options' and 'inet_dist_connect_options'.
Own Id: OTP-12476 Aux Id: OTP-12476
Make sure to install .hrl files when needed
Own Id: OTP-12197
Removed the undocumented application environment variable 'raw_files' from the kernel application. This variable was checked (by call to application:get_env/2) each time a raw file was to be opened in the file module.
Own Id: OTP-12276
A bug has been fixed when using the netns option to gen_udp, which accidentally only worked if it was the last option.
Own Id: OTP-12314
Updated documentation for inet buffer size options.
Own Id: OTP-12296
Introduce new option 'raw' in file_info and link_info functions. This option allows the caller not to go through the file server for information about files guaranteed to be local.
Own Id: OTP-12325
Accept inet:ip_address() in net_adm:names/1
Own Id: OTP-12154
OTP-11850 fixed filelib:wildcard/1 to work with broken symlinks. This correction, however, introduced problems since symlinks were no longer followed for functions like filelib:ensure_dir/1, filelib:is_dir/1, filelib:file_size/1, etc. This is now corrected.
Own Id: OTP-12054 Aux Id: seq12660
If the Config given to application_controller:change_application_data included other config files, it was only expanded for already existing (loaded) applications. If an upgrade added a new application which had config data in an included config file, the new application did not get correct config data.
This is now changed so config data will be expanded for all applications.
Own Id: OTP-11864
It was allowed to re-load pre-loaded modules such as
Own Id: OTP-11913
Fix erts_debug:size/1 to handle Map sizes
Own Id: OTP-11923
The documentation for
Own Id: OTP-11982
Fixed a deadlock possibility in terminate application
Own Id: OTP-11171
Fixed bug where sendfile would return the wrong error code for a remotely closed socket if the socket was in passive mode. (Thanks to Vincent Siliakus for reporting the bug.)
Own Id: OTP-11614
The new option
Own Id: OTP-11708
The spec for file:set_cwd/1 is modified to also accept binaries as arguments. This has always been allowed in the code, but it was not reflected in the spec since binaries are mostly used for raw file names. Raw file names are names that are not encoded according to file:native_name_encoding(), and these are not allowed in file:set_cwd/1. The spec is now, however, more allowing in order to avoid unnecessary dialyzer warnings. Raw file names will still fail in runtime with reason 'no_translation'. (Thanks to José Valim)
Own Id: OTP-11787
heart:set_cmd/1 is updated to allow unicode code points > 255 in the given heart command
Own Id: OTP-10843
Dialyzer's
Own Id: OTP-10908
Make erlang:open_port/2 spawn and spawn_executable handle unicode.
Own Id: OTP-11105
Erlang/OTP has been ported to the realtime operating system OSE. The port supports both smp and non-smp emulator. For details around the port and how to started see the User's Guide in the ose application.
Note that not all parts of Erlang/OTP has been ported.
Notable things that work are: non-smp and smp emulators, OSE signal interaction, crypto, asn1, run_erl/to_erl, tcp, epmd, distribution and most if not all non-os specific functionality of Erlang.
Notable things that does not work are: udp/sctp, os_mon, erl_interface, binding of schedulers.
Own Id: OTP-11334
Add the {active,N} socket option for TCP, UDP, and SCTP, where N is an integer in the range -32768..32767, to allow a caller to specify the number of data messages to be delivered to the controlling process. Once the socket's delivered message count either reaches 0 or is explicitly set to 0 with inet:setopts/2 or by including {active,0} as an option when the socket is created, the socket transitions to passive ({active, false}) mode and the socket's controlling process receives a message to inform it of the transition. TCP sockets receive {tcp_passive,Socket}, UDP sockets receive {udp_passive,Socket} and SCTP sockets receive {sctp_passive,Socket}.
The socket's delivered message counter defaults to 0, but it can be set using {active,N} via any gen_tcp, gen_udp, or gen_sctp function that takes socket options as arguments, or via inet:setopts/2. New N values are added to the socket's current counter value, and negative numbers can be used to reduce the counter value. Specifying a number that would cause the socket's counter value to go above 32767 causes an einval error. If a negative number is specified such that the counter value would become negative, the socket's counter value is set to 0 and the socket transitions to passive mode. If the counter value is already 0 and inet:setopts(Socket, [{active,0}]) is specified, the counter value remains at 0 but the appropriate passive mode transition message is generated for the socket.
Thanks to Steve Vinoski
Own Id: OTP-11368
A call to either the
The
Characteristics impact: A call to the
Own Id: OTP-11388 Aux Id: OTP-11535, OTP-11648
Add sync option to file:open/2.
The sync option adds the POSIX O_SYNC flag to the open system call on platforms that support the flag or its equivalent, e.g., FILE_FLAG_WRITE_THROUGH on Windows. For platforms that don't support it, file:open/2 returns {error, enotsup} if the sync option is passed in. Thank to Steve Vinoski and Joseph Blomstedt
Own Id: OTP-11498
The contract of
Thanks to Max Treskin.
Own Id: OTP-11730
When using gen_tcp:connect and the
Own Id: OTP-12061
Fix the typespec for the inet:ifget/2 and inet:ifget/3 return value. Thanks to Ali Sabil.
Own Id: OTP-11377
Fix various typos in erts, kernel and ssh. Thanks to Martin Hässler.
Own Id: OTP-11414
Fix rpc multicall sample code. Thanks to Edwin Fine.
Own Id: OTP-11471
Under rare circumstances a process calling
Own Id: OTP-11491
Add more SCTP errors as described in RFC 4960. Thanks to Artem Teslenko.
Own Id: OTP-11379
Add new BIF os:unsetenv/1 which deletes an environment variable. Thanks to Martin Hässler.
Own Id: OTP-11446
Fix indentation of User switch command help in Erlang shell. Thanks to Sylvain Benner.
Own Id: OTP-11209
The previous undocumented function ntoa/1 has been added to inet docs and exported in the inet module.
Own Id: OTP-10676 Aux Id: OTP-10314
Fix typo in abcast() function comment. Thanks to Johannes Weissl.
Own Id: OTP-11219
Add application:ensure_all_started/1-2. Thanks to Fred Hebert.
Own Id: OTP-11250
Make edlin understand a few important control keys. Thanks to Stefan Zegenhagen.
Own Id: OTP-11251
Cleanup of hipe_unified_loader, eliminating uses of is_subtype/2 in specs, change module-local void functions to return 'ok' instead of [] and made sure there are no dialyzer warnings with --Wunmatched_returns. Thanks to Kostis Sagonas.
Own Id: OTP-11301
A bug in prim_inet has been corrected. If the port owner was killed at a bad time while closing the socket port the port could become orphaned hence causing port and socket leaking. Reported by Fred Herbert, Dmitry Belyaev and others.
Own Id: OTP-10497 Aux Id: OTP-10562
A few bugs regarding case sensitivity for hostname resolution while using e.g the internal lookup types 'file' and 'dns' has been corrected. When looking up hostnames ASCII letters a-z are to be regarded as the same as A-Z according to RFC 4343 "Domain Name System (DNS) Case Insensitivity Clarification", and this was not always the case.
Own Id: OTP-10689 Aux Id: seq12227
Add
Own Id: OTP-10910
Optimize communication with file io server. Thanks to Anthony Ramine.
Own Id: OTP-11040
Erlang source files with non-ASCII characters are now encoded in UTF-8 (instead of latin1).
Own Id: OTP-11041 Aux Id: OTP-10907
Optimization of simultaneous
Impact on the characteristics of the system: Improved performance.
Own Id: OTP-11074
The
Own Id: OTP-11075 Aux Id: OTP-10336
Fix deep list argument error under Windows in os:cmd/1. Thanks to Aleksandr Vinokurov .
Own Id: OTP-11104
A bug that could cause a crash with wrong reason has
been corrected in the
Own Id: OTP-10754
Fix
Own Id: OTP-10870
Respect
Own Id: OTP-10879
Slightly nicer error message when node start fails due to duplicate name. Thanks to Magnus Henoch.
Own Id: OTP-10797
Miscellaneous updates due to Unicode support.
Own Id: OTP-10820
Add a new function code:get_mode() can be used to detect how the code servers behaves. Thanks to Vlad Dumitrescu
Own Id: OTP-10823
Fix type of error Reason on gen_tcp:send/2. Thanks to Sean Cribbs.
Own Id: OTP-10839
Own Id: OTP-10852
It is no longer possible to have
This was earlier possible, although never documented in
the .app file reference manual. It was however visible in
the documentation of
The possibility has been removed since the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-10417
The contract of
Own Id: OTP-10473
Change printout of application crash message on startup to formated strings (Thanks to Serge Aleynikov)
Own Id: OTP-10620
The type
Own Id: OTP-10624 Aux Id: kunagi-352 [263]
Inet exported functionality
inet:parse_ipv4_address/1, inet:parse_ipv4strict_address/1, inet:parse_ipv6_address/1, inet:parse_ipv6strict_address/1, inet:parse_address/1 and inet:parse_strict_address is now exported from the inet module.
Own Id: OTP-8067 Aux Id: kunagi-274 [185]
A boolean socket option 'ipv6_v6only' for IPv6 sockets
has been added. The default value of the option is OS
dependent, so applications aiming to be portable should
consider using
Own Id: OTP-8928 Aux Id: kunagi-193 [104]
Support for Unicode has been implemented.
Own Id: OTP-10302
The documentation for
Own Id: OTP-10419
Fixed bug where sendfile on oracle solaris would return an error when a partial send was done.
Own Id: OTP-10549
The
Own Id: OTP-10617 Aux Id: kunagi-340 [251]
Where necessary a comment stating encoding has been added to Erlang files. The comment is meant to be removed in Erlang/OTP R17B when UTF-8 becomes the default encoding.
Own Id: OTP-10630
Do not return wrong terms unnecessarily. (Thanks to Kostis Sagonas.)
Own Id: OTP-10662
Some examples overflowing the width of PDF pages have been corrected.
Own Id: OTP-10665
Add file:allocate/3 operation
This operation allows pre-allocation of space for files. It succeeds only on systems that support such operation. (Thanks to Filipe David Manana)
Own Id: OTP-10680
Add application:get_key/3. The new function provides a default value for a configuration parameter. Thanks to Serge Aleynikov.
Own Id: OTP-10694
Add search to Erlang shell's history. Thanks to Fred Herbert.
Own Id: OTP-10739
Ensure 'erl_crash.dump' when asked for it. This will change erl_crash.dump behaviour.
* Not setting ERL_CRASH_DUMP_SECONDS will now terminate beam immediately on a crash without writing a crash dump file.
* Setting ERL_CRASH_DUMP_SECONDS to 0 will also terminate beam immediately on a crash without writing a crash dump file, i.e. same as not setting ERL_CRASH_DUMP_SECONDS environment variable.
* Setting ERL_CRASH_DUMP_SECONDS to a negative value will let the beam wait indefinitely on the crash dump file being written.
* Setting ERL_CRASH_DUMP_SECONDS to a positive value will let the beam wait that many seconds on the crash dump file being written.
A positive value will set an alarm/timeout for restart both in beam and in heart if heart is running.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-10422 Aux Id: kunagi-250 [161]
Fixed issue where using controlling_process/2 with self() as the second argument caused the port to leak if self() crashes. (Thanks to Ricardo Catalinas Jiménez)
Own Id: OTP-10094
When sending large files using the file:sendfile fallback file:sendfile would crash. This is now fixed.
Own Id: OTP-10098
Fix rpc:call/5 for local calls with a finite Timeout (Thanks to Tomer Chachamu)
Own Id: OTP-10149
fix escript/primary archive reloading
If the mtime of an escript/primary archive file changes after being added to the code path, correctly reload the archive and update the cache. (Thanks to Tuncer Ayaz)
Own Id: OTP-10151
Support added for home directories named with non-ASCII characters (codepoints above 127) on a system running in Unicode file mode (e.g. on MacOSX or Linux with startup arguments +fnu or +fna with the right LOCALE). Also environment variables with Unicode content are supported in applicable environments.
Own Id: OTP-10160
Allow mixed IPv4 and IPv6 addresses to sctp_bindx
Also allow mixed address families to bind, since the first address on a multihomed sctp socket must be bound with bind, while the rest are to be bound using sctp_bindx. At least Linux supports adding address of mixing families. Make inet_set_faddress function available also when HAVE_SCTP is not defined, since we use it to find an address for bind to be able to mix ipv4 and ipv6 addresses. Thanks to Tomas Abrahamsson
Own Id: OTP-10217
Document inet options: high_watermark, priority, linger and a some other options that previously was undocumented.
Own Id: OTP-10053
Remove bit8 option support from inet
Own Id: OTP-10056
The type of the disk log header has been corrected. (Thanks to Niclas Eklund.)
Own Id: OTP-10131
Driver output has been corrected so output of large binaries (> 4 GiB) now does not silently fail or crash the emulator, but either outputs the binary or fails the call. This means that writing a binary > 4 Gib to file now works but on e.g 64-bit Windows (that has scatter/gather I/O buffer segment lengths of 32 bits) fails. The behaviour may change in the future to always write the binary, in parts if necessary.
Own Id: OTP-9820 Aux Id: OTP-9795
erts: minor fix for unnecessary condition erts: change SENDFILE_CHUNK_SIZE from signed to unsigned (Thanks to jovi zhang)
Own Id: OTP-9872
Two contracts in
Own Id: OTP-9874
If a process calls a module with an running on_load
handler, the process is supposed to be suspended. But if
the module with the on_load handler was loading used
Own Id: OTP-9875
File name and error reason is now returned if creation of a cookie fails. (Thanks to Magnus Henoch)
Own Id: OTP-9954
Fix port leak in
Own Id: OTP-9981
Various typographical errors corrected in documentation for the global, error_logger, etop, lists, ets and supervisor modules and in the c_portdriver and kernel_app documentation. (Thanks to Ricardo Catalinas Jiménez)
Own Id: OTP-9987
Fix returned error from gen_tcp:accept/1,2 when running out of ports.
The {error, enfile} return value is badly misleading and confusing for this case, since the Posix ENFILE errno value has a well-defined meaning that has nothing to do with Erlang ports. The fix changes the return value to {error, system_limit}, which is consistent with e.g. various file(3) functions. inet:format_error/1 has also been updated to support system_limit in the same manner as file:format_error/1. (Thanks to Per Hedeland)
Own Id: OTP-9990
Own Id: OTP-9991
In some cases when the process doing file:sendfile crashes while sending the file the efile_drv code would not clean up after itself correctly. This has now been fixed.
Own Id: OTP-9993
On BSD based platforms file:sendfile would sometime go into an infinite loop when sending big files. This has now been fixed.
Own Id: OTP-9994
While
The problem was addressed in OTP-9764, but the situation was not improved in all cases.
(Thanks to Richard Carlsson.)
Own Id: OTP-9999 Aux Id: OTP-9764
The documentation of .app files incorrectly said that the
default value for the
Own Id: OTP-10002
Calls to
The reason for not doing this earlier is that setting
a global lock masked out a bug concerning the restart of
supervised children. The bug has now been fixed by a
modification of
A minor race conditions in
The undocumented function
Own Id: OTP-9212 Aux Id: seq7117, OTP-4174
Honor option
Own Id: OTP-9389
The message
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-9508
Environment variable 'shutdown_timeout' is added to kernel application. Earlier, application_controller would hang forever if an application top supervisor did not terminate upon a shutdown request. If this new environment variable is set to a positive integer T, then application controller will now give up after T milliseconds and instead brutally kill the application. For backwards compatibility, the default value for shutdown_timeout is 'infinity'.
Own Id: OTP-9540
Add '-callback' attributes in stdlib's behaviours
Replace the behaviour_info(callbacks) export in stdlib's behaviours with -callback' attributes for all the callbacks. Update the documentation with information on the callback attribute Automatically generate 'behaviour_info' function from '-callback' attributes
'behaviour_info(callbacks)' is a special function that is defined in a module which describes a behaviour and returns a list of its callbacks.
This function is now automatically generated using the '-callback' specs. An error is returned by lint if user defines both '-callback' attributes and the behaviour_info/1 function. If no type info is needed for a callback use a generic spec for it. Add '-callback' attribute to language syntax
Behaviours may define specs for their callbacks using the familiar spec syntax, replacing the '-spec' keyword with '-callback'. Simple lint checks are performed to ensure that no callbacks are defined twice and all types referred are declared.
These attributes can be then used by tools to provide documentation to the behaviour or find discrepancies in the callback definitions in the callback module.
Add callback specs into 'application' module in kernel Add callback specs to tftp module following internet documentation Add callback specs to inets_service module following possibly deprecated comments
Own Id: OTP-9621
make tab completion work in remote shells (Thanks to Mats Cronqvist)
Own Id: OTP-9673
Add missing parenthesis in heart doc.
Add missing spaces in the Reference Manual distributed section.
In the HTML version of the doc those spaces are necessary to separate those words.
Own Id: OTP-9693
Fixes net_kernel:get_net_ticktime() doc
Adds missing description when `ignored' is returned. (Thanks to Ricardo Catalinas Jiménez )
Own Id: OTP-9713
While
Own Id: OTP-9764
Correct callback spec in application module
Refine warning about callback specs with extra ranges
Cleanup autoimport compiler directives
Fix Dialyzer's warnings in typer
Fix Dialyzer's warning for its own code
Fix bug in Dialyzer's behaviours analysis
Fix crash in Dialyzer
Variable substitution was not generalizing any unknown variables.
Own Id: OTP-9776
Fix a crash when file:change_time/2,3 are called with invalid dates
Calling file:change_time/2,3 with an invalid date tuple (e.g file:change_time("file.txt", {undefined, undefined})) will cause file_server_2 to crash. error_logger will shutdown and the whole VM will stop. Change behavior to validate given dates on system boundaries. (i.e before issuing a server call).(Thanks to Ahmed Omar)
Own Id: OTP-9785
An option list argument can now be passed to
Own Id: OTP-7687
Own Id: OTP-9023
gen_sctp:open/0-2 may now return {error,eprotonosupport} if SCTP is not supported
gen_sctp:peeloff/1 has been implemented and creates a one-to-one socket which also are supported now
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-9239
Sendfile has been added to the file module's API. sendfile/2 is used to read data from a file and send it to a tcp socket using a zero copying mechanism if available on that OS.
Thanks to Tuncer Ayaz and Steve Vinovski for original implementation
Own Id: OTP-9240
Tuple funs (a two-element tuple with a module name and a
function) are now officially deprecated and will be
removed in R16. Use '
Own Id: OTP-9649
Fix type of Packet arg of gen_tcp:send/2 and gen_udp:send/4
The type is marked as a binary() or a string() but in practice it can be an iodata(). The test suite was updated to confirm the gen_tcp/2 and gen_udp:send/4 functions accept iodata() (iolists) packets. (Thanks to Filipe David Manana)
Own Id: OTP-9514
XML files have been corrected.
Own Id: OTP-9550 Aux Id: OTP-9541
The types and specifications of the inet modules have been improved.
Own Id: OTP-9260
Types and specifications have been added.
Own Id: OTP-9356
Contracts in STDLIB and Kernel have been improved and type errors have been corrected.
Own Id: OTP-9485
Update documentation and specifications of some of the zlib functions.
Own Id: OTP-9506
The send_timeout option in gen_tcp did not work properly in active mode or with {active,once} options. This is now corrected.
Own Id: OTP-9145
Fixed various typos across the documentation (Thanks to Tuncer Ayaz)
Own Id: OTP-9154
Fix typo in doc of rpc:pmap/3 (Thanks to Ricardo Catalinas Jiménez)
Own Id: OTP-9168
A bug in inet_res, the specialized DNS resolver, has been corrected. A late answer with unfortunate timing could cause a runtime exception. Some code cleanup and improvements also tagged along. Thanks to Evegeniy Khramtsov for a pinpointing bug report and bug fix testing.
Own Id: OTP-9221 Aux Id: OTP-8712
Types and specifications have been added.
Own Id: OTP-9268
Erlang types and specifications are used for documentation.
Own Id: OTP-9272
Two opaque types that could cause warnings when running Dialyzer have been modified.
Own Id: OTP-9337
Own Id: OTP-8983 Aux Id: seq11749
Fix -spec for file:write_file/3
Change type for second parameter from binary() to iodata(), since the function explicitly takes steps to accept lists as well as binaries. (thanks to Magnus Henoch).
Own Id: OTP-9067
Sanitize the specs of the code module
After the addition of unicode_binary() to the file:filename() type, dialyzer started complaining about erroneous or incomplete specs in some functions of the 'code' module. The culprit was hard-coded information in erl_bif_types for functions of this module, which were not updated. Since these functions have proper specs these days and code duplication (pun intended) is never a good idea, their type information was removed from erl_bif_types.
While doing this, some erroneous comments were fixed in the code module and also made sure that the code now runs without dialyzer warnings even when the -Wunmatched_returns option is used.
Some cleanups were applied to erl_bif_types too.
Own Id: OTP-9100
- Add spec for function that does not return - Strenghen spec - Introduce types to avoid duplication in specs - Add specs for functions that do not return - Add specs for behaviour callbacks - Simplify two specs
Own Id: OTP-9127
The Erlang VM now supports Unicode filenames. The feature is turned on by default on systems where Unicode filenames are mandatory (Windows and MacOSX), but can be enabled on other systems with the '+fnu' emulator option. Enabling the Unicode filename feature on systems where it is not default is however considered experimental and not to be used for production. Together with the Unicode file name support, the concept of "raw filenames" is introduced, which means filenames provided without implicit unicode encoding translation. Raw filenames are provided as binaries, not lists. For further information, see stdlib users guide and the chapter about using Unicode in Erlang. Also see the file module manual page.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8887
There is now a new function inet:getifaddrs/0 modeled after C library function getifaddrs() on BSD and LInux that reports existing interfaces and their addresses on the host. This replaces the undocumented and unsupported inet:getiflist/0 and inet:ifget/2.
Own Id: OTP-8926
In embedded mode, on_load handlers that called
Also extended the
Own Id: OTP-8902 Aux Id: seq11703
Fixed: inet:setopts(S, [{linger,{true,2}}]) returned {error,einval} for SCTP sockets. The inet_drv had a bug when checking the option size.
Own Id: OTP-8726 Aux Id: seq11617
gen_udp:connect/3 was broken for SCTP enabled builds. It did not detect remote end errors as it should.
Own Id: OTP-8729
reference() has been substituted for ref() in the documentation.
Own Id: OTP-8733
A bug introduced in kernel-2.13.5.3 has been fixed. If
running
Own Id: OTP-8787 Aux Id: seq11657, OTP-8643
inet:getsockopt for SCTP sctp_default_send_param had a bug to not initialize required feilds causing random answers. It is now corrected.
Own Id: OTP-8795 Aux Id: seq11655
For a socket in the HTTP packet mode, the return value
from
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8831
Even when configuring erlang with --enable-native-libs, the native code for modules loaded very early (such as lists) would not get loaded. This has been corrected. (Thanks to Paul Guyot.)
Own Id: OTP-8750
The undocumented function inet:ifget/2 has been improved to return interface hardware address (MAC) on platforms supporting getaddrinfo() (such as BSD unixes). Note it still does not work on all platforms for example not Windows nor Solaris, so the function is still undocumented.
Buffer overflow and field init bugs for inet:ifget/2 and inet:getservbyname/2 has also been fixed.
Thanks to Michael Santos.
Own Id: OTP-8816
As a usability improvement the 'inet6' option to functions gen_tcp:listen/2, gen_tcp:connect/3-4, gen_udp:open/2 and gen_sctp:open/1-2 is now implicit if the address argument or the 'ip' option contain an IPv6 address (8-tuple).
Own Id: OTP-8822
os:find_executable can now be fed with the complete name of the executable on Windows and still find it. I.e os:find_executable("werl.exe") will work as os:find_executable("werl").
Own Id: OTP-3626
The shell's line editing has been improved to more resemble the behaviour of readline and other shells. (Thanks to Dave Peticolas)
Own Id: OTP-8635
Under certain circumstances the net kernel could hang. (Thanks to Scott Lystig Fritchie.)
Own Id: OTP-8643 Aux Id: seq11584
The kernel DNS resolver was leaking one or two ports if the DNS reply could not be parsed or if the resolver(s) caused noconnection type errors. Bug now fixed. A DNS specification borderline truncated reply triggering the port leakage bug has also been fixed.
Own Id: OTP-8652
As of this version, the global name server no longer supports nodes running Erlang/OTP R11B.
Own Id: OTP-8527
The file module's functions write,read and read_line now handles named io_servers like 'standard_io' and 'standard_error' correctly.
Own Id: OTP-8611
The functions file:advise/4 and file:datasync/1 have been added. (Thanks to Filipe David Manana.)
Own Id: OTP-8637
When exchanging groups between nodes
Own Id: OTP-8653
There is a new option 'exclusive' to file:open/2 that uses the OS O_EXCL flag where supported to open the file in exclusive mode.
Own Id: OTP-8670
A bug introduced in Kernel 2.13.5.2 has been fixed.
Own Id: OTP-8686 Aux Id: OTP-8643
Under certain circumstances the net kernel could hang. (Thanks to Scott Lystig Fritchie.)
Own Id: OTP-8643 Aux Id: seq11584
A race condition in
Own Id: OTP-8502
A race bug affecting
Own Id: OTP-8358
The loading of native code was not properly atomic in the SMP emulator, which could cause crashes. Also a per-MFA information table for the native code has now been protected with a lock since it turns that it could be accessed concurrently in the SMP emulator. (Thanks to Mikael Pettersson.)
Own Id: OTP-8397
user.erl (used in oldshell) is updated to handle unicode in prompt strings (io:get_line/{1,2}). io_lib is also updated to format prompts with the 't' modifier (i.e. ~ts instead of ~s).
Own Id: OTP-8418 Aux Id: OTP-8393
The resolver routines failed to look up the own node name as hostname, if the OS native resolver was erroneously configured, bug reported by Yogish Baliga, now fixed.
The resolver routines now tries to parse the hostname as an IP string as most OS resolvers do, unless the native resolver is used.
The DNS resolver inet_res and file resolver inet_hosts now do not read OS configuration files until they are needed. Since the native resolver is default, in most cases they are never needed.
The DNS resolver's automatic updating of OS configuration file data (/etc/resolv.conf) now uses the 'domain' keyword as default search domain if there is no 'search' keyword.
Own Id: OTP-8426 Aux Id: OTP-8381
The expected return value for an on_load function has been changed. (See the section about code loading in the Reference manual.)
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8339
Explicit top directories in archive files are now optional.
For example, if an archive (app-vsn.ez) just contains an app-vsn/ebin/mod.beam file, the file info for the app-vsn and app-vsn/ebin directories are faked using the file info from the archive file as origin. The virtual direcories can also be listed. For short, the top directories are virtual if they does not exist.
Own Id: OTP-8387
Own Id: OTP-8413
There are new
Own Id: OTP-8414
A link in
Own Id: OTP-8198
A ticker process could potentially be blocked indefinitely trying to send a tick to a node not responding. If this happened, the connection would not be brought down as it should.
Own Id: OTP-8218
A bug in
Own Id: OTP-8259
The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.
Own Id: OTP-8201
The top directory in archive files does not need to have
a
Own Id: OTP-8266
The -on_load() directive can be used to run a function when a module is loaded. It is documented in the section about code loading in the Reference Manual.
Own Id: OTP-8295
The DNS resolver client inet_res has been rewritten, documented and released. See inet_res(3) and Erts User's Guide: Inet configuration.
It can formally not be incompatible with respect to earlier versions since there was no earlier official version. However it was used before and some details have changed.
Configuration now initializes from /etc/resolv.conf and /etc/hosts on all unix platforms regardless of which distribution mode the node is started in. The directory (/etc) these files are supposed to reside in can be changed via an environment variable. These configuration file locations can also be changed in the inet configuration. The files are monitored for change and re-read, which makes a few resolver configuration variables out of application control. The /etc/hosts entries have now their own cache table that is shadowed (with lookup method 'file' is used) by the application configured host entries. This problem (that inet_res configuration only worked for distribution mode long names) was among other reported by Matthew O'Gorman many moons ago.
The lookup methods are still 'native' only per default. Resolver configuration is done on all Unix platforms just to get a usable configuration for direct calls to inet_res.
The functions
Users of previous unsupported versions of inet_res have included internal header files to get to the internal record definitions in order to examine DNS replies. This is still unsupported and there are access functions in inet_dns to use instead. These are documented in inet_res(3).
Bug fix: a compression reference loop would make DNS message decoding loop forever. Problem reported by Florian Weimer.
Bug fix and patch suggestion by Sergei Golovan: configuring IPv6 nameservers did not work. His patch (as he warned) created many UDP sockets; one per nameserver. This has been fixed in the released version.
Improvement:
Improvement: now
Warning: some of the ancient and exotic record types
handled by
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7955 Aux Id: OTP-7107 OTP-6852
A TCP socket with option
Own Id: OTP-8102
The file module has now a read_line/1 function similar to the io:get_line/2, but with byte oriented semantics. The function file:read_line/1 works for raw files as well, but for good performance it is recommended to use it together with the 'read_ahead' option for raw file access.
Own Id: OTP-8108
A bug when doing io:get_line (among other calls) from a file opened with encoding other than latin1, causing false unicode errors to occur, is now corrected.
Own Id: OTP-7974
Added functionality to get higher resolution timestamp from system. The erlang:now function returns a timestamp that's not always consistent with the actual operating system time (due to resilience against large time changes in the operating system). The function os:timestamp/0 is added to get a similar timestamp as the one being returned by erlang:now, but untouched by Erlangs time correcting and smoothing algorithms. The timestamp returned by os:timestamp is always consistent with the operating systems view of time, like the calendar functions for getting wall clock time, but with higher resolution. Example of usage can be found in the os manual page.
Own Id: OTP-7971
Many concurrent calls to
Own Id: OTP-7890 Aux Id: seq11219
Fixed hanging early RPC that did IO operation during node start.
Own Id: OTP-7903 Aux Id: seq11224
The error behavior of gen_tcp and gen_udp has been corrected. gen_tcp:connect/3,4 and gen_udp:send/4 now returns {error,eafnosupport} for conflicting destination address versus socket address family. Other corner cases for IP address string host names combined with not using the native (OS) resolver (which is not default) has also been changed to return {error,nxdomain} instead of {error,einval}. Those changes just may surprise old existing code. gen_tcp:listen/2 and gen_udp:open/2 now fails for conflicting local address versus socket address family instead of trying to use an erroneous address. Problem reported by Per Hedeland.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7929
Several glitches and performance issues in the Unicode and I/O-system implementation of R13A have been corrected.
Own Id: OTP-7896 Aux Id: OTP-7648 OTP-7887
The unsupported DNS resolver client inet_res has now been improved to handle NAPTR queries.
Own Id: OTP-7925 Aux Id: seq11231
The old Erlang DNS resolver inet_res has been corrected to handle TXT records with more than one character string. Patch courtesy of Geoff Cant.
Own Id: OTP-7588
When chunk reading a disk log opened in read_only mode, bad terms could crash the disk log process.
Own Id: OTP-7641 Aux Id: seq11090
Own Id: OTP-7647
The gen_sctp option sctp_peer_addr_params, #sctp_paddrparams{address={IP,Port} was erroneously decoded in the inet driver. This bug has now been corrected.
Own Id: OTP-7755
Erlang programs can now access STDERR on platforms where such a file descriptor is available by using the io_server 'standard_error', i.e. io:format(standard_error,"~s~n",[ErrorMessage]),
Own Id: OTP-6688
The format of the string returned by
Own Id: OTP-7649
As of this version, the global name server no longer supports nodes running Erlang/OTP R10B.
Own Id: OTP-7661
A
Own Id: OTP-7725
The deprecated functions
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7812
Nodes belonging to different independent clusters can now co-exist on the same host with the help of a new environment variable setting ERL_EPMD_PORT.
Own Id: OTP-7826
The copyright notices have been updated.
Own Id: OTP-7851
When chunk reading a disk log opened in read_only mode, bad terms could crash the disk log process.
Own Id: OTP-7641 Aux Id: seq11090
Calling
Own Id: OTP-7731 Aux Id: seq11161
The documentation of
Own Id: OTP-7537
The listen socket used for the distributed Erlang protocol now uses the socket option 'reuseaddr', which is useful when you force the listen port number using kernel options 'inet_dist_listen_min' and 'inet_dist_listen_max' and restarts a node with open connections.
Own Id: OTP-7563
Fixed memory leak of unclosed TCP-ports. A gen_tcp:send() followed by a failing gen_tcp:recv() could in some cases cause the port to linger after being closed.
Own Id: OTP-7615
Processes spawned using
Also, if
The reason for the change is that keeping the initial fun (or a fun in an argument list), would prevent upgrading the code for the module. A secondary reason is that keeping the fun and function arguments could waste a significant amount of memory.
The drawback with the change is that the crash reports
will provide less precise information about the initial
call (only
Own Id: OTP-7531 Aux Id: seq11036
Own Id: OTP-7542
There is now experimental support for loading of code
from archive files. See the documentation of
The error handling of
An
An
An
The internal module
Own Id: OTP-7548 Aux Id: otp-6622
Own Id: OTP-7561
In the job control mode, the "s" and "r" commands now take an optional argument to specify which shell to start. (Thanks to Robert Virding.)
Own Id: OTP-7617
Own Id: OTP-7618
Large files are now handled on Windows, where the filesystem supports it.
Own Id: OTP-7410
New BIF
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7404
Setting the
Own Id: OTP-7520
SCTP_ADDR_CONFIRMED events are now handled by gen_sctp.
Own Id: OTP-7276
When leaving a process group with
Own Id: OTP-7277
In the Erlang shell, using up and down arrow keys, the wrong previous command could sometimes be retrieved.
Own Id: OTP-7278
The documentation for
Own Id: OTP-7279 Aux Id: seq10927
In the SMP emulator, there was small risk that
Own Id: OTP-7282
Own Id: OTP-7359
Additional library directories can now be specified in
the environment variable ERL_LIBS. See the manual page
for the
Own Id: OTP-6940
crypto and zlib drivers improved to allow concurrent smp access.
Own Id: OTP-7262
There is a new function
Own Id: OTP-7308
The
Own Id: OTP-7358
Own Id: OTP-7283
A bug caused by a race condition involving
Own Id: OTP-7209 Aux Id: seq10890
The beta testing module
Try it, give comments and send in bug reports!
Own Id: OTP-7225
The scale factor returned by
Own Id: OTP-7175
Updated the documentation for
Own Id: OTP-7186
A process executing the
The documentation of the
Own Id: OTP-7213
Own Id: OTP-7244
The
Own Id: OTP-7167
Fixed a problem in group that could cause the ssh server to lose answers or hang.
Own Id: OTP-7185 Aux Id: seq10871
file:read/2 and file:consult_stream/1,3 did not use an empty prompt on I/O devices. This bug has now been corrected.
Own Id: OTP-7013
The sctp driver has been updated to work against newer lksctp packages e.g 1.0.7 that uses the API spelling change adaption -> adaptation. Older lksctp (1.0.6) still work. The erlang API in gen_sctp.erl and inet_sctp.hrl now spells 'adaptation' regardless of the underlying C API.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7120
The documentation has been updated so as to reflect
the last updates of the Erlang shell as well as the minor
modifications of the control sequence
Superfluous empty lines have been removed from code examples and from Erlang shell examples.
Own Id: OTP-6944 Aux Id: OTP-6554, OTP-6911
Own Id: OTP-7009
A bug for raw files when reading 0 bytes returning 'eof' instead of empty data has been corrected.
Own Id: OTP-6291 Aux Id: OTP-6967
A bug in gen_udp:fdopen reported by David Baird and also found by Dialyzer has been fixed.
Own Id: OTP-6836 Aux Id: OTP-6594
Calling
Own Id: OTP-6884 Aux Id: seq10767
The global name server now ignores
Own Id: OTP-6931
file:write_file/3, file:write/2 and file:read/2 could crash (contrary to documentation) for odd enough file system problems, e.g write to full file system. This bug has now been corrected.
In this process the file module has been rewritten to produce better error codes. Posix error codes now originate from the OS file system calls or are generated only for very similar causes (for example 'enomem' is generated if a memory allocation fails, and 'einval' is generated if the file handle in Erlang is a file handle but currently invalid).
More Erlang-ish error codes are now generated. For
example
The possibility to write
a single byte using
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6967 Aux Id: OTP-6597 OTP-6291
Monitor messages produced by the system monitor functionality, and garbage collect trace messages could contain erroneous heap and/or stack sizes when the actual heaps and/or stacks were huge.
As of erts version 5.6 the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6974 Aux Id: seq10796
Own Id: OTP-7003
Minor documentation corrections for file:pread/2 and file:pread/3.
Own Id: OTP-6853
The deprecated functions
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6886
Contract directives for modules in Kernel and STDLIB.
Own Id: OTP-6895
The functions io:columns/0, io:columns/1, io:rows/0 and io:rows/1 are added to allow the user to get information about the terminal geometry. The shell takes some advantage of this when formatting output. For regular files and other io-devices where height and width are not applicable, the functions return {error,enotsup}.
Potential incompatibility: If one has written a custom io-handler, the handler has to either return an error or take care of io-requests regarding terminal height and width. Usually that is no problem as io-handlers, as a rule of thumb, should give an error reply when receiving unknown io-requests, instead of crashing.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6933
The undocumented and unsupported functions
Own Id: OTP-6938
Added new checksum combine functions to
Own Id: OTP-6970
The
Own Id: OTP-6975
All functions in the
Dialyzer will generally emit warnings for any calls that use undocumented argument types. Even if the call happens to still work in R12B, you should correct your code. A future release will adhere to the documentation.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6983
The kernel parameter dist_auto_connect once could fail to block a node if massive parallel sends were issued during a transient failure of network communication
Own Id: OTP-6893 Aux Id: seq10753
The internal (rarely used) DNS resolver has been modified to not use the domain search list when asked to resolve an absolute name; a name with a terminating dot. There was also a bug causing it to create malformed DNS queries for absolute names that has been corrected, correction suggested by Scott Lystig Fritchie. The code has also been corrected to look up cached RRs in the same search order as non-cached, now allows having the root domain among the search domains, and can now actually do a zone transfer request.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6806 Aux Id: seq10714 EABln35459
zlib:close/1 would leave an EXIT message in the message queue if the calling process had the trap_exit flag enabled.
Own Id: OTP-6811
The documentation of
Own Id: OTP-6745 Aux Id: OTP-6715
The shell has been updated to fix the following flaws: Shell process exit left you with an unresponsive initial shell if not using oldshell. Starting a restricted shell with a nonexisting callback module resulted in a shell where no commands could be used, not even init:stop/0. Fun's could not be used as parameters to local shell functions (in shell_default or user_default) when restricted_shell was active.
Own Id: OTP-6537
The undocumented feature gen_tcp:fdopen/2 was broken in R11B-4. It is now fixed again.
Own Id: OTP-6615
Corrected cancellation of timers in three places in the inet_res module. (Problem found by Dialyzer.)
Own Id: OTP-6676
Corrected protocol layer flue for socket options SO_LINGER, SO_SNDBUF and SO_RCVBUF, for SCTP.
Own Id: OTP-6625 Aux Id: OTP-6336
The behaviour of the inet option {active,once} on peer close is improved and documented.
Own Id: OTP-6681
The inet option send_timeout for connection oriented sockets is added to allow for timeouts in communicating send requests to the underlying TCP stack.
Own Id: OTP-6684 Aux Id: seq10637 OTP-6681
Minor Makefile changes.
Own Id: OTP-6689 Aux Id: OTP-6742
The documentation of
Own Id: OTP-6715
process_flag/2 accepts the new flag
Own Id: OTP-6592 Aux Id: seq10555
A bug in gen_udp:open that broke the 'fd' option has been fixed.
Own Id: OTP-6594 Aux Id: seq10619
Added a warning to the documentation for the
Own Id: OTP-4575 Aux Id: seq7693
A bug in
Own Id: OTP-6380 Aux Id: seq10534
Names registered by calling
Own Id: OTP-6428
When setting the kernel configuration parameter
Changing this behavior can be viewed as a backward
incompatible change. Instead a new value
Own Id: OTP-6445
Clarified the documentation for
Own Id: OTP-6466
Own Id: OTP-6508
An interface towards the SCTP Socket API Extensions has been implemented.It is an Open Source patch courtesy of Serge Aleynikov and Leonid Timochouk. The Erlang code parts has been adapted by the OTP team, changing the Erlang API somewhat.
The Erlang interface consists of the module
The delivered Open Source patch, before the OTP team
rewrites, was written according to
The SCTP interface is in beta state. It has only been hand tested and has no automatic test suites in OTP meaning everything is most certainly not tested. Socket active mode is broken. IPv6 is not tested. The documentation has been reworked due to the API changes, but has not been proofread after this.
Thank you from the OTP team to Serge Aleynikov and Leonid Timochouk for a valuable contribution. We hope we have not messed it up too much.
Own Id: OTP-6336
A
Own Id: OTP-6434
Monitoring of nodes has been improved. Now the following
properties apply to
Own Id: OTP-6481
Setting and getting socket options in a "raw" fashion is now allowed. Using this feature will inevitably produce non portable code, but will allow setting ang getting arbitrary uncommon options on TCP stacks that do have them.
Own Id: OTP-6519
Dialyzer warnings have been eliminated.
Own Id: OTP-6523
The documentation for
Own Id: OTP-6535
An erroneous packet size could be used for the first messages passed through a newly established connection between two Erlang nodes. This could cause messages to be discarded, or termination of the connection.
Own Id: OTP-6473
On Unix, the
Own Id: OTP-6368
More interfaces are added in erl_ddll, to support different usage scenarios.
Own Id: OTP-6307 Aux Id: OTP-6234
Locks set by calling
Own Id: OTP-6341 Aux Id: seq10445
Behavior in case of disappeared nodes when using he dist_auto_connect once got changed in R11B-1. The timeouts regarding normal distributed operations is now reverted to the old (pre R11B-1).
Own Id: OTP-6258 Aux Id: OTP-6200, seq10449
Start-up problems for the internal process used by the
Own Id: OTP-6286
Code cleanup: the old internal obsolete file_server has been removed. It was only used when communicating with R7 and older nodes.
Own Id: OTP-6245
Trying to open a non-existent or badly formed disk log
no longer results in a crash report. In particular,
Own Id: OTP-6278 Aux Id: seq10421
There are new BIFs
The
Own Id: OTP-6281
To help Dialyzer find more bugs, many functions in the Kernel and STDLIB applications now only accept arguments of the type that is documented.
For instance, the functions
Also, the
Dialyzer will find most cases where those functions are passed arguments of the wrong type.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6295
There is now an option read_packets for UDP sockets that sets the maximum number of UDP packets that will be read for each invocation of the socket driver.
Own Id: OTP-6249 Aux Id: seq10452
In R11B-0, the erl_ddll server process is always started.
Despite that, the configuration parameter
Own Id: OTP-6163
The kernel option {dist_auto_connect,once} could block out nodes that had never been connected, causing persistent partitioning of networks. Furthermore, partial restarts of networks could cause inconsistent global name databases. Both problems are now solved.
Own Id: OTP-6200 Aux Id: seq10377
Late arriving tcp_closed and udp_closed messages are now removed from the message queue of a process calling gen_tcp:close/1, gen_udp:close/1, and inet:close/1.
Own Id: OTP-6197
When repairing a disk log with a corrupt index file (caused by for instance a hard disk failure) the old contents of the index file is kept unmodified. This will make repeated attempts to open the disk log fail every time.
Own Id: OTP-5558 Aux Id: seq9823
Previously
The new behavior of
NOTE: This change can cause some obscure code to fail which previously did not. For example, the following code might hang:
Mon = erlang:monitor(process, Pid),
%% ...
exit(Pid, bang),
erlang:demonitor(Mon),
receive
{'DOWN', Mon, process, Pid, _} -> ok
%% We were previously guaranteed to get a down message
%% (since we exited the process ourself), so we could
%% in this case leave out:
%% after 0 -> ok
end,
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5772
The behavior when an application fails to start and possibly causes the runtime system to halt has been cleaned up, including fixing some minor bugs.
Redundant calls to
The changes only affects the contents of the error messages and crashdump file slogan.
Own Id: OTP-5964
The
The documentation for the
Furthermore, the
Own Id: OTP-6033
Removed some unused functions from
Own Id: OTP-3889
Global no longer allows the registration of a process
under more than one name. If the old (buggy) behavior is
desired the Kernel application variable
Own Id: OTP-5640 Aux Id: OTP-5603
The (slightly misleading) warnings that was shown when
the
Own Id: OTP-5947
The
Own Id: OTP-6037
Added
Own Id: OTP-6100 Aux Id: OTP-5772
Large files (more than 2 GBytes) are now handled on Solaris 8.
Own Id: OTP-5849 Aux Id: seq10157
During startup, a garbage
Own Id: OTP-5978 Aux Id: OTP-5974
Own Id: OTP-5889
Own Id: OTP-5959
Corrected the start of code server to use reference-tagged
tuples to ensure that an unexpected message sent to
the parent process does not cause a halt of the system.
Also removed the useless
Own Id: OTP-5974 Aux Id: seq10243, OTP-5978
A bug in
Own Id: OTP-5792 Aux Id: OTP-5563
If an
Own Id: OTP-5809
Bug fixes:
Own Id: OTP-5810
The functions
Own Id: OTP-5814
If there were user-defined variables in the boot script,
and their values were not provided using
the
The
Own Id: OTP-5828 Aux Id: seq10151
Minor corrections in the description of open modes. (Thanks to Richard Carlsson.)
Own Id: OTP-5856
Example: If the (permanent) application
rather than the previous "
Own Id: OTP-5811
Timers could sometimes timeout too early. This bug has now been fixed.
Automatic cancellation of timers created by
In order to be able to maintain a larger amount of timers without increasing the maintenance cost, the internal timer wheel and bif timer table have been enlarged.
Also a number of minor bif timer optimizations have been implemented.
Own Id: OTP-5795 Aux Id: OTP-5090, seq8913, seq10139, OTP-5782
Documentation improvements:
- documentation for
- command line flag
-
-
Own Id: OTP-5847
Several bug fixes and improvements in the global name
registration facility (see
As of this version,
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5563
The functions
Own Id: OTP-5737
The
The reason for the change is that validation could cause the following sequence of calls to fail:
Own Id: OTP-5743
The previously undocumented and UNSUPPORTED
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5715
Added
Own Id: OTP-5724 Aux Id: seq10083
Improved documentation regarding synchronized start of
applications with included applications (using start
phases and
Own Id: OTP-5754
New socket options
Own Id: OTP-5756
The global name server has been optimized when it comes to maintaining a fully connected network.
Own Id: OTP-5770
The native resolver has gotten an control API for
extended debugging and soft restart. It is:
Own Id: OTP-5751 Aux Id: EABln25013
If several processes (at the same node) simultaneously
tried to start the same distributed application, this
could lead to
Own Id: OTP-5606 Aux Id: seq9838
The manual pages for most of the Kernel and some of the STDLIB modules have been updated, in particular regarding type definitions.
The documentation of the return value for
The documentation for
Own Id: OTP-5360
When the native resolver fails a
Own Id: OTP-5598 Aux Id: OTP-5576
Replaced some tuple funs with the new
The high-order functions in the
Unused, broken compatibility code in the
Eliminated 5 discrepancies found by Dialyzer in the Appmon application.
Own Id: OTP-5633
The possibility to have comments following the list of
tuples in a config file (file specified with
the
Own Id: OTP-5661 Aux Id: seq10003
'
Own Id: OTP-5543
A bug regarding tcp sockets which results in hanging
Corrected a bug in the (undocumented and unsupported)
option
Updated the documentation regarding the second argument to
Own Id: OTP-5582 Aux Id: seq9839
At startup, the Erlang resolver hosts table was used to look up the name of the local (and possibly stand alone) host. This was incorrect. The configured resolver method is now used for this purpose.
Own Id: OTP-5393
The
Added a note to the documentation of the
Added more information about the
Own Id: OTP-5555
The new
The new type test
Own Id: OTP-5584
According to the documentation
In OTP R11B
Own Id: OTP-5603
In case of a DNS lookup loop,
Own Id: OTP-5449
When doing an
Own Id: OTP-5576
Under certain circumstances the
Own Id: OTP-5396
Removed description of the
Own Id: OTP-5497
Eliminated Dialyzer warnings (caused by dead code) in
the
Own Id: OTP-5496
Own Id: OTP-5512
The
Own Id: OTP-5388
The possibility to start the Erlang shell in parallel
with the rest of the system was reintroduced for backwards
compatibility in STDLIB 1.13.1. The flag to be used for
this is now called
Own Id: OTP-5406 Aux Id: OTP-5218
Documentation for
Updated documentation for
Own Id: OTP-5391
Own Id: OTP-5374
The application master for an application now terminates the application faster, which reduces the risk for timeouts in other parts of the system.
Own Id: OTP-5363 Aux Id: EABln19084
A BIF
Own Id: OTP-5376 Aux Id: OTP-5257
With the
Own Id: OTP-5260
The unsupported and undocumented modules
Own Id: OTP-5266
The Pman 'trace shell' functionality was broken and has now been fixed. Furthermore, Pman could not correctly find the pid of the active shell if more than one shell process was running on the node. This has also been corrected.
Own Id: OTP-5191
The documentation for the
Own Id: OTP-5208
Corrected the
Own Id: OTP-5227
You can now start Erlang with the
erl -sname this_node -rsh other_node@other_host
Own Id: OTP-5210
If
Own Id: OTP-5212 Aux Id: seq7128
The documentation for BIFs that take I/O lists have
been clarified. Those are
Documentation for all
Removed the documentation for
Own Id: OTP-5222