| Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
| Name: erlang-diameter | Distribution: openSUSE Tumbleweed |
| Version: 27.3.4 | Vendor: openSUSE |
| Release: 1.1 | Build date: Fri May 9 08:19:01 2025 |
| Group: Unspecified | Build host: reproducible |
| Size: 1460427 | Source RPM: erlang-27.3.4-1.1.src.rpm |
| Packager: http://bugs.opensuse.org | |
| Url: https://www.erlang.org | |
| Summary: Main API of the Diameter application | |
This module provides the interface with which a user can implement a Diameter node that sends and receives messages using the Diameter protocol as defined in RFC 6733.
Apache-2.0
* Fri May 09 2025 Matwey Kornilov <matwey.kornilov@gmail.com>
- Changes for 27.3.4:
* ssh: Fix KEX strict implementation according to draft-miller-
sshm-strict-kex-01 document.
* kernel: With this change, disk_log will not crash when using
chunk_step/3 after log size was decreased.
* kernel: With this change, disk_log will not run into infinite
loop when using chunk/2,3 after log size was decreased.
* erts: Fixed an emulator crash when setting an error_handler
module that was not yet loaded.
* erts: Fixed a rare bug that could cause an emulator crash after
unloading a module or erasing a persistent_term.
* xmerl: A new option to discard whitespace before the xml tag
when reading from a stream has been added to the Xmerl SAX
parser.
* Sat Apr 19 2025 Matwey Kornilov <matwey.kornilov@gmail.com>
- Changes for 27.3.3:
* kernel: Fixed bug in call_memory tracing that could cause
wildly incorrect reported memory values. Bug exists since OTP
27.1.
* megaco: Corrected type spec for type mid().
* erts: Fixed bug in call_memory tracing that could cause wildly
incorrect reported memory values. Bug exists since OTP 27.1.
* ssh: Reception of wrong Unicode does not cause unnecessary
processing. US-ASCII fields are not decoded as Unicode.
* ssh: SSH daemon disconnects upon receiving connection protocol
message for unauthenticated used.
* ssl: Lower log level for user cancelation as this is not an
error case. Also handle possible undecrypted close alert
during TLS-1.3 handshake.
- Changes for 27.3.2:
* kernel: On Windows, using socket:sendv, a large IOV (size >
MAX), the tail was not sent.
* kernel: gen_tcp connect with a sockaddr with loopback address
failed.
* kernel: Remove debug printouts from gen_tcp_socket
* xmerl: Corrected faulty type specification
* asn1: Negative REAL numbers greater than -1 would be
incorrectly encoded (the minus sign would be lost).
* megaco: Correct type spec for ActionReply
* erts: On Windows, using socket:sendv, a large IOV (size > MAX),
the tail was not sent.
* erts: Uplift pcre 8.44 to pcre 8.45
* snmp: When manager receives an v3 inform (request) it used
engine-id and full address (including port number) to check if
engine was known. This did not work if agent used ephemeral
ports for notifications. Has now been changed to only use
(context) engine-id and address (without port).
* snmp: Fixed snmp_generic (dialyzer) spec for function
table_func.
* compiler: Fix the compiler crash when the inner-most tuple in a
nested tuple with 3 layers is updated.
* ssl: Correct the debug functionality for NSS keylogging for
TLS-1.3 introduced in OTP-27.3.1 so that TLS-1.3 key updates
items always get correct counter value and each item is logged
as one single line.
* Mon Mar 31 2025 matwey.kornilov@gmail.com
- Changes for 27.3.1:
* stdlib: Fixed crash when fetching initial_call when user code
have modified the process_dictionary.
* erts: Behavior for socket:recv/3 has been improved. The
behavior has also been clarified in the documentation.
* erts: Trace messages due to receive tracing could potentially
be delayed a very long time if the traced process waited in a
receive expression without clauses matching on messages (timed
wait), or just did not enter a receive expression for a very
long time.
* erts: Improve the naming of the (internal) esock mutex(es). It
is now possible to configure (as in autoconf) the use of simple
names for the esock mutex(es).
* kernel: Behavior for socket:recv/3 has been improved. The
behavior has also been clarified in the documentation.
* kernel: An infinite loop in CNAME loop detection that can cause
Out Of Memory has been fixed. This affected CNAME lookup with
the internal DNS resolver.
* mnesia: With this change mnesia will merge schema of tables
using external backends.
* ssh: Reception of malicious KEX init message does not result
with ssh daemon excessive memory usage.
* ssh: Call to ssh:daemon_replace_options does not crash when
argument is not a valid daemon ref.
* asn1: The JER backend will now include the SIZE constraint in
the type info for OCTET STRINGs, and a SIZE constraint with a
range will now be included for BIT STRINGs. This does not
change the actual encoding or decoding of JER, but can be
useful for tools.
* asn1: When using the JSON encoding rules, it is now possible to
call the decode/2 function in the following way with data that
has already been decoded by json:decode/1:
* ssl: Correct handling of unassigned signature algorithms to
properly ignore them instead of failing the handshake.
* ssl: Update key mechanism in CRL cache so that CRL DP with same
URI path component becomes distinguishable from each other.
* ssl: Add callback for NSS keylogging so that it can work as
expected for all scenarios.
* Mon Mar 17 2025 matwey.kornilov@gmail.com
- Changes for 27.3:
* ssl: The function for selecting the best server certificate
and key pair has been enhanced when several options are
available to ensure that the fallback will not always be
chosen.
* ssl: Avoided duplicating a few algorithms in default values
caused by an interoperability workaround not needed in this
case.
* ssl: Fixed two alert bugs, which could result in a crash
instead of an alert.
* syntax_tools: Annotation of maybe expressions has been
corrected.
* crypto: crypto will now work when ED25519 and X25519 are
available while ED448 and X448 are not, which is the case in
LibreSSL. This is necessary for supporting TLS1.3 using
LibreSSL.
* compiler: The beam_validator pass in the compiler that
validates generated BEAM now does stronger checks for binary
syntax matching.
* common_test: Reduced the memory usage when testcases prints a
lot to the log.
* common_test: Fixed the built-in hook cth_surefire to not crash
when a group within a skipped group is skipped.
* erts: Fixed failed runtime assert in debug VM when built with
statically linked NIFs.
* erts: Fixed a bug where reading a binary from m:persistent_term
could cause a segmentation fault on Windows. This bug was
introduced in Erlang/OTP 27.0.
* erts: Fixed a crash in erlexec (an executable used by erl
during startup) when a PATH longer than 10240 was set.
* erts: Fixed bug in erlang:halt. Two processes calling
erlang:halt at the same time could lead to one of them crashing
with badarg as if it called erlang:halt(undefined,undefined).
* erts: Fixed BEAM crash when a custom thread sends a large map
(>128 keys) externally encoded with, for example,
erl_drv_send_term().
* kernel: Clarify inet:setopts documentation
* kernel: Fix bug where log printouts would go missing when
application_controller is stopping while log messages are being
sent.
* kernel: Fixes a bug in the socket type spec, which caused
Dialyzer to reject some valid programs.
* asn1: Multiple bugs in decoding of the REAL type has been
eliminated. Also, the documentation for REAL has been updated
to mention the special values 0, PLUS-INFINITY, and MINUS-
INFINITY.
* xmerl: Some old-style catch expressions in the xmerl_sax_parser
when the continuation fun was called caused the stack to grow
until all free memory was exhausted. These parts have been
rewritten so that the parser now runs correctly without growing
the stack. At the same time all old-style catch expressions in
xmerl were replaced with try/catch.
* ssh: Minor documentation improvements.
* ssh: Function specification for ssh_sftp:start_channel/2 is
fixed.
* stdlib: Fixed argparse:help/2 to accept the program name as
part of the command path.
* stdlib: Fixed argparse:format_help/2 crash on 'hidden' command.
* stdlib: Fixed the type specification for timer:sleep/1 by
adding the value infinity to its input type.
* stdlib: Eliminated a crash in zip:unzip/1 while unzipping an
archive where a directory within was read-only. This bug was
introduced in Erlang/OTP 27.1.
* stdlib: Fixed map comprehension result when a key value is
replaced.
* stdlib: Fixed string:jaro_similarity/1 for matching strings of
length 1.
* mnesia: Mnesia could fail to load a table, if one of the copy
holders was moved during startup.
* Sat Mar 01 2025 matwey.kornilov@gmail.com
- Changes for 27.2.4:
* ssh: SFTP packets exceeding max packet size are not processed
and dropped. (bsc#1237467, CVE-2025-26618)
* snmp: SNMP Agent transports type (intAgentTransports) was
incorrectly not documented as a list of transports. Also add a
couple of config file generation examples.
- Changes for 27.2.3:
* inets: Improved robustness of httpd startup procedure.
* ssl: Setting protocol version to a lower value then supported
by default in server API function called after ssl:listen/2
could result in wrong default values being used and connections
failing with insufficient security.
* ssl: Improve error handling of server name indication fun. This
implies that if the sni_fun returns undefined we will attempt
connection with original option values, if it returns
unrecognized we end the connection with UNRECOGNIZED_NAME alert
and if provided options fail option verification we will end
the connection with a HANDSHAKE_FAILURE and an error log.
- Changes for 27.2.2:
* compiler: Eliminated a bug in the alias analysis pass that
could potentially cause unsafe optimizations of binary
construction or record updates.
* erts: Disabled an unsafe runtime optimization in binary
construction that caused silent memory corruption.
* public_key: Consider keyCertSign to compatible with extended
key usage for TLS client/server auth in CAs, adhere to wide
spread implementations
* kernel: Fixed a couple of bugs that could make global's
internal state inconsistent when a connection was reconnected.
* ssl: An initiated handshake should always be closed with an
alert, some corner cases have been fixed so that this should
always be the case.
* ssl: Correct option handling to work properly for paused
handshaking. Could result in unwanted alerts or or error
messages.
* Tue Feb 18 2025 Jan Engelhardt <jengelh@inai.de>
- Enable verbose mode of the Makefiles so as to show commands
being executed.
- During build, use find -exec rather than complicated passing
via xargs.
* Mon Feb 03 2025 matwey.kornilov@gmail.com
- Changes for 27.2.1:
* ssh: With this change, type specs for ssh:connection_info/1,2
functions are fixed so they include {error, term()} return
value.
* ssh: With this change, ssh client accepts a banner sent during
processing keyboard interactive user authentication.
* ssh: With this change, large sftp transfers does not hang.
Redundant window adjustment are not requested.
* tftp: Fix specs in tftp:read_file function.
* common_test: Common test will now not crash when running tests
with otp26 and earlier, while having previous test resuts from
otp27.
* erts: Fixed configure tests for GCC 14
* erts: Fix bug where log printouts would go missing when
application_controller is stopping while log messages are being
sent.
* dialyzer: Fixed a crash caused by the use of opaque types.
* kernel: Fix the default group_leader to reply {error,request}
on invalid I/O requests instead of crashing.
- Changes for 27.2:
* os_mon: Fixed the m:memsup memory alarm to use available_memory
when available, instead of always using free_memory.
* ssh: Documentation is polished after OTP-27 migration to
markdown.
* compiler: Fixed a crash in the common sub-expression
elimination pass.
* compiler: Fixed a bug where bogus code was generated for
consecutive calls to erlang:setelement/2, potentially crashing
the runtime system.
* compiler: When the line_coverage option was used, exceptions
could show the wrong line for where the exception was raised.
* compiler: The line_coverage option would be ignored if given in
a compile() attribute within a module.
* compiler: A segment matching a float in a binary generator will
now skip any invalid float (such as a NaN) and continue
matching the rest of the binary. Before this correction, the
comprehension would stop as soon as an invalid float was
encountered.
* observer: In the Memory tab of crashdump_viewer, the blocks
sizes in Allocator Summary would all be N/A.
* observer: The Kernel application now recognizes the epmd_module
and erl_epmd_listen_port parameters, similar to
- kernel:connect_all.
* stdlib: Made it possible to expand help text displayed by
pressing ^[h by pressing ^[h again.
* stdlib: Defining a fun in the shell using the syntax fun
Name/Arity would fail. This has been corrected so that the
following now works:
* stdlib: Fixed a bug where completion of 'fun(' would cause the
shell to crash.
* stdlib: Fixed a bug causing the shell to crash while trying to
complete an expression starting with a '/' or a variable
followed by '(' or '/'. E.g. Foo/ and Foo(.
* stdlib: zip:extract/2 with keep_old_files now respects the cwd
option.
* stdlib: Fixed an error in uri_string:percent_decode spec
* stdlib: Updated shell docs to display the type spec, that is,
[h(erlang, min, 2)](%60%5Cc:h/2%60) now prints the type spec
and documentation in the shell.
* stdlib: The t:file:io_device/0 type has been updated to clearly
show the difference between a raw and cooked IoDevice.
* stdlib: Added json:format_key_value_list/3 and
json:format_key_value_list_checked/3.
* stdlib: Improved documentation of
[timers](%60e:erts:time_correction.md#timers%60).
* stdlib: Added logging support to t:io:user/0,
t:io:standard_io/0 and t:io:standard_error/0. See io:setopts/2
for more details.
* common_test: Fixed a bug where the sum of testcases' execution
time in HTML logs was sometimes miscalculated, and the table
was not fully printed.
* snmp: Erlang/OTP type specifications has been updated to
eliminate overlapping domains.
* ssl: Enhanced return value spec for active messages from the
TLS connection socket.
* eldap: Corrected dialyzer spec for usage of TLS options. The
incorrect usage for the options in eldap could cause dialyzer
warnings in user code referring to eldap specs.
* erts: gen_sctp:peeloff/2 has been fixed to inherit socket
options to the peeled off socket more like gen_tcp:accept/1,
for example the options tos or tclass.
* erts: Fixed a bug where Erlang would corrupt the terminal
settings if stdin was a TTY but stdout was not.
* erts: Fixed a bug in the non-JIT VM when loading a NIF over a
function that is already traced by more than one session. This
caused a VM crash. This bug has existed since OTP-27.0, where
multiple trace sessions were introduced.
* erts: Fixed a bug where the loading of modules with extremely
large binary construction instructions crashed the emulator on
AArch64.
* erts: [inet:getifaddrs/0,1](%60inet:getifaddrs/1%60) is
improved when using inet_backend = socket.
* erts: win32reg:value/2 will no longer crash the emulator when
the value is an unterminated REG_SZ of size 0.
* erts: Makefile dependency generation on Windows in WSL 2 has
been corrected.
* erts: Fix lock order violation if a NIF monitor down callback
calls enif_whereis_pid. Would cause debug emulator to crash but
could potentially lead to deadlocks in optimized emulator.
* erts: Fixed compilation faults when compiling using --enable-
vm-probes.
* erts: Fixed erl_nif.h on Windows to compile when gcc or clang
is used.
* erts: Fixed a minor issue in the JIT debug information that
confused tools like GDB and perf.
* erts: Improved documentation of
[timers](time_correction.md#timers).
* erts: The label for a process can now be retrieved also using
process_info(Pid, label) in addition to proc_lib:get_label/1.
* mnesia: Mnesia table converted from ext_copies to disc_copies
will now be properly saved to disk.
* mnesia: Mnesia could crash if table was deleted during
checkpoint initialization.
* dialyzer: Fixed type inference for
erlang:system_info(logical_processors).
* dialyzer: Dialyzer would crash when attempting to analyze a
module compiled with the line_coverage option.
* dialyzer: Erlang/OTP type specifications has been updated to
eliminate overlapping domains.
* tools: Fixed some deprecated errors on emacs-29.
* tools: The cover tool could sometimes wrongly report lines as
uncovered.
* tools: Fixed tprof:format(IoDevice, ...) to not demand unicode
encoding supported by IoDevice.
* debugger: Defining a fun in the shell using the syntax fun
Name/Arity would fail. This has been corrected so that the
following now works:
* debugger: Erlang/OTP type specifications has been updated to
eliminate overlapping domains.
* crypto: crypto:strong_rand_bytes/2 fixed to work on Ubuntu pro
with installed FIPS support.
* crypto: Fixed crypto:hash_final/1 for digest types shake128 and
shake256 when using OpenSSL 3.4 or newer.
* kernel: gen_sctp:peeloff/2 has been fixed to inherit socket
options to the peeled off socket more like gen_tcp:accept/1,
for example the options tos or tclass.
* kernel: Made it possible to expand help text displayed by
pressing ^[h by pressing ^[h again.
* kernel: [inet:getifaddrs/0,1](%60inet:getifaddrs/1%60) is
improved when using inet_backend = socket.
* kernel: Fixed t:logger:report/0 to mandate at least one element
in the report. This fixes an issue with overlapping spec
domains in all m:logger functions that use t:logger:report/0.
* kernel: Fixed deadlock on code_server. Multiple calls loading
the same module with an on_load function loading call would
create a deadlock.
* kernel: The Kernel application now recognizes the epmd_module
and erl_epmd_listen_port parameters, similar to
- kernel:connect_all.
* kernel: The inetrc kernel argument will now tolerate atoms
again to improve compatibility with old configurations that
relied on atoms working by accident.
* kernel: The t:file:io_device/0 type has been updated to clearly
show the difference between a raw and cooked IoDevice.
* kernel: Erlang/OTP type specifications has been updated to
eliminate overlapping domains.
* kernel: Added the kernel parameter
[os_cmd_shell](kernel_app.md#os_cmd_shell) that controls which
shell should be used by os:cmd/1.
* kernel: Added logging support to t:io:user/0,
t:io:standard_io/0 and t:io:standard_error/0. See io:setopts/2
for more details.
* megaco: Erlang/OTP type specifications has been updated to
eliminate overlapping domains.
* inets: The HTTP client now correctly takes into account the
full_result option when returning an asynchronous request.
* inets: A synchronous httpc:request now timeouts after the
Timeout specified in HttpOption {timeout, Timeout}.
* inets: Fixed a bug where calling httpc:set_options/2 when one
of keys: ipfamily or unix_socket, was not present, would cause
the other value to get overriden by the default value. The
validation of these options was also improved.
* inets: The variable Env in the mod_esi callback will now have
an additional property {connect_addr, Addr} indicating on which
address the server received a connection.
* public_key: public_key:cacerts_load/1 can now be configured via
the application environment.
* public_key: On MacOS, CA certificates are now also loaded from
the system keychain.
* Tue Dec 10 2024 matwey.kornilov@gmail.com
- Changes for 27.1.3:
* public_key: If both ext-key-usage and key-usage are defined for
a certificate it should be checked that these usages are
consistent with each other. This will have the affect that such
certificates where the ext-key-usages is marked as critical and
the usages is consistent with the key-use it can be considered
valid without mandatory application specific checks for the
ext-key-useage extension.
* public_key: Handle decoding of EDDSA key properly, when
decoding a PEM file that contains only the public EDDSA key.
* erts: gen_udp:send on domain local can leak inet_reply
messages.
* erts: net:getifaddrs does not properly report the running flag
on windows.
* compiler: In rare circumstances, the destructive tuple update
optimization could be applied when it was unsafe.
* compiler: In rare circumstances involving appending to multiple
binaries, the compile could emit unsafe code that would crash
the runtime system.
* ssh: With this change, ssh connection does not crash upon
receiving exit-signal message for an already terminated
channel.
* kernel: On windows the socket:recv could return with success
({ok, Data}) even though not all data had been read.
* kernel: gen_udp:send on domain local can leak inet_reply
messages.
* kernel: Failure to create an UDP IPv6 socket when inet_backend
= socket with certain IPv6 socket options.
* kernel: net:getifaddrs does not properly report the running
flag on windows.
* ssl: Avoid generating an internal alert for case that should
have been an orderly shutdown by the supervisor.
* ssl: If present, extended key-usage TLS (SSL) role check (pk-
clientAuth, pk-serverAuth) should always be performed for peer-
cert. An intermediate CA cert may relax the requirement if
AnyExtendedKeyUsage purpose is present.
* ssl: Back port certificate_authorities option for TLS-1.3
servers to pre TLS-1.3 servers to enable them to disable the
sending of certificate authorities in their certificate
request. This will have same affect as the the TLS-1.3 server
option although it is handled by a different mechanism in these
versions, where the functionality is described to be more of a
guidance, although some pre TLS clients have proven to make it
mandatory as in TLS-1.3 extension handling.
* common_test: With this change, cth_surefire hook module handles
group path reduction for a skipped group. This fixes a bug
manifesting with improper group path for a group executed after
a group which was skipped.
* common_test: With this change, prefix option can be specified
in cth_conn_log option list. Option allows to specify how much
of additional information is added in raw log output.
* Thu Dec 05 2024 Dirk Müller <dmueller@suse.com>
- drop systemd_requires, see
https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Runtime_requirements
* Sat Nov 30 2024 matwey.kornilov@gmail.com
- Changes for 27.1.2:
* stdlib: With this change, uri_string:normalize assumes empty
path (do not crash) when no path is provided in the URI map.
* stdlib: Fixed spec for json:format/3.
* kernel: A bug has been fixed where receiving an SCTP message
with gen_sctp could waste the first fragments of a message and
only deliver the last fragment.
* kernel: An boolean option non_block_send for SCTP, has ben
added to be able to achieve the old behaviour to avoid blocking
send operations by passing the OS network stack error message
({error,eagain} through.
* common_test: With this change, jquery and tablesorter licenses
are added to COPYRIGHT file. Also tablesorter is updated to
version 2.32.
* ssl: Refactor trying to also make some optimizations introduced
a bug in signature algorithms checks in OTP-26.2.1. This could
manifest itself in not being able to negotiate connections
using certificates needing to use some TLS-1.2 compatibility
legacy signature schemes.
* ssl: Correct timeout handling for termination code run for own
alerts, so that intended timeout is used instead of falling
back to OS TCP-stack timeout that is unreasonably long on some
platforms.
* ssl: Fix assertion so that works as intended. This could result
in that some TLS-1.2 clients would fail to connect to the the
erlang server. Bug introduced in OTP-27.1.1
* erts: A bug has been fixed where receiving an SCTP message with
gen_sctp could waste the first fragments of a message and only
deliver the last fragment.
* erts: An boolean option non_block_send for SCTP, has ben added
to be able to achieve the old behaviour to avoid blocking send
operations by passing the OS network stack error message
({error,eagain} through.
* erts: The call gen_tcp:send/2 could hang indefinitely despite
having set the send_timeout option for the following
unfortunate combination of circumstances:
* erts: In rare circumstances, in code that matches multiple
tuples, the JIT could generate code that would raise a badmatch
exception even if the given tuples were correct.
* erts: Fixed beam crash that could happen if resetting call_time
or call_memory trace counters of a function while it is called.
Bug exists since OTP R16.
* ssh: With this change, a race condition is removed from ssh
client connection setup procedure.
* ssh: With this change, ssh:connect is not affected by presence
of EXIT message in queue.
* ssh: With this change, ssh appends {active, false} option after
socket options received from user - so that false value is
always used.
- Changes for 27.1.1:
* public_key: Introduction of verify_fun/4 unfortunately
introduced an argument switch for some specific path validation
errors so that verify_fun/3 could under these circumstances be
called with a DER cert instead of a decod cert, also in this
situation the verify_fun/4 would have the certificates in
reverse order.
* public_key: Do not hide crypto badarg reason, this error
handling enhancement facilitates debugging. These kind of
runtime errors are not documented and should never be relied on
for matching, they are intended for catching input errors
early.
* stdlib: Remove whitespace stripping of returned binaries in
json:decode/3.
* stdlib: Fix zip:unzip/2 to not crash when extracting zip files
with garbage in the Zip64 extra header. This bug was introduced
in Erlang 27.1 and has so far only been seen on some archives
creates by MS Excel.
* stdlib: With this change, shutdown procedure handles a race
condition between supervisor executing a shutdown and child
process termination from other reason.
* common_test: With this change, HTML reports include jQuery
version 3.7.1.
* ssl: Starting from TLS-1.3 some server handshake alerts might
arrive after ssl:connection/2,3,4 has returned. If the socket
is in active mode the controlling process will get the alert
message, but passive sockets would only get {error, closed} on
next call to ssl:recv/2,3 or ssl/setopts/2. Passive sockets
calls will now return {error, error_alert()} instead.
* ssl: Servers configured to support only version (pre TLS-1.2)
should ignore hello version extension, as it is an unknown
extension to them, this will result in that new clients that do
not support the old server version will get an insufficient
security alert from the server and not a protocol version
alert, this is consistent with how old servers not able to
support higher protocol versions work.
* erts: On Windows, successive failed socket calls caused socket
to become "uninitialized".
* erts: The socket framework fails to start on a IPv6-only
Windows machine.
* Sun Sep 29 2024 matwey.kornilov@gmail.com
- Changes for 27.1:
* crypto: crypto built with --enable-fips will now accept an
OpenSSL 3 lib without fips provider as long as fips mode is not
enabled.
* crypto: Added a warning in the documentation to avoid calling
crypto:start/0 as it does not work for FIPS mode. Use
application:start(crypto) instead.
* crypto: Deprecation of RSA encryption functions has been
reverted, as there still exists legitimate use cases with other
padding modes than PKCS-1.
* crypto: Compiler warnings for some removed functions have been
corrected to point out the correct replacement functions.
* ssh: The SSh daemon started with a TCP port number argument
will now re-try obtaining a listen socket before returning an
error to the user.
* ssh: Robustness has been improved by monitoring the connection
handler process before casting the socket control notification.
* ssl: A race in the kTLS flavour of SSL distribution has been
fixed so that inet_drv.c doesn't read ahead too much data,
which could cause the kTLS encryption to be activated too late
when some encrypted data had already been read into the
inet_drv.c buffer as unencrypted.
* ssl: All TLS-1.3 terminations are now graceful (previous TLS
version terminations already were).
* ssl: It is now possible to use a verification fun of arity 4,
giving the user fun access to both encoded and decoded versions
of the certificate. This is desirable as a workaround for
encoding errors preventing re-encoding from being reliable.
This also saves some work load if the encoded version is
needed.
* ssl: Compiler warnings for some removed functions have been
corrected to point out the correct replacement functions.
* ssl: Include more information in logging of SNI (Server Name
Indication) mismatch error.
* diameter: Function specs for the main API module has been
updated.
* diameter: Man pages are now available for erl, erlc, dialyzer,
and all other programs that are included in Erlang/OTP.
* diameter: diameter:stop_service/1 has been made more
synchronous.
* wx: Documentation has been improved.
* public_key: For completeness handle rsa_pss implicit default
value, although this will probably not be commonly used as it
provides very weak security.
* public_key: The public_key:cacerts_load() function could in
some error cases return undefined instead of {error, Reason}.
* public_key: Added support for DragonFly.
* public_key: Deprecation of RSA encryption functions has been
reverted, as there still exists legitimate use cases with other
padding modes than PKCS-1.
* public_key: It is now possible to use a verification fun of
arity 4, giving the user fun access to both encoded and decoded
versions of the certificate. This is desirable as a workaround
for encoding errors preventing re-encoding from being reliable.
This also saves some work load if the encoded version is
needed.
* snmp: Man pages are now available for erl, erlc, dialyzer, and
all other programs that are included in Erlang/OTP.
* snmp: Figures in the documentation have been improved.
* tftp: The legacy dependency to m:error_logger has been removed.
m:logger is now used.
* ftp: Eliminated a race condition that sometimes resulted in
ftp:recv_bin/2 returning ok instead of {ok, Data}.
* odbc: Figures in the documentation have been improved.
* compiler: Fixed a crash in an optimization pass relating to
appending binaries.
* compiler: Fixed a bug in the compiler's alias analysis pass
that could make it emit unsafe code.
* common_test: Groups with empty list specifying groups and test
cases no longer crash execution.
* common_test: The Common_Test documentation and type specs have
been polished.
* common_test: Man pages are now available for erl, erlc,
dialyzer, and all other programs that are included in
Erlang/OTP.
* dialyzer: Man pages are now available for erl, erlc, dialyzer,
and all other programs that are included in Erlang/OTP.
* xmerl: Corrected export functions from internal structure to
XML so xmlText items of type cdata are handled correctly. They
were just exported as normal text instead of output in a CDATA
section.
* xmerl: The type spec for xmerl_sax_parser:file/2 has been
corrected to indicate that it can return an {error, _} tuple.
* runtime_tools: Fixed a bug where dbg sessions on remote nodes
were terminated prematurely.
* inets: The documentation for the m:httpd module has been
improved, along with correction of headings and types.
* inets: Userinfo is now properly percent-decoded before usage in
headers.
* stdlib: The help printout for incorrect t:io:format/0 strings
now handles the k modifier correctly.
* stdlib: Fixed a bug that caused the shell completion to crash
when keyword and tuple appeared on the same line.
* stdlib: Due to PR-7419/OTP-18671, the cached internal value of
the callback_mode started leaking out to logger reports, which
could cause logger handlers to crash. This has now been fixed
to show the value that was set, as before caching.
* stdlib: Fixed an emulator crash relating to compressed ETS
tables.
* stdlib: The error description for maps:update/3 will no longer
insist that the third argument is not a map when a key could
not be found
* stdlib: Multiple issues have been corrected in the markdown
parser that creates documentation for the shell.
* stdlib: Fixed category for some codepoint ranges in
unicode_util.
* stdlib: Fixed m:argparse to print sub-commands help when
available.
* stdlib: Class annotation to HTML from fenced blocks have been
added.
* stdlib: Added JSON formatting functions for indented output.
* stdlib: Improved illegal pattern error for accidental map
associations.
* stdlib: Progress reports for a dynamically started supervisor
will now be logged at debug level.
* stdlib: The m:zip module has been updated with support for:
* edoc: Broken links in release notes have been mended.
* tools: m:tprof no longer crashes when using
pause/restart/continue when profiling all modules.
* tools: On systems supporting native coverage, calls to m:cover
could hang or crash if cover-compiled module had been reloaded
from outside cover. This has been corrected so that cover now
recovers from the error and and sends a report to the logger
about the failure to retrieve coverage information.
* tools: Figures in the documentation have been improved.
* erts: The erl -man example has been corrected to not consider
values set in ERL_ZFLAGS and stop parsing arguments when a --
is encountered.
* erts: Compiler warnings for Windows I/O back-end have been
silenced.
* erts: Bugs related to return_to trace have been fixed. It did
not work for more than once trace session and it did sometimes
not trigger for exceptions.
* erts: Potential deadlocks while writing a crash dump have been
eliminated.
* erts: When loading a damaged or too old BEAM file, the runtime
system could crash.
* erts: A scheduler thread could get stuck when deleting a memory
allocator carrier when adjacent carriers were deleted and/or
inserted simultaneously by other schedulers. This in turn could
cause the other schedulers to get stuck as well.
* erts: Statistics for number of carriers in a shared pool after
calling instrument:allocations or instrument:carriers are now
correct. Also, a potential bug in carrier block scanning was
eliminated.
* erts: A race in the kTLS flavour of SSL distribution has been
fixed so that inet_drv.c doesn't read ahead too much data,
which could cause the kTLS encryption to be activated too late
when some encrypted data had already been read into the
inet_drv.c buffer as unencrypted.
* erts: Fixed an emulator crash relating to compressed ETS
tables.
* erts: A function (encode_sockaddr) was called with superfluous
argument, on Windows, in the net nif.
* erts: Fixed a crash that could happen on reallocation failure.
* erts: Man pages are now available for erl, erlc, dialyzer, and
all other programs that are included in Erlang/OTP.
* erts: A previous correction in the Erlang/OTP 27.0.1 emergency
patch had the unfortunate side effect of sometimes causing an
unnecessary fullsweep (major) garbage collection instead of a
generation (minor) garbage collection. This has been corrected.
* erts: Fixed trace matchspec functions trace and enable_trace to
use the session tracer when enabling trace flags on untraced
processes.
* erts: Fixed a typo in the type spec for
t:erlang:garbage_collection_defaults/0.
* erts: Corrected socket:ioctl for genaddr (SIOCGENADDR).
* erts: The support for Transparent Huge Pages has been disabled
on non-amd64 Linux systems.
* erts: Fixed a race condition on Windows when upgrading from
- noshell to a shell that would cause Erlang to crash with the
error:
* erts: Added functions getservbyname and getservbyport to the
net module.
* erts: Introduced enet | esock variants of m:inet functions,
either when called with sockets, with explicit inet_backend
config or with the e inet_backend kernel config option.
* erts: Optimize process and port creation when such tracing is
not enabled by any trace session.
* erts: Compiler warnings for some removed functions have been
corrected to point out the correct replacement functions.
* erts: A boolean option read_ahead has been implemented for
gen_tcp, default true, to facilitate not reading past (caching
data) the end of a packet. In particular, for kTLS, caching
data could read in data that was supposed to be decrypted by
the platform's network stack, before crypto parameters could be
activated.
* erts: The m:zip module has been updated with support for:
* kernel: A faulty assertion was corrected in the prim_tty
module. This assertion could trigger when invalid UTF-8 was
read from stdin just as the mode was changed from unicode to
latin1.
* kernel: Opening a disk_log file and combining head_func with
rotate options did not work.
* kernel: Fixed an error info printout for
erlang:is_process_alive/1 on non-local pids.
* kernel: A race in the kTLS flavour of SSL distribution has been
fixed so that inet_drv.c doesn't read ahead too much data,
which could cause the kTLS encryption to be activated too late
when some encrypted data had already been read into the
inet_drv.c buffer as unencrypted.
* kernel: Fixed a deadlock when an application crashes during
startup and log messages were sent to standard out. Logger
would fail to print the messages to standard out and instead
print them to standard error.
* kernel: The -proto_dist init parameter will no longer be
ignored when specified multiple times. It will now log a
warning and use the first specified value.
* kernel: Corrected socket:ioctl for genaddr (SIOCGENADDR).
* kernel: Added functions getservbyname and getservbyport to the
net module.
* kernel: Introduced enet | esock variants of m:inet functions,
either when called with sockets, with explicit inet_backend
config or with the e inet_backend kernel config option.
* kernel: The function socket:i/0 now uses the m:net module
(instead of the m:inet module) for service translation.
* kernel: A boolean option read_ahead has been implemented for
gen_tcp, default true, to facilitate not reading past (caching
data) the end of a packet. In particular, for kTLS, caching
data could read in data that was supposed to be decrypted by
the platform's network stack, before crypto parameters could be
activated.
* syntax_tools: The documentation for syntax_tools has been
polished after the migration to the new documentation system.
* asn1: Fixed a cosmetic but harmless issue with the ASN.1
compiler passing on the undec_rest option to the Erlang
compiler.
- Changes for 27.0.1:
* ssh: With this change, race condition between connection
closing and automatic window adjustment is fixed.
* ssl: Check for TLS-1.3 support should check minimum
requirements.
* ssl: If both TLS-1.3 and TLS-1.2 is supported and TLS-1.2
negotiated convert TLS-1.3 ECDSA schemes to TLS-1.2 hash and
signature pairs for increased interoperability.
* ssl: TLS-1.3 negotiation now uses SNI based options correctly
instead of ignoring them.
* ssl: Make it easier to distinguish between a invalid signature
and unsupported signature.
* ssl: Enhance ALERT logs to help understand what causes the
alert.
* ssl: When the default value for signature_algs is used, default
the signature_algs_cert to the default value + rsa_pkcs1_sha1
to allow this algorithms for certificates but not for the TLS
protocol. This is for better interoperability. If
signature_algs is set explicitly signature_algs_cert must also
be set explicitly if they should be different.
* public_key: Fix bug in dnsName constraint check, could cause
valid cert to be considered bad during path validation.
* compiler: One of the compiler's optimization passes would get
very slow when compiling certain modules. The compiler will now
automatically disable that pass for input that would trigger
the slowdown.
* compiler: Fix +deterministic to work properly with
documentation attributes.
* stdlib: Fix so that missing -doc({file, File}) files only
result in a warning and not an error.
* stdlib: Fixed m:json bugs, json:encode_key_value_list/2 did not
generate arrays and json:decode/3 did not invoke the user
callback for 0.
* edoc: Fix broken makefile dependency when building HTML
documentation.
* erts: In rare circumstances the JIT could do an unsafe in-place
update of a tuple.
* erts: When a port command crashed in the inet driver during
gen_tcp:send/2, a monitor 'DOWN' message could be left
lingering in the caller's mailbox. This has now been fixed.
* erts: 'DOWN' messages originating from a monitored port,
contained the atom process instead of the atom port as the
third element when the exit reason was not an immediate term.
* erts: Fix so that the options to enable Transparent Huge Page
alignment of the Erlang VM executable are only applied to the
Erlang VM and not other native programs such as erlc and
dialyzer. This bug was introduced in Erlang/OTP 27.0.
* erts: When [*no time warp mode*](time_correction.md#no-time-
warp-mode) was enabled, a smaller Erlang monotonic time could
be read than a previously read time, i.e., breaking the
monotonic property. The runtime system will abort when
detecting an issue like this since OTP 24.3.4.17 and OTP 25.0.
* erts: When calling trace:function(Session, _, true, [meta]) the
meta tracer was incorrectly set to be the calling process. Now
it's set to the session tracer as expected.
* kernel: Polish the m:logger documentation.
* Fri Sep 20 2024 Matwey Kornilov <matwey.kornilov@gmail.com>
- Version 27.0:
* Triple-Quoted Strings has been implemented as per EEP 64 to
allow a string to encompass a complete paragraph.
* Adjacent string literals without intervening white space is now
a syntax error, to avoid possible confusion with triple-quoted
strings.
* Sigils on string literals (both ordinary and triple-quoted)
have been implemented as per EEP 66. For example, ~"Björn" or
~b"Björn" are now equivalent to <<"Björn"/utf8>>.
* The compiler will now merge consecutive updates of the same
record.
* Safe destructive update of tuples has been implemented in the
compiler and runtime system. This allows the VM to update
tuples in-place when it is safe to do so, thus improving
performance by doing less copying but also by producing less
garbage.
* The maybe expression is now enabled by default, eliminating the
need for enabling the maybe_expr feature.
* Native coverage support has been implemented in the JIT. It
will automatically be used by the cover tool to reduce the
execution overhead when running cover-compiled code. There are
also new APIs to support native coverage without using the
cover tool.
* The compiler will now raise a warning when updating record/map
literals to catch a common mistake. For example, the compiler
will now emit a warning for #r{a=1}#r{b=2}.
* The erl command now supports the -S flag, which is similar to
the -run flag, but with some of the rough edges filed off.
* By default, escripts will now be compiled instead of
interpreted. That means that the compiler application must be
installed.
* The default process limit has been raised to 1048576 processes.
* The erlang:system_monitor/2 functionality is now able to
monitor long message queues in the system.
* The obsolete and undocumented support for opening a port to an
external resource by passing an atom (or a string) as first
argument to open_port(), implemented by the vanilla driver, has
been removed. This feature has been scheduled for removal in
OTP 27 since the release of OTP 26.
* The pid field has been removed from erlang:fun_info/1,2.
Multiple trace sessions are now supported.
* There is a new module json for encoding and decoding JSON.
* Several new functions that accept funs have been added to module timer.
* The functions is_equal/2, map/2, and filtermap/2 have been
added to the modules sets, ordsets, and gb_sets.
* There are new efficient ets traversal functions with guaranteed
atomicity. For example, ets:next/2 followed by ets:lookup/2 can
now be replaced with ets:next_lookup/1.
* The new function ets:update_element/4 is similar to
ets:update_element/3, but takes a default tuple as the fourth
argument, which will be inserted if no previous record with
that key exists.
* binary:replace/3,4 now supports using a fun for supplying the
replacement binary.
* The new function proc_lib:set_label/1 can be used to add a
descriptive term to any process that does not have a registered
name. The name will be shown by tools such as c:i/0 and
observer, and it will be included in crash reports produced by
processes using gen_server, gen_statem, gen_event, and gen_fsm.
* Added functions to retrieve the next higher or lower
key/element from gb_trees and gb_sets, as well as returning
iterators that start at given keys/elements.
* common_test: Calls to ct:capture_start/0 and ct:capture_stop/0
are now synchronous to ensure that all output is captured.
* common_test: The default CSS will now include a basic dark mode
handling if it is preferred by the browser.
* crypto: The functions crypto_dyn_iv_init/3 and
crypto_dyn_iv_update/3 that were marked as deprecated in
Erlang/OTP 25 have been removed.
* dialyzer: The --gui option for Dialyzer has been removed.
* ssl: The ssl client can negotiate and handle certificate status
request (OCSP stapling support on the client side).
* tools: There is a new tool tprof, which combines the
functionality of eprof and cprof under one interface. It also
adds heap profiling.
* xmerl: As an alternative to xmerl_xml, a new export module
xmerl_xml_indent that provides out-of-the box indented output
has been added.
* Sat Aug 03 2024 matwey.kornilov@gmail.com
- Changes for 26.2.5.2:
* erts: When no time warp mode was enabled, a smaller Erlang
monotonic time could be read than a previously read time, i.e.,
breaking the monotonic property. The runtime system will abort
when detecting an issue like this since OTP 24.3.4.17 and OTP
25.0. Up until OTP 25 no time warp mode is the default. As of
OTP 26 multi time warp mode is the default.
* erts: A scheduler thread could get stuck when deleting a memory
allocator carrier when adjacent carriers were deleted and/or
inserted simultaneously by other schedulers. This in turn could
cause the other schedulers to get stuck as well.
* crypto: Add warning in documentation to avoid crypto:start/0 as
it does not work for FIPS mode. Use application:start(crypto)
instead.
* stdlib: Fixed a bug that caused the shell completion to crash
when keyword and tuple appeared on the same line.
* ssl: When the default value for signature_algs is used, default
the signature_algs_cert to the default value + rsa_pkcs1_sha1
to allow this algorithms for certificates but not for the TLS
protocol. This is for better interoperability. If
signature_algs is set explicitly signature_algs_cert must also
be set explicitly if they should be different.
- Changes for 26.2.5.1:
* erts: A call to socket:[recv|recvfrom|recvmsg]/* with Timeout =
0 on Windows could cause a (case clause) crash if data is
immediately available.
* erts: When a port command crashed in the inet driver during
gen_tcp:send/2, a monitor 'DOWN' message could be left
lingering in the caller's mailbox. This has now been fixed.
* erts: 'DOWN' messages originating from a monitored port,
contained the atom process instead of the atom port as the
third element when the exit reason was not an immediate term.
* public_key: Fix bug in dnsName constraint check, could cause
valid cert to be considered bad during path validation.
* diameter: Pick peer can now also handle request of type
[#]diameter_packet{}.
* kernel: A call to socket:[recv|recvfrom|recvmsg]/* with Timeout
= 0 on Windows could cause a (case clause) crash if data is
immediately available.
* kernel: Open a disk_log file and combining head_func with
rotate options did not work.
* ssh: With this change, ssh client will automatically adjust
transfer window size for commands executed remotely over SSH.
* ssh: With this change, race condition between connection
closing and automatic window adjustment is fixed.
* ssl: Check for TLS-1.3 support should check minimum
requirements.
* ssl: If both TLS-1.3 and TLS-1.2 is supported and TLS-1.2
negotiated convert TLS-1.3 ECDSA schemes to TLS-1.2 hash and
signature pairs for increased interoperability.
* ssl: TLS-1.3 negotiation now uses SNI based options correctly
instead of ignoring them.
* ssl: Make it easier to distinguish between a invalid signature
and unsupported signature.
* ssl: Enhance ALERT logs to help understand what causes the
alert.
- Changes for 26.2.5:
* erts: gen_sctp:send/3,4 now waits for the send to complete
instead of returning an OS result such as {error, ewouldblock}.
* erts: ETS functions did not properly handle keys containing
maps, sometimes matching too many or too few objects.
* erts: Fix CPU quota determination for cgroups. The bug was
introduced through OTP-18999.
* erts: Added a warning to open_port/2 regarding the BadBatBut
attack affecting Windows.
* dialyzer: Fixed an issue with bitstring type inference on
segments following UTF-8/16/32 segments.
* kernel: Fix the shell Job Control Mode to not crash when typing
TAB or CTRL+R.
* kernel: Fix calls to blocking application APIs to throw an
exception with reason terminating if called when the system is
terminating. This is done in order to avoid deadlocks during
shutdown or restart.
* stdlib: Fix shell expansion of -type a() :: $a. in the erlang
shell.
* stdlib: Fix the shell Job Control Mode to not crash when typing
TAB or CTRL+R.
* ssl: Fix certificate authorities check so that CA closest to
peer is not lost. It could manifest itself in a failed
connection as the client failed to realize it had a valid
certificate chain to send to the server.
* ssl: ssl:signature_algs/2 did not list some legacy algorithm
schemes correctly when listing all algorithms available.
* mnesia: Mnesia could crash during startup if del_table_copy/2
and add_table_copy/3 was invoked when the table was loading.
* Tue Apr 16 2024 Simon Lees <sflees@suse.de>
- Changes for 26.2.4
* asn1: An ASN.1 module that contains named BIT STRING values
would fail to compiled if both the BER and JER
back-ends were enabled.
* Compiler: In rare circumstances, the compiler code generate
unsafe code for a bit syntax match.
* Compiler: In rare circumstances, binary matches that were
supposed to succeed failed.
* Compiler: Fixed a bug where a fun's environment could be
overridden by an argument in some cases.
* Crypto: Fix building with --enable-fips with OpenSSL 3 on
MacOS.
* Debugger: Guards with nested record expression could wrongly
evaluate to false.
* Diameter: Reduce the impact of calling service_info by not
counting the binaries (on the heap) info, This is done
by introducing an option, bins_info, which controls
this.
* erts: Fixed CPU quota determination for cgroup version 2
* erts: Fix faulty reduction counting in exiting process which
could cause it to do unnecessary yielding.
* erts: Fix bug in re:run/3 where if an invalid UTF-8 subject
was given, re:run could get stuck in an infinite loop.
Bug was introduced in Erlang/OTP 22.1.
* erts: On AArch64 (ARM64), Erlang code using bit syntax
construction compiled using Erlang/OTP 24 could crash
the runtime system when run in Erlang/OTP 26.2.3.
* erts: Calling erlang:trace/3 with first argument one of
ports, processes, existing_ports, existing_processes,
existing or all, could cause emulator crash if a dirty
scheduler was executing a simultaneous trace action.
* erts: Fixed an integer overflow when the monotonic time unit
reported by the operating system was greater than 10
and lower than 100 microseconds.
* erts: Fix option reuseaddr for FreeBSD 14
* erts: When a traced process executing on a dirty scheduler
received an exit signal, the dirty scheduler could use
the wrong thread specific data which could lead to a
crash.
* erts: Fixed a more or less harmless bug that caused time
correction of Erlang monotonic time to become slightly
off on Windows platforms when QueryPerformanceCounter()
was used as OS monotonic time source.
erlang:system_info(os_monotonic_time_source) now also
returns information about used resolution which not
always corresponds to the resolution of the OS
monotonic time source.
* erts: When using IPv6, classic gen_udp failed to add (group)
membership (drop was used instead).
* erts: Fix bug on Windows where "Unknown event: 2" would be
printed to the console.
* erts: Checks for monotonicity of monotonic time have been
improved so that Erlang and OS monotonic time are
checked separately.
* erts: For severe errors, when the `socket` module terminates
the Erlang VM, now an erl_crash.dump is produced, to
facilitate post mortem debugging.
* kernel: When using IPv6, classic gen_udp failed to add (group)
membership (drop was used instead).
* kernel: The check in inet_res of the RD bit has been relaxed
slightly.
* ssh: With this change, owner and group file attributes
decoding is fixed and results with value of integer
type.
* ssl: Cleanup and close all connections in DTLS when the
listen socket owner dies.
Improved IPv6 handling in DTLS.
* ssl: Fixed a crash in dtls accept.
* stdlib: Attempting to use the maybe construct in a macro
argument could crash the compiler.
- Changes for 26.2.3
* otp: Quote uninstall path in registry when installing on
windows.
* compiler: In rare circumstances, an unsafe optimization could
cause the compiler to generate incorrect code for list
matching.
* compiler: Fix the compilation server to restart if the
applications in its lib dir changes inbetween erlc
invokations.
* crypto: Fix compile error when OPENSSL_NO_DES is defined.
* crypto: The function crypto:pbkdf2_hmac will no longer block
the main schedulers. If the iteration count or block
size parameters are such that the function is likely to
take a long time to execute, the function will be
scheduled to run on a dirty CPU scheduler.
* erts: Fixed compile warning in erl_nif.c for gcc-13.
* erts: Fix C++ compile error for macros enif_select_read and
friends.
* erts: Fixed a name clash on Solaris that prevented the JIT
from being built.
* erts: Fix termcap detection on solaris.
* erts: Fix heap corruption bug that could cause runaway memory
consumption due to circular offheap list at process
exit. Other symptoms may also be possible. Bug exists
since OTP 25.0.
* erts: Do not clear tracing in old module instance if load
fails with 'not_purged'.
* erts: When exceeding the `max_heap_size` limit in a garbage
collection initiated by some bit syntax operations, the
process would not always terminate immediately.
* erts: The code server could be hanging if a module with
on_load function was loaded at the same time as another
module was purged using erlang:purge_module directly.
* erts: A process optimized for parallel signal delivery could
under some circumstances lose wakeup information. That
is, the processes was not woken up to take care of the
signal, so the signal would not be taken care of until
the process was woken by another signal. Only processes
configured with message_queue_data set to off_heap
utilize this optimization.
* erts: Fix segfault when generating crashdump containing a fun
places in persistent_term storage.
* erts: By default the JIT is disabled on Intel Macs, because
of annoying poups on macOS Sonoma. It is now possible
to explicitly enable the JIT on Intel Macs. Here is
how: ./configure --enable-jit
* kernel: Fix performance bug when using io:fread to read from
standard_io. This regression was introduced in OTP
26.0.
* kernel: A bug in the code server could cause it to crash in
some concurrent scenarios. This bug was introduced in
26.1.
* kernel: Fixed gen_udp:open/2 type spec to include already
supported module socket address types.
* kernel: Fix reading of password for ssh client when in
user_interactive mode.
* odbc: Use spec for API doc
* public_key: Hostname prefix with X number of dots should not be
accepted.
* ssh: With this change, acceptor_sup is not started for ssh
client as it is not needed in that role.
* ssh: With this change, more secure algorithms are preferred
by ssh and documentation is updated to reflect that.
* ssh: With this change, KEX strict terminal message is
emitted with debug verbosity.
* ssh: Fix reading of password for ssh client when in
user_interactive mode.
* ssl: ssl:prf/5, will start working instead of hanging in a
TLS-1.3 context if called appropriately. Note that the
implementation has changed and in OTP-27 a more
adequate API will be documented.
* ssl: Server name verification didn't work if a connection
was made with IP-address as a string.
* ssl: The fallback after "dh" ssl option was undefined was to
get "dh" from ssl options again. This is clearly wrong
and now changed to the documented fallback "dhfile" ssl
option.
* ssl: Correct default value selection for DTLS. Will only
affect users linked with really old version of
cryptolib library.
* ssl: Adhere elliptic curves with RFC 8422 pre TLS-1.3, that
is Edwards curves are added to curves that can be used
for key exchange, and documentation and implementation
of eccs/0,1 are aligned.
* ssl: Improve alert reason when ecdhe_rsa key_exchange does
not have any common curves to use
* stdlib: The help texts shown by argparse will now display
sub-command arguments in the correct order.
* stdlib: Clarified the argparse documentation regarding the
user-defined help template.
* stdlib: Fix shell expansion to not crash when expanding invalid
using invalid atoms.
* wx: Add option to silence wx depracation macros.
- Changes for 26.2.2
* common_test: Fix how CT finds Erlang/OTP releases for compatability
testing. This functionality is only used to test
Erlang/OTP.
* erl_interface: Fix bug where the system installed openssl/md5.h would
be confused with the vendored md5.h.
* erts: 32-bit runtime systems on most Unix like platforms
could crash if a BIF timer was set with a huge timeout
of more than 68 years into the future. In order for the
crash to occur, the huge timer (at a later time than
when it was set) had to become the nearest active timer
set on the specific scheduler on which it was set. This
could not happen on a system with only one scheduler
since there would always be shorter timers in the
system.
Setting a timer larger than 49 days on Windows could
under rare circumstances cause the timeout to be
delayed.
* erts: Fix bug where the system installed openssl/md5.h would
be confused with the vendored md5.h.
* erts: The JIT has now been disabled on x86 Macs to prevent
annoying the "verifying shm-xyz" popups introduced in
MacOS Sonoma.
ARM Macs are unaffected.
* erts: Garbage collection of a process on a dirty scheduler
could collide with signal handling for that process
causing a crash of the runtime system. This bug was
introduced in OTP 25.3.2.8 and OTP 26.2.
* kernel: Fix group (that is the shell) to properly handle when
an get_until callback function returned {done, eof, []}
when an eof was detected.
* ssh: With this change, Curve25519 and Curve448 KEX methods
become most preferred (related to RFC8731).
* ssl: Legacy name handling could cause interop problems
between TLS-1.3/1.2 client and TLS-1.2 server.
- Fix for bsc#1222591
* Thu Feb 22 2024 Dominique Leuenberger <dimstar@opensuse.org>
- Use %patch -P N instead of deprecated %patchN.
* Tue Jan 23 2024 Simon Lees <sflees@suse.de>
- Disable rpmlint tests on SLE-15 where they currently fail
* Tue Jan 23 2024 Simon Lees <sflees@suse.de>
- This codestream wasn't affected by bsc#1207113
* Thu Jan 11 2024 Simon Lees <sflees@suse.de>
- Changes for 26.2.1:
* erts: Removed unnecessary PCRE source tar-ball.
* ssh: With this change (being response to CVE-2023-48795),
ssh can negotiate "strict KEX" OpenSSH extension with
peers supporting it; also
'chacha20-poly1305@openssh.com' algorithm becomes a
less preferred cipher.
If strict KEX availability cannot be ensured on both
connection sides, affected encryption modes(CHACHA and
CBC) can be disabled with standard ssh configuration.
This will provide protection against vulnerability, but
at a cost of affecting interoperability. See
Configuring algorithms in SSH. (bsc#1218192, CVE-2023-48795)
- Changes for 26.2:
* all: Replaced unintentional Erlang Public License 1.1
headers in some files with the intended Apache License
2.0 header.
* otp: The removal of the deprecated slave module, originally
planned for OTP 27, has been postponed to OTP 29.
* asn1: Fix benign warning from gcc 11 about mismatching call
to free().
* crypto: Enable engine support for OpenSSL versions 3.
* edoc: Emit <code> instead of <tt>.
- Disable test suite for now, it has many false positives and
takes a very long time.
* Wed Oct 25 2023 matwey.kornilov@gmail.com
- Changes for 26.1.2:
* erts: If the external term format encoding of an argument list
part of a distributed spawn operation was faulty, the newly
spawned remote process could misbehave. The misbehavior
included hanging or interpret an incoming message as an
argument list to use. This was very unlikely to happen unless
using an alternate implementation of the distribution protocol
which made a faulty encoding of the argument list. The child
process will now detect this error and terminate before
executing the user specified code.
* erts: Fix bugs where if the body of a matchspec would return a
map with a variable ('$1', '$_' etc) as one of the keys or
values and the variable was not an immidiate, the term would
not be copied to the receiving processes heap. This would later
corrupt the term in the table as the GC could place move
markers in it, which in turn would cause the VM to crash. Bug
has been present for since OTP 17.0.
* xmerl: The xmerl version 1.3.32 was released in OTP 26.0.1, but
the incorrect version number of 1.3.31.1 was used for it. This
incorrect version number continued to appear in OTP 26.0.2, OTP
26.1, and OTP 26.1.1. The actual xmerl code in these OTP
versions however corresponds to xmerl version 1.3.32.
- Changes for 26.1.1:
* wx: The wx application would fail to build on macOS with Xcode
15.
* compiler: The compiler could become extremely slow for modules
containing huge functions.
* stdlib: Garbage collect the shell process when reducing the
amount of saved history and results.
- Changes for 26.1:
* crypto: Fix VM crash caused by crypto being purged and reloaded
(by init:restart for example) on OS with musl libc (such as
Alpine linux).
* crypto: Improved understanding of LibreSSL versions. Support
chacha20 and chacha20_poly1305 for LibreSSL 3.7. Reflect
removal of support for the DSS/DSA algorithm which was done in
LibreSSL 2.6.1.
* crypto: FIPS supported by crypto for OpenSSL 3.0.* and 3.1.*.
* asn1: The ASN.1 compiler would ignore a constraint such as
(SIZE (1..4), ...), causing incorrect behavior of the encoding
and decoding function for the PER and UPER backends. Corrected
to handle the constraint in the same way as (SIZE (1..4, ...)).
* asn1: The JER backend has been internally refactored in a way
that is compatible for applications that use the documented
API. However, for a group of ASN.1 modules that depend on each
other (for example, S1AP-PDU-Descriptions, S1AP-Contents, and
so on), all modules in the group must be recompiled if on of
the group members is recompiled.
* observer: Closing the trace log window via the menu did not
work.
* erts: maps:put with existing key and identical value was not
optimized as a no-op correctly if having the same 32-bit hash
as another key in the map. In practice very rare and harmless.
* erts: Fixed an issue with truncated crash slogans on failed
emulator start.
* erts: Fixed a bug where the emulator was unable to determine
the current cgroup CPU quota.
* erts: A process optimized for parallel signal delivery could
under some circumstances lose wakeup information. That is, the
processes was not woken up to take care of the signal, so the
signal would not be taken care of until the process was woken
by another signal. Only processes configured with
message_queue_data set to off_heap utilize this optimization.
* erts: Function socket:close/1 could cause a VM crash on
Windows.
* erts: Fixed a bug in the ARM JIT where it could accidentally
add garbage trailing bits when creating bitstrings whose size
wasn't an even multiple of 8 bits.
* erts: Fix erlang:system_info/1 documentation to show correct
types.
* erts: Expanded the documentation about how to use the
standard_io, standard_error and user I/O devices. Added the
types io:standard_io/0, io:standard:error/0 and io:user/0.
* erts: Fix compilation with GNU termcap.
* erts: Delivery time of message signals to a process not
executing any receive expressions could become very long,
potentially infinite. For example, a process checking for
messages using process_info(self(), message_queue_len) or
process_info(self(), messages) and avoiding to execute a
receive expression matching on messages could be very slow in
detecting new messages. Note that you are still discouraged
from using process_info() this way. A process that wants to
check if there are messages available to handle should execute
a receive expression matching on messages.
* erts: On AArch64 (ARM64), when calculating both the quotient
and remainder with a divisor begin a power two, the remainder
could be incorrectly calculated.
* erts: Fix bug causing "magic" references in a compressed ETS
table to not keep the referred object alive. The symptom would
be the referred object being garbage collected prematurely and
the reference appearing stale, not referring to anything.
Examples of such magically referred objects are atomics and NIF
resources.
* erts: Matching out short bitstrings with a fixed size not
divisible by 8 could could lead to the runtime system
terminating with an "Overrun heap and stack" error.
* erts: A constant flow of incoming non-message signals could
prevent a process needing to execute dirty from doing so.
* erts: A BEAM file usually contains a chunk with the tag "Type"
containing type information that can be used by the JIT. The
beam_lib:strip/1 takes care to preserve that chunk, but a
build/release tool that does customized stripping could
accidentally remove the chunk. Loading a BEAM file without the
"Type" chunk could cause incorrect behavior of the loaded code.
* erts: gen_udp:recv/* for Unix Domain Socket in binary mode and
passive mode has been fixed to not crash.
* erts: The cleanup operation of not yet delivered signals to a
terminated process yielded excessively.
* erts: Fixed minor hashing issue with the local option of
term_to_binary()/term_to_iovec().
* erts: Update gen_tcp_socket and gen_udp_socket to handle
'completion' (socket on Windows).
* erts: Add support for Unix Domain Sockets (only for STREAM
sockets) on Windows for 'socket'.
* erts: In Erlang/OTP 27, by default escripts will be compiled
before being executed. That means that the compiler application
must be installed. It is possible to force the escript to be
interpreted by adding the directive -mode(interpret). to the
escript file. In Erlang/OTP 28, support for interpreting an
escript will be removed.
* erts: Add basic support for socket ioctl on Windows.
* erts: Removed erts/etc/darwin/Info.plist, as it is no longer
necessary after macos 10.12
* erts: Add support for (Windows) socket option exclusiveaddruse.
* erts: [socket] Add support for the 'nopush' option.
* erts: Add support for socket option 'BSP STATE'.
* erts: Add tcp socket options 'keepcnt', 'keepidle' and
'keepintvl'.
* erts: Add support for misc (Windows) socket options
('max_msg_size' and 'maxdg').
* compiler: The compiler could run forever when compiling a call
to is_record/3 with a huge positive tuple size. The call
is_record(A, a, 0) would crash the compiler when used in a
function body. When used in a guard the compiler would emit
incorrect code that would accept {a> as a record.
* compiler: Fixed a bug that caused dialyzer to crash when
analyzing bogus code that contained the literal atom undefined
in segment sizes.
* compiler: The compiler would crash when compiling some modules
that contained a call to erlang:load_nif/2.
* compiler: Fixed a bug that caused the compiler to crash on
legal code.
* compiler: The compiler could crash when attempting to compile a
call to is_list/1 in a complex expression.
* compiler: A complex guard expression using the or operator
could succeed when it was supposed to fail.
* compiler: Compiling nested try/catch and catch expression could
result in an internal compiler error.
* compiler: Using the bnot operator in a complex expression could
cause the compiler to terminate with an internal consistency
failure diagnostic.
* compiler: Fixed a bug that caused the compiler to crash in a
binary optimization pass.
* compiler: The compiler could terminate with an internal error
when attempting to compile a binary pattern that could not
possibly match.
* compiler: Fixed various performance issues related to the alias
optimization pass.
* erl_docgen: Expanded the documentation about how to use the
standard_io, standard_error and user I/O devices. Added the
types io:standard_io/0, io:standard:error/0 and io:user/0.
* mnesia: Do not delete old backup file if the new backup fails.
* megaco: Make megaco transports handle gen_tcp | gen_udp with
socket backend on Windows (completion).
* common_test: With this change, ct_hooks manual refers to CTH
execution order section in user guide.
* common_test: With this change, Config data from
pre_end_per_testcase hook is delivered to post_end_per_testcase
callback in case of testcase timetrap or linked process crash.
* common_test: With this change, remaining references to not
supported vts tool in ct_run are removed (mainly relates to
docs and ct_run help message).
* common_test: With this change, prompt search functionality in
ct_telnet handles unicode input.
* common_test: Expanded the documentation about how to use the
standard_io, standard_error and user I/O devices. Added the
types io:standard_io/0, io:standard:error/0 and io:user/0.
* stdlib: The compiler could run forever when compiling a call to
is_record/3 with a huge positive tuple size. The call
is_record(A, a, 0) would crash the compiler when used in a
function body. When used in a guard the compiler would emit
incorrect code that would accept {a> as a record.
* stdlib: Fix bug in ets:tab2file that could make it fail if
another Erlang process created the same file at the same time.
* stdlib: An {else_clause,Value} exception will now be reported
nicely in the shell.
* stdlib: Correct return value for error case, so that it matches
the documented and intended return value {error,
{already_started, pid()} when local registered names are used.
* stdlib: sys:get_state/1,2 and sys:replace_state/2,3 has been
corrected to handle a state named error as a state name, not as
a failed system callback. For the standard server behaviours
this was an issue only for gen_statem (and gen_fsm) when the
state name was error, and for gen_server if the complete state
was {error,_}.
* stdlib: Multiple problems were fixed in
filelib:safe_relative_path/2. If its second argument was a path
that contained symbolic links, an incorrect result patch could
be returned. Also, paths were sometimes falsely considered
unsafe.
* stdlib: Fix deadlock when erl.exe is used as part of a pipe on
Windows and trying to set the encoding of the standard_io
device.
* stdlib: Expanded the documentation about how to use the
standard_io, standard_error and user I/O devices. Added the
types io:standard_io/0, io:standard:error/0 and io:user/0.
* stdlib: Fix h/2,3 to properly render multi-clause
documentation.
* stdlib: Timers created by timer:apply_after/4,
apply_interval/4, and apply_repeatedly/4 would silently fail to
do the apply if it was not possible to spawn a process when the
timer expired. This has now been corrected, and if the spawn
fails, the system will be taken down producing a crash dump.
* stdlib: When an Erlang source file lacked a module definition,
there would be a spurious "module name must not be empty"
diagnostic for each spec in the file.
* stdlib: The argument descriptions for option types in argparse
have been made less ambiguous.
* stdlib: Clarified the documentation of normal shutdown reason
on gen_server:call/2,3
* stdlib: Pattern matching and equivalence (=:=, =/=) comparisons
on 0.0 will now raise a warning, as it will no longer be
considered equivalent to -0.0 in OTP 27. If a match on 0.0
specifically is desired (distinct from -0.0), the warning can
be suppressed by writing +0.0 instead. The arithmetic
comparison operators are unaffected, including arithmetic
equality (==). *** POTENTIAL INCOMPATIBILITY ***
* stdlib: The semantics of the gen_{server,statem,event}
behaviour's synchronous start behaviour introduced in OTP-26.0
with OTP-18471, has been clarified in the documentation.
* stdlib: Added functionality to set a custom multiline prompt.
* stdlib: A warning for (accidental use of) Triple-Quoted Strings
has been implemented as per EEP 64. *** POTENTIAL
INCOMPATIBILITY ***
* stdlib: The keyboard shortcuts for the shell are now
configurable.
* kernel: Fixed an issue with truncated crash slogans on failed
emulator start.
* kernel: Fix shell:start_interactive function specification.
* kernel: Fix code:get_doc/1 to return missing, when it can't
find erts instead of crashing.
* kernel: Function socket:close/1 could cause a VM crash on
Windows.
* kernel: Fix deadlock when erl.exe is used as part of a pipe on
Windows and trying to set the encoding of the standard_io
device.
* kernel: Expanded the documentation about how to use the
standard_io, standard_error and user I/O devices. Added the
types io:standard_io/0, io:standard:error/0 and io:user/0.
* kernel: Fix logger's overload protection mechanism to only
fetch memory used by messages when needed.
* kernel: Fixed a number of socket-related issues causing
incompatibilities with gen_tcp and gen_udp respectively.
* kernel: gen_tcp:connect with socket address and socket (inet-)
backend fails because of missing callback function.
* kernel: The DNS RR cache used by `inet_res` has been fixed to
preserve insert order, which is beneficial when the DNS server
returns RRs in some specific order for e.g load balancing
purposes.
* kernel: The options `reuseport`, `reuseport_lb` and
`exclusiveaddruse` were accidentally not allowed for e.g
`gen_udp:open/1,2`, which has now been corrected.
* kernel: gen_udp:recv/* for Unix Domain Socket in binary mode
and passive mode has been fixed to not crash.
* kernel: Fixed issue where cursor would not be placed at the end
of the expression when navigating shell history.
* kernel: Update gen_tcp_socket and gen_udp_socket to handle
'completion' (socket on Windows).
* kernel: Add support for Unix Domain Sockets (only for STREAM
sockets) on Windows for 'socket'.
* kernel: Add basic support for socket ioctl on Windows.
* kernel: The file:location/0 type is now exported.
* kernel: Add support for (Windows) socket option
exclusiveaddruse.
* kernel: [socket] Add support for the 'nopush' option.
* kernel: Add support for socket option 'BSP STATE'.
* kernel: Add tcp socket options 'keepcnt', 'keepidle' and
'keepintvl'.
* kernel: Add support for misc (Windows) socket options
('max_msg_size' and 'maxdg').
* kernel: The keyboard shortcuts for the shell are now
configurable.
* kernel: Optimized code_server to reduce repeated work when
loading the same module concurrently.
* debugger: The call int:no_break(Module) did not remove any
breakpoints.
* debugger: The maybe expression is now supported in the
Debugger.
* debugger: The maybe expression is now supported in the
Debugger.
* debugger: The call int:no_break(Module) did not remove any
breakpoints.
* ssl: Avoid function clause error in ssl:getopts/2 by handling
that inet:getopts may return an empty list during some
circumstances, such as the socket being in a closing state.
* ssl: The API function `ssl:recv/3` has been tightened to
disallow negative length, which has never been documented to
work, but was passed through and caused strange errors.
* ssl: When a client initiated renegotiation was rejected and the
client socket was in active mode the expected error message to
the controlling process was not sent.
* ssl: Add some guidance for signature algorithms configuration
in ssl applications users guide.
* snmp: Make snmp handle gen_udp with socket backend on Windows
(completion).
* public_key: Country name comparison shall be case insensitive
* public_key: Add check to disallow duplicate certs in a path
* inets: With this change, re_write httpd works as expected and
does not return error.
* inets: Fixed a bug so httpd does not crash when stopped at the
wrong time during TLS connection negotiation, or any other
theoretically as slow connection setup.
* inets: Enhance error handling and avoid that the HTTP client
hangs on headers provided on the wrong format.
* inets: With this change, error report generated by httpd during
connection setup contains socket type information.
* inets: Stop and restart of the httpd server in the Inets
application has been refactored to a more synchronous and OTP
supervisor friendly approach. This should increase stability
and for example avoid a supervisor report from
httpd_connection_sup about killed child process(es) in some
cases when stopping or restarting httpd.
* dialyzer: Fixed a bug that caused dialyzer to crash when
analyzing bogus code that contained the literal atom undefined
in segment sizes.
* dialyzer: Dialyzer could crash when attempting to analyze a
module that defined a type called product/.
- Changes for 26.0.2:
* erts: Fix using the IME (Input Method Editor) to enter text in
cmd.exe and powershell.exe on Windows.
* erts: Multiple socket:accept calls issue. When making multiple
accept calls, only the last call is active.
* erts: Fix the shell to ignore terminal delay when the terminal
capabilities report that they should be used.
* erts: Fix "oldshell" to echo characters while typing on
Windows.
* erts: On Windows, a call to the function socket:close, when
there are waiting active calls to read, write or accept
functions, could hang.
* erts: Fix issues when reading or configuring standard_io on
Windows when erl.exe is started using -noshell flag.
* erts: The following functions are now much faster when given a
long list or binary:
* erts: On AArch64 (ARM64), equality and non-equality tests with
literal bitstrings could succeed when they should fail and vice
versa.
* compiler: Fixed a type handling bug that would cause an
internal consistence failure for correct code.
* compiler: Fixed a bug that could cause the stack trace of throw
exceptions to be erroneously optimized out.
* compiler: Complex guard expression using 'or' were not always
fully evaluated, making guards that were supposed to fail
succeed.
* stdlib: Fix bug where when you entered Alt+Enter in the
terminal, the cursor would move to the last line, instead of
moving to the next line.
* stdlib: Fix eof handling when reading from stdin when erlang is
started using -noshell.
* stdlib: Fixed problem where output would disappear if it was
received after a prompt was written in the shell.
* stdlib: The following functions are now much faster when given
a long list or binary:
* kernel: Fix bug where when you entered Alt+Enter in the
terminal, the cursor would move to the last line, instead of
moving to the next line.
* kernel: Fix so that the shell does not crash on startup when
termcap is not available.
* kernel: Multiple socket:accept calls issue. When making
multiple accept calls, only the last call is active.
* kernel: Fix the shell to ignore terminal delay when the
terminal capabilities report that they should be used.
* kernel: Fix "oldshell" to echo characters while typing on
Windows.
* kernel: Fix eof handling when reading from stdin when erlang is
started using -noshell.
* kernel: On Windows, a call to the function socket:close, when
there are waiting active calls to read, write or accept
functions, could hang.
* kernel: Fix issues when reading or configuring standard_io on
Windows when erl.exe is started using -noshell flag.
* kernel: gen_udp:connect with inet_backend = socket fails when
the Address is a hostname (string or atom).
* kernel: Fixed problem which would cause shell to crash if
particular escape sequence was written to stdout.
* kernel: Fixed problem where output would disappear if it was
received after a prompt was written in the shell.
* kernel: Fix a crash where the location of erts could not be
found in rebar3 dev builds.
* kernel: Introduce the KERNEL application parameter
standard_io_encoding that can be used to set the default
encoding for standard_io. This option needs to be set to latin1
if the application wants to treat all input data as bytes
rather than utf-8 encoded characters.
* ssl: Added keylog information to all protocol versions in
ssl:connection_information/2.
* ssl: Add RFC-6083 considerations for DTLS to enable gen_sctp
based callback for the transport.
* ssh: Added multiline editing support to ssh clients connected
through OTP ssh daemon.
* Sat Jun 24 2023 Matwey Kornilov <matwey.kornilov@gmail.com>
- Changes for 26.0.1:
* erts: Build of the socket nif failed on Solaris 11.
* erts: Fixed two reduction-counting bugs relating to binaries.
* erts: Constructing a binary segment not aligned with a byte
boundary, with a size not fitting in 31 bits, and with a value
not fitting in a 64-bit word could crash the runtime system.
* erts: When a binary construction failed because of bad size for
a segment, the error information was not always correct.
* erts: Fixed a crash when calling a fun that was defined in a
module that had been upgraded.
* kernel: The POSIX error exdev was sometimes incorrectly
described as "cross domain link" in some error messages.
* kernel: Corrected the socket send function description (send
with Timeout = nowait). The send function(s) could not return
{ok, {RestData, SelectInfo}}
* stdlib: The POSIX error exdev was sometimes incorrectly
described as "cross domain link" in some error messages.
* ssl: Make sure that selection of client certificates handle
both TLS-1.3 and TLS-1.2 names correctly. Could cause valid
client certificate to not be selected, and an empty client
certificate message to be sent to server.
* ssl: Improved ssl:format_error/1 to handle more error tuples.
* ssl: Fixed hanging ssl:connect when ssl application is not
started.
* ssl: Correct handling of retransmission timers, current
behavior could cause unwanted delays.
* inets: Do not make the default ssl options by calling
httpc:ssl_verify_host_options(true) if ssl options are supplied
by the user.
* xmerl: New options to xmerl_scan and xmerl_sax_parser so one
can limit the behaviour of the parsers to avoid some XML
security issues. xmerl_scan gets one new option:
xmerl_sax_parser gets the following options: The old option
skip_external_dtd is still valid and the same as
{external_entities, none} and {fail_undeclared_ref, false} but
just affects DTD's and not other external references.
* compiler: Fixed a bug where a failing bsl expression in a guard
threw an exception instead of causing the guard to fail.
* compiler: Fixed a bug that would case the validator to reject
legal code.
* compiler: The compiler could re-order clauses matching binaries
so that the incorrect clause would match. That could only
happen for code that used the option {error_location,line} or
for code without line or column number information (e.g.
generated by a parse transform).
* compiler: Complex guard expression using the or operator and
guard BIFs that can fail could sometimes be miscompiled so that
the guard would succeed even if a call to a guard BIF failed.
* compiler: With optimizations disabled, a try/catch construct
could return an incorrect value.
* compiler: In rare circumstance, a combination of binary
construction and binary_part/3 would cause the compiler to
generate unsafe code that would crash the runtime system.
* compiler: The compiler could be very slow when compiling guards
with multiple guard tests separated with 'or' or ';'.
* compiler: Complex guard expressions using 'or' and map updates
could succeed even if the map update failed.
* Sat Jun 24 2023 Matwey Kornilov <matwey.kornilov@gmail.com>
- Version 26.0:
* Leex has been extended with optional column number support.
* The family of enumeration functions in module lists has been
extended with enumerate/3 that allows a step value to be
supplied.
* Update Unicode to version 15.0.0.
* proc_lib:start*/* has become synchronous when the started
process fails. This requires that a failing process use a new
function proc_lib:init_fail/2,3, or exits, to indicate failure. All
OTP behaviours have been fixed to do this.
* auto-complete of variables, record names, record fields names,
map keys, function parameter types and filenames.
* Open external editor in the shell to edit the current
expression.
* defining records (with types), functions, specs and types in
the shell.
* Creation and matching of binaries with segments of fixed sizes
have been optimized.
* Creation and matching of UTF-8 segments have been optimized.
* Appending to binaries has been optimized.
* The compiler and JIT now generate better code for creation of
small maps where all keys are literals known at compile time.
* Thanks to the optimizations above the performance of the base64
module has been significantly improved. For example, on an
x86_64 system with the JIT both encode and decode are almost
three times faster than in Erlang/OTP 25.
* Map comprehensions as suggested in EEP 58 has now been
implemented.
* Some map operations have been optimized by changing the
internal sort order of atom keys. This changes the
(undocumented) order of how atom keys in small maps are printed
and returned by maps:to_list/1 and maps:next/1. The new order
is unpredictable and may change between different invocations
of the Erlang VM.
* Introducing the new function maps:iterator/2 for creating an
interator that return the map elements in a deterministic
order. There are also new modifiers k and K for the format
string in io:format() to support printing map elements ordered.
* Added the new built-in type dynamic() introduced in EEP 61, PR
introducing EEP 61 improving support for gradual type checkers.
* Dialyzer has a new incremental mode that be invoked by giving
the --incremental option when running Dialyzer. This new
incremental mode is likely to become the default in a future
release.
* Multi time warp mode is now enabled by default. This assumes
that all code executing on the system is time warp safe.
* Support for UTF-8 atoms and strings in the NIF interface
including new functions enif_make_new_atom,
enif_make_new_atom_len and enif_get_string_length.
* The BIFs min/2 and max/2 are now allowed to be used in guards
and match specs.
* Improved the selective receive optimization, which can now be
enabled for references returned from other functions. This
greatly improves the performance of gen_server:send_request/3,
gen_server:wait_response/2, and similar functions.
* It is no longer necessary to enable a feature in the runtime
system in order to load modules that are using it. It is
sufficient to enable the feature in the compiler when compiling
it.
* inet:setopts/2 has got 3 new options: reuseport, reuseport_lb
and exclusiveaddruse.
* Fix so that -fno-omit-frame-pointer is applied to all of the
Erlang VM when using the JIT so that tools, such as perf, can
crawl the process stacks.
* In the lists module, the zip family of functions now takes
options to allow handling lists of different lengths.
* Added the zip:zip_get_crc32/2 function to retrieve the CRC32
checksum from an opened ZIP archive. gen_server optimized by
caching callback functions
* The modules Erlang DNS resolver inet_res and helper modules
have been updated for RFC6891; to handle OPT RR with DNSSEC OK
(DO) bit.
* Introduced application:get_supervisor/1.
* Cache OTP boot code paths, to limit how many folders that are
being accessed during a module lookup. Can be disabled with
- cache_boot_path false.
* Support for Kernel TLS (kTLS), has been added to the SSL
application, for TLS distribution (-proto_dist inet_tls), the
SSL option {ktls, true}.
* Improved error checking and handling of ssl options.
* Mitigate memory usage from large certificate chains by lowering
the maximum handshake size. This should not effect the common
cases, if needed it can be configured to a higher value.
* For security reasons the SHA1 and DSA algorithms are no longer
among the default values.
* Add encoding and decoding of use_srtp hello extension to
facilitate for DTLS users to implement SRTP functionality.
* Fri Jun 23 2023 matwey.kornilov@gmail.com
- Changes for 25.3.2.2:
* compiler: The compiler could be very slow when compiling guards
with multiple guard tests separated with 'or' or ';'.
- Changes for 25.3.2.1:
* xmerl: New options to xmerl_scan and xmerl_sax_parser so one
can limit the behaviour of the parsers to avoid some XML
security issues. xmerl_scan gets one new option:
xmerl_sax_parser gets the following options: The old option
skip_external_dtd is still valid and the same as
{external_entities, none} and {fail_undeclared_ref, false} but
just affects DTD's and not other external references.
* erts: Fixed a crash during tracing on certain platforms that
cannot use the machine stack for Erlang code (mainly OpenBSD
and Linux with musl).
* erts: Constructing a binary segment not aligned with a byte
boundary, with a size not fitting in 31 bits, and with a value
not fitting in a 64-bit word could crash the runtime system.
* erts: Further robustify implementation of large maps (> 32
keys). Keys that happen to have same internal 32-bit hash
values are now put in collision nodes which are traversed with
linear search. This removes the demand for the internal hash
function when salted to eventually produce different hashes for
all possible pairs of unequal terms.
* stdlib: Static supervisors are very idle processes after they
have started so they will now be hibernated after start to
improve resource management.
* compiler: Fixed a bug where a failing bsl expression in a guard
threw an exception instead of causing the guard to fail.
* compiler: Complex guard expression using the or operator and
guard BIFs that can fail could sometimes be miscompiled so that
the guard would succeed even if a call to a guard BIF failed.
* Sun May 07 2023 matwey.kornilov@gmail.com
- Changes for 25.3.2:
* compiler: Fixed type handling bugs that could cause an internal
error in the compiler for correct code.
* os_mon: Avoid error report from failing erlang:port_close at
shutdown of cpu_sup and memsup. Bug exists since OTP 25.3
(os_mon-2.8.1).
* erts: If a runtime system which was starting the distribution
already had existing pids, ports, or references referring to a
node with the same nodename/creation pair that the runtime
system was about to use, these already existing pids, ports, or
references would not work as expected in various situations
after the node had gone alive. This could only occur if the
runtime system was communicated such pids, ports, or references
prior to the distribution was started. That is, it was
extremely unlikely to happen unless the distribution was
started dynamically and was even then very unlikely to happen.
The runtime system now checks for already existing pids, ports,
and references with the same nodename/creation pair that it is
about to use. If such are found another creation will be chosen
in order to avoid these issues.
- Changes for 25.3.1:
* snmp: Attempts to minimize the number of the error reports
during a failed agent init.
* compiler: When a map update such as #{}#{key:=value} that
should fail with an exception was unused, the exception would
be lost.
* compiler: Fixed bug in the validator that made it reject valid
code.
* crypto: With this change, random errors are fixed for
crypto:generate_key calls with OpenSSL 3.
* erts: Fixed a bug in the loader that prevented certain modules
compiled with no_ssa_opt from being loaded.
* erts: Implementations of the call() driver callback that
returned a faulty encoded result could cause a memory leak and
could cause invalid data on the heap of the processes calling
erlang:port_call/3.
* erts: Fixed a memory corruption issue when upgrading code. The
bug was introduced in OTP 25.3
* erts: Fixed configure tests for a few ARM-specific
instructions, which prevented the emulator from being built on
some platforms.
* erts: Aliases created in combination with a monitor using the
{alias, explicit_unalias} option stopped working from remote
nodes when a 'DOWN' signal had been received due to the monitor
or if the monitor was removed using the erlang:demonitor() BIF.
This bug was introduced in OTP 24.3.4.10 and OTP 25.3.
* erts: In rare circumstances, bit syntax matching of an invalid
code point for a utf32 would crash the runtime system.
* erts: Building the runtime system failed when native atomic
support was missing. Note that execution on such systems have
only been rudimentary tested.
* erl_interface: Fixed configure tests for a few ARM-specific
instructions, which prevented the emulator from being built on
some platforms.
* eldap: Added a new function eldap:info/1 that returns the
socket and the transport protocol for the eldap connection.
* inets: Correct timing related pipelining/keepalive queue bug,
that could result in unexpected "socket_remotly_closed" errors.
* inets: With this change, upon remote socket closure current
request is added to a retried queue (either pipeline or
keep_alive, but not both).
* ssl: With this change, ssl:connection_information/2 returns
correct keylog data after TLS1.3 key update.
* ssl: Client signature algorithm list input order is now honored
again , it was accidently reversed by a previous fix.
* stdlib: The type specs in the erl_parse module has been updated
to include the maybe construct and the ! operator.
* wx: Improve debug prints from the nifs. Some minor fixes for
wxWidgets-3.2. Fixed OpenGL debug functions.
* Sat Mar 25 2023 matwey.kornilov@gmail.com
- Changes for 25.3:
* reltool: Fixed a bug that would cause analysis to crash.
* stdlib: Fixed a bug that would cause analysis to crash.
* stdlib: Fixed a crash when formatting stack traces for error
reports.
* stdlib: Instead of crashing, the list_to_integer/1 and
list_to_integer/2 BIFs now raise the system_limit exception for
overlong lists that can't be converted to integers. Similarly,
the string:to_integer/1 BIF now returns {error,system_limit}
for overlong lists.
* stdlib: Removal of non-necessary undefined types added to the
state's supervisor record.
* compiler: Fixed a bug that would cause the compiler to hang.
* compiler: Fixed a crash when compiling code that contained
maybe expressions.
* compiler: Constructing a binary with an explicit size of all
for a binary segment would crash the compiler.
* compiler: The compiler would generate incorrect code for the
following type of expression: Pattern = BoundVar1 = . . . =
BoundVarN = Expression An exception should be raised if any of
the bound variables have different values than Expression. The
compiler would generate code that would cause the bound
variables to be bound to the value of Expressionwhether the
value matched or not.
* xmerl: Replace size/1 with either tuple_size/1 or byte_size/1
The size/1 BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer. When one knows that the
value being tested must be a tuple, tuple_size/1 should always
be preferred. When one knows that the value being tested must
be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* megaco: Replace size/1 with either tuple_size/1 or byte_size/1
The size/1 BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer. When one knows that the
value being tested must be a tuple, tuple_size/1 should always
be preferred. When one knows that the value being tested must
be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* debugger: Fixed a bug that would cause analysis to crash.
* erts: Fixed a bug on Windows where file:read_file_info/1 would
fail for files with corrupt metadata.
* erts: Fix process_info(_, binary) to again include "writable
binaries" which were lost in OTP-25.0. Writable binaries are an
optimization used when binaries are appended upon in a loop.
* erts: Fix rare race when receiving fragmented messages on a
terminating connection. Could potentially cause memory leaks as
well as double free crashes. Bug exists since OTP 22.0.
* erts: Fixed bug that could maybe cause problems when a file
descriptor number is closed by a linked in driver and then
opened (reused) and passed to enif_select by a NIF. No actual
symptoms seen, only failed internal assertions in debug build.
* erts: The runtime system could crash when tracing a process
executing on a dirty scheduler.
* erts: In the binary syntax, attempting to match out integers
with size exceeding 2 GiB could crash the runtime system.
* erts: Fixed edge case in floating-point negation where A = 0.0,
B = -A did not produce B = -0.0 on x86_64 JIT.
* erts: Fixed an issue in the JIT that could crash the emulator
on some platforms.
* erts: Added meta data to the windows installer.
* erts: Fixed ETS insertion order into bag and duplicate_bag of
tuples with identical keys when passed in a list to
ets:insert/2. The insert order has been head-to-tail but was
accidentally changed in OTP 23.0. For bag it was reverted
(tail-to-head), while for duplicate_bag it was sometimes
reverted depending on the length of the list and number of
"reductions" left for the calling process. This fix changes the
insert order of ets:insert/2 back to always be head-to-tail of
the list argument.
* erts: With the JIT for AArch64 (AMD64), calling bxor in with
non-integer arguments in a guard would crash the runtime
system.
* erts: Fix bug regarding process flag max_heap_size. Could cause
strange behavior when a process was killed due to exceeding the
limit.
* erts: Fixed binary comprehensions to be similar to other
creation of binary data with respect to its contribution of
triggering garbage collection.
* erts: In rare circumstances, when a process exceeded its
allowed heap size set by option max_heap_size, it would not be
killed as it should be, but instead enter a kind of zombie
state it would never get out of.
* erts: Instead of crashing, the list_to_integer/1 and
list_to_integer/2 BIFs now raise the system_limit exception for
overlong lists that can't be converted to integers. Similarly,
the string:to_integer/1 BIF now returns {error,system_limit}
for overlong lists.
* erts: Active process aliases of a process at its termination
leaked memory.
* erts: Support for fully asynchronous distributed signaling
where send operations never block. This functionality is by
default disabled and can be enabled per process. For more
information see the documentation of process_flag(async_dist,
Bool).
* erts: Added the +JPperf no_fp option to explicitly disable
Erlang frame pointers otherwise added when using the +JPperf
map option.
* erl_interface: Accept connection setup from OTP 23 and 24 nodes
that are not using epmd.
* erl_interface: The ei API for decoding/encoding terms is not
fully 64-bit compatible since terms that have a representation
on the external term format larger than 2 GB cannot be handled.
* syntax_tools: erl_syntax_lib:annotate_bindings/1,2 will now
properly annotate named functions and their arguments.
* kernel: Fixed a bug on Windows where file:read_file_info/1
would fail for files with corrupt metadata.
* kernel: Accept connection setup from OTP 23 and 24 nodes that
are not using epmd.
* public_key: As different solutions of verifying certificate
revocation exists move the decode of 'CRLDistributionPoints' so
that it will only be decode. When it is actually used in the
verification process. This would enable interoperability with
systems that use certificates with an invalid empty
CRLDistributionPoints extension that they want to ignore and
make verification by other means.
* public_key: public_key:pkix_path_validation validates
certificates expiring after 2050
* public_key: Do not leave exit message in message queue after
calling cacerts_load() on MacOS.
* public_key: Replace size/1 with either tuple_size/1 or
byte_size/1 The size/1 BIF is not optimized by the JIT, and its
use can result in worse types for Dialyzer. When one knows that
the value being tested must be a tuple, tuple_size/1 should
always be preferred. When one knows that the value being tested
must be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* ssl: Fixed that new dtls connections from the same client ip
port combination works. If there is a process waiting for
accept the new connection will connect to that, otherwise it
will try to re-connect to the old server connection.
* ssl: When shutting down a node that uses SSL distribution
(-proto_dist inet_tls), a confusing error message about an
unexpected process exit was printed. This particular message is
no longer generated.
* ssl: fixes the type spec for ssl:format_error/1
* ssl: Replace size/1 with either tuple_size/1 or byte_size/1 The
size/1 BIF is not optimized by the JIT, and its use can result
in worse types for Dialyzer. When one knows that the value
being tested must be a tuple, tuple_size/1 should always be
preferred. When one knows that the value being tested must be a
binary, byte_size/1 should be preferred. However, byte_size/1
also accepts a bitstring (rounding up size to a whole number of
bytes), so one must make sure that the call to byte_size/ is
preceded by a call to is_binary/1 to ensure that bitstrings are
rejected. Note that the compiler removes redundant calls to
is_binary/1, so if one is not sure whether previous code had
made sure that the argument is a binary, it does not harm to
add an is_binary/1 test immediately before the call to
byte_size/1.
* jinterface: Accept connection setup from OTP 23 and 24 nodes
that are not using epmd.
* os_mon: The port programs used by cpu_sup and memsup are now
gracefully shut down when cpu_sup and memsup are shut down.
* eunit: Replace size/1 with either tuple_size/1 or byte_size/1
The size/1 BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer. When one knows that the
value being tested must be a tuple, tuple_size/1 should always
be preferred. When one knows that the value being tested must
be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* crypto: A user defined runtime library path configured using
- -with-ssl-rpath=<PATHS> could fail to be enabled.
* crypto: Ensure that configure fails if a user defined runtime
library path has been passed by the user, but cannot set.
* mnesia: Improved consistency for dirty writes when a table was
added with add_table_copy/3. Fixed a problem with sticky write,
which could lead to inconsistent data.
* mnesia: Replace size/1 with either tuple_size/1 or byte_size/1
The size/1 BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer. When one knows that the
value being tested must be a tuple, tuple_size/1 should always
be preferred. When one knows that the value being tested must
be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* common_test: Renamed undocumented macro CT_PEER/3 to
CT_PEER_REL/3.
* ssh: With this change, PKCS8 formatted private key file is
properly decoded and SSH daemon with such key can be started.
* ssh: Replace size/1 with either tuple_size/1 or byte_size/1 The
size/1 BIF is not optimized by the JIT, and its use can result
in worse types for Dialyzer. When one knows that the value
being tested must be a tuple, tuple_size/1 should always be
preferred. When one knows that the value being tested must be a
binary, byte_size/1 should be preferred. However, byte_size/1
also accepts a bitstring (rounding up size to a whole number of
bytes), so one must make sure that the call to byte_size/ is
preceded by a call to is_binary/1 to ensure that bitstrings are
rejected. Note that the compiler removes redundant calls to
is_binary/1, so if one is not sure whether previous code had
made sure that the argument is a binary, it does not harm to
add an is_binary/1 test immediately before the call to
byte_size/1.
* inets: With this change, handling of URI to a folder, with
missing trailing / and a query component present is fixed.
* inets: Adds more type information to the inets app, thus
improving the errors that static analysis tools can detect. The
addition of type information to records and the updates to
function heads help static analysis tools to understand that
some values in the records cannot be 'undefined', thus making
static tools to type check correctly more modules in the inets
app
* inets: Replace size/1 with either tuple_size/1 or byte_size/1
The size/1 BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer. When one knows that the
value being tested must be a tuple, tuple_size/1 should always
be preferred. When one knows that the value being tested must
be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* snmp: Replace size/1 with either tuple_size/1 or byte_size/1
The size/1 BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer. When one knows that the
value being tested must be a tuple, tuple_size/1 should always
be preferred. When one knows that the value being tested must
be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* ftp: Replace size/1 with either tuple_size/1 or byte_size/1 The
size/1 BIF is not optimized by the JIT, and its use can result
in worse types for Dialyzer. When one knows that the value
being tested must be a tuple, tuple_size/1 should always be
preferred. When one knows that the value being tested must be a
binary, byte_size/1 should be preferred. However, byte_size/1
also accepts a bitstring (rounding up size to a whole number of
bytes), so one must make sure that the call to byte_size/ is
preceded by a call to is_binary/1 to ensure that bitstrings are
rejected. Note that the compiler removes redundant calls to
is_binary/1, so if one is not sure whether previous code had
made sure that the argument is a binary, it does not harm to
add an is_binary/1 test immediately before the call to
byte_size/1.
* dialyzer: Fixed a bug that would cause analysis to crash.
* dialyzer: Replace size/1 with either tuple_size/1 or
byte_size/1 The size/1 BIF is not optimized by the JIT, and its
use can result in worse types for Dialyzer. When one knows that
the value being tested must be a tuple, tuple_size/1 should
always be preferred. When one knows that the value being tested
must be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
* tftp: Replace size/1 with either tuple_size/1 or byte_size/1
The size/1 BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer. When one knows that the
value being tested must be a tuple, tuple_size/1 should always
be preferred. When one knows that the value being tested must
be a binary, byte_size/1 should be preferred. However,
byte_size/1 also accepts a bitstring (rounding up size to a
whole number of bytes), so one must make sure that the call to
byte_size/ is preceded by a call to is_binary/1 to ensure that
bitstrings are rejected. Note that the compiler removes
redundant calls to is_binary/1, so if one is not sure whether
previous code had made sure that the argument is a binary, it
does not harm to add an is_binary/1 test immediately before the
call to byte_size/1.
- Changes for 25.2.3:
* erts: Comparisons between small numbers and pids or ports would
in some edge cases say that the number was greater than the pid
or port, violating the term order.
* erts: process_info(Pid, status) when Pid /= self() could return
an erroneous result.
* ssl: Maximize compatibility by ignoring change_cipher_spec
during handshake even if middle_box_mode is not negotiated
(mandated by client)
* ssl: Move assert of middlebox message after an
hello_retry_request to maximize interoperability. Does not
changes semantics of the protocol only allows unexpected
message delay from server.
* ssh: With this change, ssh application does not crash when
formatting some of info reports for unsuccessful connections.
* ssh: With this change, ssh does not log extensively long
messages.
* inets: Ensure graceful shutdown
* inets: Return type of the type specification for function
httpc:cookie_header/{1,2,3} has been fixed from -spec
cookie_header(url()) -> [{ field(), value() }] | {error,
Reason} to -spec cookie_header(url()) -> { field(), value() } |
{error, Reason}
- Changes for 25.2.2:
* ftp: Fixes calls to ftp:nlist/2 returning {error, epath} when
the file / folder exists
- Changes for 25.2.1:
* compiler: Fixed a bug that could cause legal code to fail
validation.
* compiler: Eliminated a rare crash in the beam_types module.
* erts: Fixed a bug in selective receive optimization that could
crash 32-bit emulators.
* erts: A race condition which was very rarely triggered could
cause the signal queue of a process to become inconsistent
causing the runtime system to crash.
* kernel: The tcp connect option 'bind_to_device' could not be
used with inet_backend = 'socket'. 'inet' requires value type
binarry() and 'socket' requires value type 'string()'.
* kernel: Minor issue processing options when calling
gen_tcp:connect with a sockaddr() and inet_backend = socket.
* common_test: Change timeout to infinity for gen_server calls in
cth_log_redirect
* inets: fixes a missing case of the type specification for
httpd:info/2/3/4
* snmp: Single threaded agent crash when vacm table not properly
initiated.
* Sun Dec 18 2022 matwey.kornilov@gmail.com
- Changes for 25.2:
* erts: Fix perf/gdb JIT symbols to not contain CodeInfoPrologue
for the JIT internal module erts_beamasm.
* erts: Fixed minor memory leaks.
* erts: Fix bugs in ets:insert and ets:insert_new when called
with a list of tuples to insert while a concurrent process
either deletes or renames the table. The table deletion could
be done with ets:delete/1 or be caused by termination of the
table owning process. Symptoms are either VM crash or strange
incorrect behavior from the insert operation. The risk of
triggering the bugs increases with the length of the list of
tuple to insert. Bugs exist since OTP 23.0.
* erts: Boost execution of scheduled thread progress jobs. This
to prevent memory exhaustion in extremely rapid
allocation/deallocation scenarios, such as repeated ETS table
creations/deletions.
* erts: Fix segv crash during crash dumping an ETS table doing
ets:delete_all_objects.
* erts: Spec for function net:if_names/0 incorrect
* erts: Fix bug in binary_to_term decoding a binary term 2Gbyte
or larger.
* erts: Documentation of erlang:module_loaded/1 has been
adjusted:
* erts: Fix list_to_atom/1 for negative code points. Could either
return with a positive code point or fail with an incorrect
exception.
* erts: Fix rare bug causing VM crash when sending to a pid of a
spawning process returned from erlang:processes/0. Only seen
when provoked by system process literal_area_collector,
triggered by a module purge operation, on a VM started with
+Meamin (no customized allocators).
* erts: gen_udp:open/2 with option(s) add_membership or
drop_membership would drop earlier options.
* erts: The inet:setopts/2 {reuseaddr, true} option will now be
ignored on Windows unless the socket is an UDP socket. For more
information see the documentation of the reuseaddr option part
of the documentation of inet:setopts/2. Prior to OTP 25 the
{reuseaddr, true} option was ignored for all sockets on
Windows, but as of OTP 25.0 this was changed so that it was not
ignored for any sockets. *** POTENTIAL INCOMPATIBILITY ***
* erts: Fix bug in binary_to_term decoding a list of length 1G or
longer.
* erts: Fix bug in binary_to_term (and distributed receive) when
decoding a large map (>32 keys) with unsorted small maps (<=
32) as keys of the large map. This was only a problem if the
term was encoded by erl_interface, jinterface or otherwise, as
the VM itself always encodes small maps with sorted keys. The
"binary_to_term" would appear as successful but the created
large map was internally inconsistent. The smaller key-maps
could not be found with maps:get and friends. Other operations
such as map compare and merge could probably also give
incorrect results.
* erts: Fix Windows bug in open_port({spawn, Command}, ..) when
Command is found via the OS search PATH and that directory path
contains white spaces. The port program would start but the
command line arguments to it could be incorrect.
* ftp: fix unexpected result ok when calling ftp:nlist repeatedly
* inets: This change allows body requests to httpc:request/5 be
an iolist()
* inets: addition of type specs in httpc.erl
* inets: httpc: Add support for HTTP 308 status code
* dialyzer: Dialyzer would crash when attempting to analyze a bit
syntax segment size having an literal non-integer size such as
[].
* dialyzer: Dialyzer could crash when trying to analyze a
convoluted nested expression involving funs,
* kernel: Fixed shutdown crash in gen_tcp socket backend, when
the other end closed the socket.
* kernel: erl_tar can now read gzip-compressed tar files that are
padded. There is a new option compressed_one for file:open/2
that will read a single member from a gzip file,
* kernel: Fix os:cmd to not translate all exceptions thrown to
badarg. For example emfile from erlang:open_port was translated
to badarg. This bug has existed since Erlang/OTP 24.
* kernel: Spec for function net:if_names/0 incorrect
* kernel: Missing ctrl option name transation for TOS and TTL (on
FreeBSD) when using gen_udp with the 'socket' inet_backend.
* kernel: gen_udp:open/2 with option(s) add_membership or
drop_membership would drop earlier options.
* kernel: The inet:setopts/2 {reuseaddr, true} option will now be
ignored on Windows unless the socket is an UDP socket. For more
information see the documentation of the reuseaddr option part
of the documentation of inet:setopts/2. Prior to OTP 25 the
{reuseaddr, true} option was ignored for all sockets on
Windows, but as of OTP 25.0 this was changed so that it was not
ignored for any sockets. *** POTENTIAL INCOMPATIBILITY ***
* kernel: The distribution socket option handling in
inet_tcp_dist has been cleaned up to clarify which were
mandatory and which just had default values.
* kernel: Improve warning message format for gen_tcp_socket.
* snmp: Explicitly close the socket(s) when terminating
(default-) net-if process.
* stdlib: erl_tar can now read gzip-compressed tar files that are
padded. There is a new option compressed_one for file:open/2
that will read a single member from a gzip file,
* stdlib: A concurrent call to ets:rename could cause
ets:delete_all_objects to fail halfway through with badarg.
* stdlib: It is not allowed to call functions from guards. The
compiler failed to reject a call in a guard when done by
constructing a record with a default initialization expression
that called a function.
* stdlib: The compiler could crash when using a record with
complex field initialization expression as a filter in a list
comprehension.
* stdlib: unicode:characters_to_binary() could build
unnecessarily large call stack.
* stdlib: Improve error message for ets:new/2 name clash. Say
"name already exists" instead of less specific "invalid
options".
* mnesia: Fixed crash which could happen during startup if too
many decisions where sent from remote nodes.
* os_mon: The disk_space_check_interval configuration parameter
of disksup can now be set to values smaller than a minute.
* ssh: graceful shutdown of ssh_conection_handler when connection
is closed by peer
* common_test: Fix starting of peer nodes on old releases when
the compile server was active and the current Erlang
installation contained non-latin1 characters in its path.
* public_key: Disregard LDAP URIs when HTTP URIs are expected.
* ssl: With this change, tls_sender process is hibernated after
sufficient inactivity.
* ssl: Correct handling of legacy schemes so that ECDSA certs
using sha1 may be used for some TLS-1.3 configurations.
* ssl: With this change, tls_sender does not cause logger crash
upon key update.
* ssl: Enhance warning message
* ssl: Provide server option to make certificate_authorities
extension in the TLS-1.3 servers certificate request optional.
This will allow clients to send incomplete chains that may be
reconstructable and thereby verifiable by the server, but that
would not adhere to the certificate_authorities extension.
* ssl: If the verify_fun handles four arguments the DER cert will
be supplied as one of the arguments.
* megaco: A very minor improvement to the measurement tool.
* observer: A WX event race could causes a crash in when handling
socket or port info.
* observer: Improve the nodes menu to include more nodes.
* compiler: Line number in compiler messages would be truncated
to 4 digits for line numbers greater than 9999.
* compiler: In rare circumstance, matching a binary as part of a
receive clause could cause the compiler to terminate because of
an internal consistency check failure.
* compiler: Compiling a function with complex bit syntax matching
such as f(<<X:0, _:X>>, <<Y:0, _:Y>>) -> ok. could crash the
compiler.
* compiler: It is not allowed to call functions from guards. The
compiler failed to reject a call in a guard when done by
constructing a record with a default initialization expression
that called a function.
* compiler: The compiler could crash when using a record with
complex field initialization expression as a filter in a list
comprehension.
* wx: Added environment variable WX_MACOS_NON_GUI_APP to allow
user to override OSXIsGUIApplication behavior.
* Thu Nov 24 2022 matwey.kornilov@gmail.com
- Changes for 25.1.2:
* mnesia: Don't fill the logs if mnesia can't connect to all
nodes, due to partitioned network.
* erts: Add abandon carrier free utilization limit (+Muacful)
option to erts_alloc. This option allows the user to mark
unused segments in a memory carrier as re-useable by the OS if
needed. This functionality was a non-configurable default
before Erlang/OTP 25, but removed due to performance issues.
* Thu Oct 13 2022 opensuse-packaging@opensuse.org
- Changes for 25.1.1:
* dialyzer: Dialyzer could crash when analyzing Elixir code that
used intricate macros.
* dialyzer: The --input_list_file option has been added.
* ssl: Fixes handling of symlinks in cacertfile option.
* eunit: With this change, eunit exact_execution option works
with application primitive.
* stdlib: peer nodes failed to halt when the process supervising
the control connection crashed. When an alternative control
connection was used, this supervision process also quite
frequently crashed when the peer node was stopped by the node
that started it which caused the peer node to linger without
ever halting.
* asn1: For the per and uper ASN.1 encoding rules, encoding and
decoding the SEQUENCE OF and SET OF constructs with 16384 items
or more is now supported.
* erts: Listen sockets created with the socket module, leaked
(erlang-) monitors.
* erts: Notifications about available distribution data sent to
distribution controller processes could be lost. Distribution
controller processes can be used when implementing an
alternative distribution carrier. The default distribution over
tcp was not effected and the bug was also not present on
x86/x86_64 platforms.
* kernel: Listen sockets created with the socket module, leaked
(erlang-) monitors.
* kernel: peer nodes failed to halt when the process supervising
the control connection crashed. When an alternative control
connection was used, this supervision process also quite
frequently crashed when the peer node was stopped by the node
that started it which caused the peer node to linger without
ever halting.
- Changes for 25.1:
* dialyzer: Two bugs have been fixed in Dialyzer's checking of
behaviors: When a mandatory callback function is present but
not exported, Dialyzer would not complain about a missing
callback. When an optional callback function was not exported
and had incompatible arguments and/or the return values were
incompatible, Dialyzer would complain. This has been changed to
suppress the warning, because the function might not be
intended to be a callback function, for instance if a release
added a new optional callback function (such as format_status/1
for the gen_server behaviour added in OTP 25).
* dialyzer: The no_extra_return and no_missing_return warnings
can now be suppressed through -dialyzer directives in source
code.
* jinterface: Fix javadoc build error by adding option -encoding
UTF-8.
* diameter: There is a new configure option, --enable-
deterministic-build, which will apply the deterministic
compiler option when building Erlang/OTP. The deterministic
option has been improved to eliminate more sources of non-
determinism in several applications.
* crypto: Fix configure with --with-ssl and --disable-dynamic-
ssl-lib on Windows.
* crypto: Remove all references correctly in the garbage
collection if an engine handle was not explicit unloaded.
* crypto: Changed the behaviour of the engine load/unload
functions The engine load/unload functions have got changed
semantics to get a more consistent behaviour and work correct
when variables are garbage collected. The load functions now
don't register the methods for the engine to replace. That will
now be handled with the new functions
engine_register/engine_unregister if needed. Some functions are
removed from the documentation and therefor the API, but they
are left in the code for compatibility. *** POTENTIAL
INCOMPATIBILITY ***
* crypto: Fixed a naming bug for AES-CFB and Blowfish-CFB/OFB
when linked with OpenSSL 3.0 cryptolib.
* crypto: Sign/verify does now behave as in OTP-24 and earlier
for eddsa.
* crypto: Pass elliptic curve names from crypto.erl to crypto's
nif.
* crypto: The configure option --disable-deprecated-warnings is
removed. It was used for some releases when the support for
OpenSSL 3.0 was not completed. It is not needed in OTP 25.
* crypto: Crypto is now considered to be usable with the OpenSSL
3.0 cryptolib for production code. ENGINE and FIPS are not yet
fully functional.
* crypto: Do not exit if the legacy provider is missing in
libcrypto 3.0.
* ssl: Reject unexpected application data in all relevant places
for all TLS versions. Also, handle TLS-1.3 middlebox
compatibility with more care. This will make malicious
connections fail early and further, mitigate possible DoS
attacks, that would be caught by the handshake timeout. Thanks
to Aina Toky Rasoamanana and Olivier Levillain from Télécom
SudParis for alerting us of the issues in our implementation.
* ssl: With this change, value of cacertfile option will be
adjusted before loading certs from the file. Adjustments
include converting relative paths to absolute and converting
symlinks to actual file path. Thanks to Marcus Johansson
* ssl: In TLS-1.3, if chain certs are missing (so server auth
domain adherence can not be determined) send peer cert and hope
the server is able to recreate a chain in its auth domain.
* ssl: Make sure periodical refresh of CA certificate files
repopulates cache properly.
* ssl: Correct internal CRL cache functions to use internal
format consistently.
* ssl: Incorrect handling of client middlebox negotiation for
TLS-1.3 could result in that a TLS-1.3 server would not use
middlebox mode although the client was expecting it too and
failing the negotiation with unexpected message.
* ssl: If the "User" process, the process starting the TLS
connection, gets killed in the middle of spawning the dynamic
connection tree make sure we do not leave any processes behind.
* ssl: A vulnerability has been discovered and corrected. It is
registered as CVE-2022-37026 "Client Authentication Bypass".
Corrections have been released on the supported tracks with
patches 23.3.4.15, 24.3.4.2, and 25.0.2. The vulnerability
might also exist in older OTP versions. We recommend that
impacted users upgrade to one of these versions or later on the
respective tracks. OTP 25.1 would be an even better choice.
Impacted are those who are running an ssl/tls/dtls server using
the ssl application either directly or indirectly via other
applications. For example via inets (httpd), cowboy, etc. Note
that the vulnerability only affects servers that request client
certification, that is sets the option {verify, verify_peer}.
(bsc#1205318)
* eunit: With this change, Eunit can optionally not try to
execute related module with "_tests" suffix. This might be used
for avoiding duplicated executions when source and test modules
are located in the same folder.
* erl_docgen: Update DTD to allow XML tag em under pre.
* inets: Add httpc:ssl_verify_host_options/1 to help setting
default ssl options for the https client.
* inets: This change fixes dialyzer warnings generated for
inets/httpd examples (includes needed adjustment of spec for
ssh_sftp module).
* inets: Remove documentation of no longer supported callback.
* stdlib: Fixed inconsistency bugs in global due to
nodeup/nodedown messages not being delivered before/after
traffic over connections. Also fixed various other
inconsistency bugs and deadlocks in both global_group and
global. As building blocks for these fixes, a new BIF
erlang:nodes/2 has been introduced and
net_kernel:monitor_nodes/2 has been extended. The -hidden and
- connect_all command line arguments did not work if multiple
instances were present on the command line which has been
fixed. The new kernel parameter connect_all has also been
introduced in order to replace the -connect_all command line
argument.
* stdlib: Fix the public_key:ssh* functions to be listed under
the correct release in the Removed Functionality User's Guide.
* stdlib: The type spec for format_status/1 in gen_statem,
gen_server and gen_event has been corrected to state that the
return value is of the same type as the argument (instead of
the same value as the argument).
* stdlib: If the timer server child spec was already present in
kernel_sup but it was not started, the timer server would fail
to start with an {error, already_present} error instead of
restarting the server.
* stdlib: When changing callback module in gen_statem the
state_enter calls flag from the old module was used in for the
first event in the new module, which could confuse the new
module and cause malfunction. This bug has been corrected. With
this change some sys debug message formats have been modified,
which can be a problem for debug code relying on the format.
* ** POTENTIAL INCOMPATIBILITY ***
* stdlib: There is a new configure option, --enable-
deterministic-build, which will apply the deterministic
compiler option when building Erlang/OTP. The deterministic
option has been improved to eliminate more sources of non-
determinism in several applications.
* stdlib: The rfc339_to_system_time/1,2 functions now allows the
minutes part to be omitted from the time zone.
* stdlib: The receive statement in gen_event has been optimized
to not use selective receive (which was never needed, and could
cause severe performance degradation under heavy load).
* stdlib: Add new API function erl_features:configurable/0
* parsetools: There is a new configure option, --enable-
deterministic-build, which will apply the deterministic
compiler option when building Erlang/OTP. The deterministic
option has been improved to eliminate more sources of non-
determinism in several applications.
* public_key: Support more Linux distributions in cacerts_load/0.
* public_key: Correct asn1 typenames available in type
pki_asn1_type()
* public_key: Sign/verify does now behave as in OTP-24 and
earlier for eddsa.
* snmp: Improved the get-bulk response max size calculation. Its
now possible to configure 'empty pdu size', see appendix c for
more info.
* snmp: Fix various example dialyzer issues
* ssh: Handling rare race condition at channel close.
* ssh: New ssh option no_auth_needed to skip the ssh
authentication. Use with caution!
* ssh: This change fixes dialyzer warnings generated for
inets/httpd examples (includes needed adjustment of spec for
ssh_sftp module).
* ssh: The new function ssh:daemon_replace_options/2 makes it
possible to change the Options in a running SSH server.
Established connections are not affected, only those created
after the call to this new function.
* ssh: Add a timeout as option max_initial_idle_time. It closes a
connection that does not allocate a channel within the timeout
time. For more information about timeouts, see the Timeouts
section in the User's Guide Hardening chapter.
* observer: Fixed units in gui.
* xmerl: There is a new configure option, --enable-deterministic-
build, which will apply the deterministic compiler option when
building Erlang/OTP. The deterministic option has been improved
to eliminate more sources of non-determinism in several
applications.
* asn1: There is a new configure option, --enable-deterministic-
build, which will apply the deterministic compiler option when
building Erlang/OTP. The deterministic option has been improved
to eliminate more sources of non-determinism in several
applications.
* erts: Fixed inconsistency bugs in global due to nodeup/nodedown
messages not being delivered before/after traffic over
connections. Also fixed various other inconsistency bugs and
deadlocks in both global_group and global. As building blocks
for these fixes, a new BIF erlang:nodes/2 has been introduced
and net_kernel:monitor_nodes/2 has been extended. The -hidden
and -connect_all command line arguments did not work if
multiple instances were present on the command line which has
been fixed. The new kernel parameter connect_all has also been
introduced in order to replace the -connect_all command line
argument.
* erts: Fixed IPv6 multicast_if and membership socket options.
* erts: Accept funs (NEW_FUN_EXT) with incorrectly encoded size
field. This is a workaround for a bug (OTP-18104) existing in
OTP 23 and 24 that could cause incorrect size fields in certain
cases. The emulator does not use the decoded size field, but
erl_interface still does and is not helped by this workaround.
* erts: Fixed issue with inet:getifaddrs hanging on pure IPv6
Windows
* erts: Fix faulty distribution encoding of terms with either The
symptom could be failed decoding on the receiving side leading
to aborted connection. Fix OTP-18093 is a workaround for theses
bugs that makes the VM accepts such faulty encoded funs. The
first encoding bug toward pending connection exists only in OTP
23 and 24, but the second one exists also on OTP 25.
* erts: Fixed emulator crash that could happen during crashdump
generation of ETS tables with options ordered_set and
{write_concurrency,true}.
* erts: Retrieval of monotonic and system clock resolution on
MacOS could cause a crash and/or erroneous results.
* erts: Fix bug where the max allowed size of erl +hmax was lower
than what was allowed by process_flag.
* erts: On computers with ARM64 (AArch64) processors, the JIT
could generate incorrect code when more than 4095 bits were
skipped at the tail end of a binary match.
* erts: In rare circumstances, an is_binary/1 guard test could
succeed when given a large integer.
* erts: Fix bug causing ets:info (and sometimes ets:whereis) to
return 'undefined' for an existing table if a concurrent
process were doing ets:insert with a long list on the same
table.
* erts: Fix writing and reading of more than 2 GB in a single
read/write operation on macOS. Before this fix attempting to
read/write more than 2GB would result in {error,einval}.
* erts: Fix bug sometimes causing emulator crash at node shutdown
when there are pending connections. Only seen when running duel
distribution protocols, inet_drv and inet_tls_dist.
* erts: Yield when adjusting large process message queues due to
The message queue adjustment work will now be interleaved with
all other types of work that processes have to do, even other
message queue adjustment work.
* erts: Add rudimentary debug feature (option) for the inet-
driver based sockets, such as gen_tcp and gen_udp.
* erts: Introduced the hidden and dist_listen options to
net_kernel:start/2. Also documented the -dist_listen command
line argument which was erroneously documented as a kernel
parameter and not as a command line argument.
* erts: New documentation chapter "Debugging NIFs and Port
Drivers" under Interoperability Tutorial.
* erts: Add new API function erl_features:configurable/0
* kernel: Fixed inconsistency bugs in global due to
nodeup/nodedown messages not being delivered before/after
traffic over connections. Also fixed various other
inconsistency bugs and deadlocks in both global_group and
global. As building blocks for these fixes, a new BIF
erlang:nodes/2 has been introduced and
net_kernel:monitor_nodes/2 has been extended. The -hidden and
- connect_all command line arguments did not work if multiple
instances were present on the command line which has been
fixed. The new kernel parameter connect_all has also been
introduced in order to replace the -connect_all command line
argument.
* kernel: Fixed IPv6 multicast_if and membership socket options.
* kernel: Fixed issue with inet:getifaddrs hanging on pure IPv6
Windows
* kernel: The type specifications for inet:getopts/2 and
inet:setopts/2 have been corrected regarding SCTP options.
* kernel: The type specifications for inet:parse_* have been
tightened.
* kernel: Fix gen_tcp:connect/3 spec to include the inet_backend
option.
* kernel: Fix bug where using a binary as the format when calling
logger:log(Level, Format, Args) (or any other logging function)
would cause a crash or incorrect logging.
* kernel: Add rudimentary debug feature (option) for the inet-
driver based sockets, such as gen_tcp and gen_udp.
* kernel: Introduced the hidden and dist_listen options to
net_kernel:start/2. Also documented the -dist_listen command
line argument which was erroneously documented as a kernel
parameter and not as a command line argument.
* kernel: Scope and group monitoring have been introduced in pg.
For more information see the documentation of
pg:monitor_scope(), pg:monitor(), and pg:demonitor().
* kernel: A new function global:disconnect/0 has been introduced
with which one can cleanly disconnect a node from all other
nodes in a cluster of global nodes.
* compiler: The compiler will now forbid using the empty atom ''
as module name. Also forbidden are modules names containing
control characters, and module names containing only spaces and
soft hyphens.
* compiler: The bin_opt_info and recv_opt_info options would
cause the compiler to crash when attempting to compile
generated code without location information.
* compiler: In rare circumstances involving floating point
operations, the compiler could terminate with an internal
consistency check failure.
* compiler: In rare circumstances when doing arithmetic
instructions on non-numbers, the compiler could crash.
* compiler: In rare circumstances, complex boolean expressions in
nested cases could cause the compiler to crash.
* compiler: Expression similar to #{assoc:=V} = #key=>self()}, V
would return the empty map instead of raising an exception.
* compiler: Eliminated a crash in the beam_ssa_bool pass of the
compiler when compiling a complex guard expression.
* compiler: In rare circumstances, the compiler could crash with
an internal consistency check failure.
* compiler: When compiling with the option inline_list_funcs, the
compiler could produce a nonsensical warning.
* compiler: When given the no_ssa_opt option, the compiler could
terminate with an internal consistency failure diagnostic when
compiling map matching.
* compiler: Made warnings for existing atoms being keywords in
experimental features more precise, by not warning about quoted
atoms.
* compiler: There is a new configure option, --enable-
deterministic-build, which will apply the deterministic
compiler option when building Erlang/OTP. The deterministic
option has been improved to eliminate more sources of non-
determinism in several applications.
* megaco: Fixed various dialyzer related issues in the examples
and the application proper.
* megaco: There is a new configure option, --enable-
deterministic-build, which will apply the deterministic
compiler option when building Erlang/OTP. The deterministic
option has been improved to eliminate more sources of non-
determinism in several applications.
* common_test: Fix cth_surefire to handle when a suite is not
compiled with debug_info. This bug has been present since
Erlang/OTP 25.0.
* common_test: Common Test now preserves stack traces for throws.
* Sat Aug 27 2022 matwey.kornilov@gmail.com
- Changes for 25.0.4:
* kernel: A call to net_kernel:setopts(new, Opts) at the same
time as a connection was being set up could cause a deadlock
between the net_kernel process and the process setting up the
connection.
* erts: The monitor/3 BIF did not apply options to the created
monitor if the target process or port did not exist. That is,
the corresponding down message would get a `DOWN` tag even if a
custom tag had been set, and the returned reference was not an
alias even if the alias option had been passed.
* erts: The erlang:monotonic_time/1, erlang:system_time/1,
erlang:time_offset/1, and os:system_time/1 BIFs erroneously
failed when passed the argument native.
* Tue Aug 09 2022 matwey.kornilov@gmail.com
- Changes for 25.0.3:
* erts: Distributed exit signals could be lost under the
following conditions:
* erts: A race could cause process_info(Pid, message_queue_len)
on other processes to return invalid results.
* erts: Fixed reduction counting for handling process system
tasks.
* erts: Priority elevation of terminating processes did not work
which could cause execution of such processes to be delayed.
* erts: An unlink operation made by a process that terminated
before the unlink operation completed, i.e., before it had
received an unlink-ack signal from the linked process, caused
an exit signal to erroneously be sent from the terminating
process to the process being unlinked. This exit signal would
most often be ignored by the receiver, but if the receiver of
the exit signal concurrently set up a new link, it could
receive the exit signal with the actual exit reason of the
terminating process instead of a noproc exit reason. It is
however very hard to detect that this has happened and has no
obvious negative consequences, so it should be considered
harmless. A distributed unlink-ack signal received by a
terminating process was also not properly removed which could
cause a minor memory leak.
* ssl: The link to crypto:engine_load refered the function with
wrong arity.
* Sun Jul 03 2022 matwey.kornilov@gmail.com
- Changes for 25.0.2:
* ssl: Improved handling of unexpected messages during the
handshake, taking the right action for unexpected messages.
* erts: On computers with the ARM64 (AArch64) architecture (such
as Apple Silicon Macs) a rem expression followed by a div
expression with the same operands could evaluate to the wrong
result if the result of the rem expression was unused.
- Changes for 25.0.1:
* ssl: When a TLS-1.3 enabled client tried to talk to a TLS-1.2
server that coalesces TLS-1.2 handshake message over one TLS
record, the connection could fail due to some message being
handled in the wrong state, this has been fixed.
* ssl: Correctly handles supported protocol version change from
default to something else by sni_fun supplied to
ssl:handshake/[2,3] together with a TCP-socket (so called
upgrade).
* ssl: Also, TLS-1.3 should respond with a protocol version alert
if previous versions, that are supported but not configured,
are attempted.
* kernel: The DNS resolver inet_res has been fixed to ignore
trailing dot difference in the request domain between the sent
request and the received response, when validating a response.
* kernel: A bug in inet_res has been fixed where a missing
internal {ok,_} wrapper caused inet_res:resolve/* to return a
calculated host name instead of an `{ok,Msg} tuple, when
resolving an IP address or a host name that is an IP address
string.
* kernel: The erlang:is_alive() BIF could return true before
configured distribution service was available. This bug was
introduced in OTP 25.0 ERTS version 13.0. The
erlang:monitor_node() and erlang:monitor() BIFs could
erroneously fail even though configured distribution service
was available. This occurred if these BIFs were called after
the distribution had been started using dynamic node name
assignment but before the name had been assigned.
* kernel: Added the missing mandatory address/0 callback in the
gen_tcp_dist example.
* erts: A spawn_reply signal from a remote node could be delayed
and be delivered after other signals from the newly spawned
process. When this bug triggered, the connection to the node
where the process was spawned sometimes could be taken down due
to the bug. The following error message would then be logged if
this happened: Missing 'spawn_reply' signal from the node
<RemoteNode> detected by <Pid> on the node <LocalNode>. The
node <RemoteNode> probably suffers from the bug with ticket id
OTP-17737. This bug only affected processes which had enabled
off_heap message_queue_data and parallel reception of signals
had been automatically enabled. This bug was introduced in OTP
25.0, ERTS version 13.0.
* erts: Fixed type spec of erlang:system_info(dist_ctrl).
* erts: The zlib built in to the runtime system has been updated
to version 1.2.12. (Note that on most platforms, the platform's
own zlib is used.)
* erts: The erlang:is_alive() BIF could return true before
configured distribution service was available. This bug was
introduced in OTP 25.0 ERTS version 13.0. The
erlang:monitor_node() and erlang:monitor() BIFs could
erroneously fail even though configured distribution service
was available. This occurred if these BIFs were called after
the distribution had been started using dynamic node name
assignment but before the name had been assigned.
* crypto: Note in the documentation that MODP (rfc3526) groups
and OpenSSL 3.0 can give an error if a call to
crypto:generate_key/2 specifies a key length, and that length
is to small.
* crypto: The cmac now uses only the 3.0 API
* crypto: Documentation is now updated with which OpenSSL
cryptolib versions that OTP currently is tested.
* dialyzer: Fixed the documentation for the missing_return and
extra_return options.
* mnesia: Fixed add_table_copy which could leave a table lock if
the receiving node went down during the operation.
* ssh: Binaries can be limited in logs with the parameter
max_log_item_len. The default value is 500 bytes.
* stdlib: In the initial release of Erlang/OTP 25, the expression
bound to the _ pseudo-field in a record initialization would
always be evaluated once, even if all other fields in the
record were explicitly initialized. That would break the use
case of binding the expression error(...) to _ in order to get
an exception if not all fields were initialized. The behavior
of binding to _ has been reverted to the pre-OTP 25 behavior,
that is, to not evaluate the expression if all fields have been
bound to explicit values.
* Sun May 22 2022 Matwey Kornilov <matwey.kornilov@gmail.com>
- Version 25.0:
- stdlib
* New function filelib:ensure_path/1 will ensure that all
directories for the given path exists
* New functions groups_from_list/2 and groups_from_list/3 in
the maps module
* New functions uniq/1 uniq/2 in the lists module
* New PRNG added to the rand module, for fast pseudo-random
numers.
- compiler, kernel, stdlib, syntax_tools:
* Added support for selectable features as described in EEP-60.
Features can be enabled/disabled during compilation with
options (ordinary and +term) to erlc as well as with
directives in the file. Similar options can be used to erl
for enabling/disabling features allowed at runtime. The new
maybe expression EEP-49 is fully supported as the feature
maybe_expr.
- erts & JIT:
* The JIT now works for 64-bit ARM processors.
* The JIT now does type-based optimizations based on type
information in the BEAM files.
* Improved the JIT’s support for external tools like perf and
gdb, allowing them to show line numbers and even the original
Erlang source code when that can be found.
- erts, stdlib, kernel:
* Users can now configure ETS tables with the
{write_concurrency, auto} option. This option forces tables
to automatically change the number of locks that are used at
run-time depending on how much concurrency is detected. The
{decentralized_counters, true} option is enabled by default
when {write_concurrency, auto} is active.
* Benchmark results comparing this option with the other ETS
optimization options are available here: benchmarks.
* To enable more optimizations, BEAM files compiled with OTP 21
and earlier cannot be loaded in OTP 25.
* The signal queue of a process with the process flag
message_queue_data=off_heap has been optimized to allow
parallel reception of signals from multiple processes. This
can improve performance when many processes are sending in
parallel to one process. See benchmark.
* The Erlang installation directory is now relocatable on the
file system given that the paths in the installation’s
RELEASES file are paths that are relative to the
installations root directory.
* A new option called short has been added to the functions
erlang:float_to_list/2 and erlang:float_to_binary/2. This
option creates the shortest correctly rounded string
representation of the given float that can be converted back
to the same float again.
* Introduction of quote/1 and unquote/1 functions in the
uri_string module - a replacement for the deprecated
functions http_uri:encode and http_uri:decode.
* The new module peer supersedes the slave module. The slave
module is now deprecated and will be removed in OTP 27.
* global will now by default prevent overlapping partitions due
to network issues. This is done by actively disconnecting
from nodes that reports that they have lost connections to
other nodes. This will cause fully connected partitions to
form instead of leaving the network in a state with
overlapping partitions.
* It is possible to turn off the new behavior by setting the
the kernel configuration parameter
prevent_overlapping_partitions to false. Doing this will
retain the same behavior as in OTP 24 and earlier.
* The format_status/2 callback for gen_server, gen_statem and
gen_event has been deprecated in favor of the new
format_status/1 callback.
* The new callback adds the possibility to limit and change
many more things than the just the state.
* The timer module has been modernized and made more efficient,
which makes the timer server less susceptible to being
overloaded. The timer:sleep/1 function now accepts an
arbitrarily large integer.
- compiler:
* The maybe ... end construction as proposed in EEP-49 has been
implemented. It can simplify complex code where otherwise
deeply nested cases would have to be used.
* To enable maybe, give the option {enable_feature,maybe_expr}
to the compiler. The exact option to use will change in a
coming release candidate and then it will also be possible to
use from inside the module being compiled.
* When a record matching or record update fails, a {badrecord,
ExpectedRecordTag} exception used to be raised. In this
release, the exception has been changed to {badrecord,
ActualValue}, where ActualValue is the value that was found
instead of the expected record.
* Add compile attribute -nifs() to empower compiler and loader
with information about which functions may be overridden as
NIFs by erlang:load_nif/2.
* Improved and more detailed error messages when binary
construction with the binary syntax fails. This applies both
for error messages in the shell and for
erl_error:format_exception/3,4.
* Change format of feature options and directives for better
consistency. Options to erlc and the -compile(..) directive
now has the format {feature, feature-name, enable | disable}.
The -feature(..) now has the format -feature(feature-name,
enable | disable).
- crypto:
* Add crypto:hash_equals/2 which is a constant time comparision
of hashvalues.
- ssl:
* Introducing a new (still experimental) option
{certs_keys,[cert_key_conf()]}. With this a list of a
certificates with their associated key may be used to
authenticate the client or the server. The certificate key
pair that is considered best and matches negotiated
parameters for the connection will be selected.
- public_key:
* Functions for retrieving OS provided CA-certs added.
- dialyzer:
* Optimize operations in the erl_types module. Parallelize the
Dialyzer pass remote.
* Added the missing_return and extra_return options to raise
warnings when specifications differ from inferred types.
These are similar to, but not quite as verbose as overspecs
and underspecs.
* Dialyzer now better understands the types for min/2, max/2,
and erlang:raise/3. Because of that, Dialyzer can potentially
generate new warnings. In particular, functions that use
erlang:raise/3 could now need a spec with a no_return()
return type to avoid an unwanted warning.
* Wed Apr 06 2022 Matwey Kornilov <matwey.kornilov@gmail.com>
- Fix build for Factory. Currently, any Java version
is fine for Erlang.
* Sun Mar 27 2022 matwey.kornilov@gmail.com
- Changes for 24.3.2:
* erl_interface: Fix compile error regarding gethostbyaddr_r on
Android. Error introduced in OTP 24.3.
* kernel: Fix failed accepted connection setup after previous
established connection from same node closed down silently.
* kernel: Fixed a problem where typing Ctrl-R in the shell could
hang if there were some problem with the history log file.
- Changes for 24.3.1:
* dialyzer: There could be spurious warnings for unknown types
when a type was a subtype of an existing type that was a
subtype of an unknown type.
* ssl: Client certification could fail for TLS-1.3 servers that
did not include the certificat_authorties extension in its
certificate request message.
- Changes for 24.3:
* megaco: The compilation time is no longer recorded in BEAM
files. There remained several undocumented functions that
attempted to retrieve compilation times. Those have now been
removed.
* megaco: Update the performance and debug chapters of the megaco
user's guide. Also some updates to the meas tools.
* compiler: The expression <<0/native-float>>=Bin would always
fail to match, while <<0/float-native>>=Bin would match
(provided that Bin contained the binary representation of 0.0)
* compiler: The compiler will now compile huge functions with
straight-line code faster.
* erl_interface: Add --enable-ei-dynamic-lib configure option
that will make erl_interface also release a dynamic library
version of libei.
* erl_interface: The ei API for decoding/encoding terms is not
fully 64-bit compatible since terms that have a representation
on the external term format larger than 2 GB cannot be handled.
* sasl: Fix bug in systools:make_script/1 documentation.
* inets: The compilation time is no longer recorded in BEAM
files. There remained several undocumented functions that
attempted to retrieve compilation times. Those have now been
removed.
* inets: Documentation fix for inets:services_info/0, which now
describes that Info might be a Reason term() in case when
{error, Reason} is returned as service info.
* crypto: The crypto app in OTP can since OTP-24.2 be compiled,
linked and used with the new OpenSSL 3.0 cryptolib. The crypto
app has 3.0 support has been improved, but is still *not
recommended* for other usages than experiments and alpha
testing. There are not yet any guaranties that it works, not
even together with other OTP applications like for example SSL
and SSH, although there are no known errors. Since the previous
release, OTP-24.2, the following improvements have been done: -
It has been tested during nearly every nightly test on the OTP
lab - The hash algorithms md4 and ripemd160 have been enabled
with OpenSSL 3.0. - The ciphers blowfish_cbc, blowfish_ecb,
des_cbc, des_cfb, des_ecb, rc2_cbc and rc4 have been enabled
with OpenSSL 3.0. Disabled or unsupported with OpenSSL 3.0 are
still: - ENGINE support - FIPS mode - Other providers than the
built-in ones - Compiling and linking with OpenSSL 3.0
cryptolib in compatibility modes (for example to behave as
1.1.1) and, the ciphers blowfish_cfb64 and blowfish_ofb64 are
not supported and will not be either. Deprecated functions in
the OpenSSL 3.0 cryptolib must not be disabled as OTP/crypto
still uses some of the deprecated API functions. The gcc flag
- Wno-deprecated-declarations is set to prevent deprecation
warnings to be printed when compiling.
* crypto: Crypto is adapted to LibreSSL 3.5.0 on OpenBSD.
* crypto: New configure option ( --disable-otp-test-engine) to
prohibit the build of the OTP test engine used in some test
suites. The reason is that the test engine could be hard to
compile on for instance LibreSSL 3.5.0. For that particular
cryptolib version (or higher), this configure option is set
automatically.
* jinterface: Fix bug in OtpOutputStream.write_pid/4 and
write_ref/3 causing faulty encodig. Bug exists since OTP 23.0.
* wx: Removed the static_data option from wxImage creation
functions, as it was broken and could lead to crashes. Now
image data is always copied to wxWidgets as was the default
behavior. Removed some non working wxGridEvent event types,
which have there own events in newer wxWidgets versions, and
added a couple of event types that where missing in wx.
* asn1: Add support for the maps option in combination with the
jer backend.
* snmp: The compilation time is no longer recorded in BEAM files.
There remained several undocumented functions that attempted to
retrieve compilation times. Those have now been removed.
* snmp: [agent] Remove expectation of socket being a port.
* common_test: OTP internal test fix.
* runtime_tools: Fixed bug in scheduler:utilization(Seconds) that
would leave the scheduler_wall_time system flag incorrectly
enabled.
* runtime_tools: Add scheduler:get_sample/0 and get_sample_all/0.
Also clarify scheduler module documentation about how it
depends on system flag scheduler_wall_time.
* erts: Fixed a bug in the x86 JIT that might cause floating
point instructions to wrongly throw an exception.
* erts: Preserve correct nodedown_reason if supervised
distribution controller processes exit with {shutdown, Reason}.
* erts: Handling of send_timeout for gen_tcp has been corrected
so that the timeout is honored also when sending 0 bytes.
* erts: By default global does not take any actions to restore a
fully connected network when connections are lost due to
network issues. This is problematic for all applications
expecting a fully connected network to be provided, such as for
example mnesia, but also for global itself. A network of
overlapping partitions might cause the internal state of global
to become inconsistent. Such an inconsistency can remain even
after such partitions have been brought together to form a
fully connected network again. The effect on other applications
that expects that a fully connected network is maintained may
vary, but they might misbehave in very subtle hard to detect
ways during such a partitioning. In order to prevent such
issues, we have introduced a prevent overlapping partitions fix
which can be enabled using the prevent_overlapping_partitions
kernel(6) parameter. When this fix has been enabled, global
will actively disconnect from nodes that reports that they have
lost connections to other nodes. This will cause fully
connected partitions to form instead of leaving the network in
a state with overlapping partitions. Note that this fix has to
be enabled on all nodes in the network in order to work
properly. Since this quite substantially changes the behavior,
this fix is currently disabled by default. Since you might get
hard to detect issues without this fix you are, however,
strongly advised to enable this fix in order to avoid issues
such as the ones described above. As of OTP 25 this fix will
become enabled by default.
* erts: Corrected the type specification of erlang:seq_trace/2.
* erts: Fix memory leak when tracing on running on a process that
only handle system tasks or non-message signals (for example
process_info requests).
* erts: Add support for using socket:sockaddr_in() and
socket:sockaddr_in6() when using gen_sctp, gen_tcp and gen_udp.
This will make it possible to use Link Local IPv6 addresses.
* erts: Show on_load failure reasons in embedded mode.
* erts: Compile date saved in the Erlang VM executable has been
removed.
* erts: Improve documentation for the dynamic node name feature.
* ssh: Fix makefile dependency bugs.
* ssh: Fixed faulty OpenSSH decoding of Ed25519/Ed448 keys in the
OpenSSH format openssh_key_v1.
* ssh: Correction of ssh_file typing, specially for the
experimental openssh-key-v1 encoding.
* ssh: Improper tag for private ED keys when encoding with
ssh:encode/2. The tuple had ed_priv as first element, but
should have had ed_pri. This is now corrected. *** POTENTIAL
INCOMPATIBILITY ***
* ssh: Add support for Ed25519/Ed448 SSH host keys in the RFC
4716 format ("-----BEGIN EC PRIVATE KEY-----") generated by for
example openssl or via Erlang functions (i.e.
public_key:generate_key({namedCurve, ed25519})). Ed25519 SSH
host keys generated by ssh-keygen was, and are still,
supported.
* kernel: Handling of send_timeout for gen_tcp has been corrected
so that the timeout is honored also when sending 0 bytes.
* kernel: By default global does not take any actions to restore
a fully connected network when connections are lost due to
network issues. This is problematic for all applications
expecting a fully connected network to be provided, such as for
example mnesia, but also for global itself. A network of
overlapping partitions might cause the internal state of global
to become inconsistent. Such an inconsistency can remain even
after such partitions have been brought together to form a
fully connected network again. The effect on other applications
that expects that a fully connected network is maintained may
vary, but they might misbehave in very subtle hard to detect
ways during such a partitioning. In order to prevent such
issues, we have introduced a prevent overlapping partitions fix
which can be enabled using the prevent_overlapping_partitions
kernel(6) parameter. When this fix has been enabled, global
will actively disconnect from nodes that reports that they have
lost connections to other nodes. This will cause fully
connected partitions to form instead of leaving the network in
a state with overlapping partitions. Note that this fix has to
be enabled on all nodes in the network in order to work
properly. Since this quite substantially changes the behavior,
this fix is currently disabled by default. Since you might get
hard to detect issues without this fix you are, however,
strongly advised to enable this fix in order to avoid issues
such as the ones described above. As of OTP 25 this fix will
become enabled by default.
* kernel: Fix bug where logger would crash when logging a report
including improper lists.
* kernel: Make erlang:set_cookie work for dynamic node names.
* kernel: Add support for using socket:sockaddr_in() and
socket:sockaddr_in6() when using gen_sctp, gen_tcp and gen_udp.
This will make it possible to use Link Local IPv6 addresses.
* kernel: A net_tickintensity kernel parameter has been
introduced. It can be used to control the amount of ticks
during a net_ticktime period. A new net_kernel:start/2 function
has also been introduced in order to make it easier to add new
options. The use of net_kernel:start/1 has been deprecated.
* kernel: Improve documentation for the dynamic node name
feature.
* erl_docgen: Fix css for large tables and images on small
screens
* erl_docgen: Fix bug with codeinclude tag that caused it to not
include the code if used in a correct, but unexpected way.
* observer: Calculate the display width in etop, instead of hard-
coding it to 89 characters.
* debugger: Fix record index matching, it was broken and could
never match.
* ssl: Improved error handling.
* ssl: Before this change, net_kernel used with TLS distribution
might be leaking processes in case of connectivity issues.
* ssl: Fix makefile dependency bugs.
* ssl: Make sure the TLS sender process handles explicit calls to
erlang:disconnect_node properly, avoiding potential hanging
problems in net_kernel.
* ssl: Add support for TLS-1.3 certificate_authorities extension.
And process certificate_authorities field in pre-TLS-1.3
certificate requests.
* ssl: Support password fun for protected keyfiles in ssl:connect
function.
* ssl: Add in some cases earlier detection of possible DoS
attacks by malicious clients sending unexpected TLS messages
instead of the client hello. Note that such attacks are already
mitigated by providing a timeout for the TLS handshake.
* eldap: Fix eldap extensibleMatch dnAttributes option. According
to the ldap ASN1 the dnAttributes should be a bool, instead it
was generated as a string.
* eldap: Implemented paged searches according to https://www.rfc-
editor.org/rfc/rfc2696.txt
* public_key: Support password fun for protected keyfiles in
ssl:connect function.
* stdlib: The compilation time is no longer recorded in BEAM
files. There remained several undocumented functions that
attempted to retrieve compilation times. Those have now been
removed.
* mnesia: Reduce the number of locks taken during table copying,
should reduce the startup time on large systems.
* diameter: The compilation time is no longer recorded in BEAM
files. There remained several undocumented functions that
attempted to retrieve compilation times. Those have now been
removed.
* Sun Mar 06 2022 matwey.kornilov@gmail.com
- Changes for 24.2.2:
* inets: Avoid intermediate ungraceful shutdown of the HTTP
server.
* ssh: The ssh sever parallel_login option was missing in OTP-24
* Mon Feb 21 2022 matwey.kornilov@gmail.com
- Changes for 24.2.1:
* ssl: Improve SNI (server name indication) handling so that
protocol version can be selected with regards to SNI. Also,
make sure that ssl:connection_information/1 returns the correct
SNI value.
* ssl: Fixed cipher suite listing functions so that the listing
of all cipher suites will be complete. Another fix for cipher
suite handling in OTP-24.1 accidentally excludes a few cipher
suites from the listing of all cipher suites.
* ssl: Reenable legacy cipher suite TLS_RSA_WITH_3DES_EDE_CBC_SHA
for explicit configuration in TLS-1.2, not supported by
default.
* ssl: Avoid unnecessary logs by better adjusting the tls_sender
process to the new supervisor structure in OTP-24.2
* erts: Fixed a memory leak in file:read_file_info/2 and
file:read_file/1 on Windows.
* erts: Fix GC emulator crash when spawn_request was used when
message tracing was enabled.
* Fri Jan 21 2022 matwey.kornilov@gmail.com
- Changes for 24.2:
* compiler: When the compiler is invoked by Dialyzer, it will no
longer apply an optimization of binary patterns that would turn
the pattern <<"bar">> into <<6447474:24>>, which would be very
confusing when printed out by Dialyzer.
* compiler: The compiler would replace known failing calls (such
as atom_to_list(42)) with a call to error(badarg). With the
extended error information introduced in OTP 24 (EEP 54), those
"optimized" calls would not have extended error information. To
ensure that as much extended error information as possible is
available, the compiler now keeps the original call even when
it is known to fail.
* sasl: Make release_handler even more resilient against exiting
processes during upgrade. Same kind of bug fix as OTP-16744
released in sasl-4.0.1 (OTP 23.1).
* ssl: Allow re-connect on DTLS sockets Can happen when a
computer reboots and connects from the same client port without
the server noticing should be allowed according to RFC.
* ssl: Fix tls and non-tls distribution to use
erl_epmd:address_please to figure out if IPv4 or IPv6 addresses
should be used when connecting to the remote node. Before this
fix, a dns lookup of the remote node hostname determined which
IP version was to be used which meant that the hostname had to
resolve to a valid ip address.
* ssl: Use supervisor significant child to manage tls connection
process and tls sender process dependency.
* ssl: Random generation adjustment for TLS1.3
* ssl: Allow any {03,XX} TLS record version in the client hello
for maximum interoperability
* mnesia: Documentation and minor code cleanup.
* common_test: Before this change, group handling grammar was
ambiguous and also group paths did not support test specs.
* common_test: Before this change, it was not possible to link to
a particular header entry in Common Test log. Change adds right
aligned anchor icons in HTML test logs.
* parsetools: The default parser include file for yecc (yeccpre)
will no longer crash when attempting to print tokens when
reporting an error.
* tools: Erlang-mode fixed for newer versions of xref using CL-
Lib structures instead of EIEIO classes.
* inets: Correct HTTP server URI handling to fully rely on
uri_string. The server could mistreat some URI paths that in
turn could result in incorrect responses being generated.
* inets: Extend header values to httpc:request/5 to allow
binary() as well. Make error detection of invalid arguments to
httpc:request/5 be more precise so an error is returned in more
cases instead of causing a hang or function_clause. Be more
precise in documentation regarding the types of arguments being
accepted.
* crypto: Fixed the C-warning "implicit declaration of function
'OpenSSL_version_num'" if compiling with an early LibreSSL
version.
* crypto: FIPS availability was not checked correctly for AEAD
ciphers.
* crypto: Fixed that cipher aliases (like aes_cbc etc) could be
present even if the aliased cipher(s) (like aes_128_cbc,
aes_256_cbc,... etc) was missing.
* crypto: The crypto app in OTP can now be compiled, linked and
used with the new OpenSSL 3.0 cryptolib. It has not yet been
extensively tested and is in this release *not recommended* for
other usages than experiments and alpha testing. There are not
yet any guaranties that it works, not even together with other
OTP applications like for example SSL and SSH, although there
are no known errors. Compiling and linking with OpenSSL 3.0
cryptolib in compatibility modes (for example to behave as
1.1.1) are not tested. It is not tested with external
providers. The support for FIPS mode does not yet work, and is
disabled when compiled with OpenSSL 3.0. Deprecated functions
in the OpenSSL 3.0 cryptolib must not be disabled as OTP/crypto
still uses some of the deprecated API functions. The gcc flag
- Wno-deprecated-declarations is set to prevent deprecation
warnings to be printed when compiling. The hash algorithms md4
and ripemd160 are disabled temporarily when compiled with
OpenSSL 3.0. The ciphers blowfish_cbc, blowfish_cfb64,
blowfish_ecb, blowfish_ofb64, des_cbc, des_cfb, des_ecb,
rc2_cbc and rc4 are disabled temporarily when compiled with
OpenSSL 3.0.
* crypto: The error handling in crypto is partly refactored using
the new error reporting support. Errors earlier propagated like
exceptions are still so, but when the failing function is
called from the terminal - for example during failure hunting -
a more descriptive text is produced.
* crypto: A new function crypto:info/0 which presents some data
about the compilation and linkage of the crypto nif is added.
* crypto: Added the pbkdf2_hmac/5 function to the crypto module.
It calls the PKCS5_PBKDF2_HMAC function which implements PBKD2
with HMAC in an efficient way.
* stdlib: Fix rendering of nbsp on terminals that do not support
unicode.
* stdlib: Improved the erl_error printout for when re fails to
compile a regular expression to also print hints about why the
compilation failed.
* stdlib: Fixed spec for supervisor_bridge:start_link().
* stdlib: Added missing shutdown clauses in supervisor which
could cause erroneous error reports.
* stdlib: Add the no_auto_import_types to erl_lint to allow a
module to define types of the same name as a predefined type.
* erts: When matching and constructing utf16 segments in the
binary syntax, the native flag would be ignored. That is, the
endian would always be big endian even on a little-endian
computer (almost all modern computers).
* erts: Fix the help printout of +JPperf.
* erts: Fix bug that could cause Erlang to deadlock during
creation of an Erlang crash dump.
* erts: Fixed C++ build errors on some aarch64 platforms.
* erts: For macOS, the Info.plist file embedded in the runtime
system now only contains the absolute minimum amount of
information needed for the web view in wx to work towards
localhost. The other fields have been removed, allowing an
application packaged in a bundle to specify the application
name and other parameter in its own Info.plist file.
* erts: Fix bug in internal stacks (WSTACK and ESTACK) used by
term_to_binary/2 to encode terms. The bug could cause a
segfault if a very very large map was to be encoded with the
deterministic option given.
* erts: Improve the error printout when open_port/2 fails because
of invalid arguments.
* erts: Fix bug in crash dumps where the stackframe of a process
would be printed using an incorrect format. Crash dump viewer
has also been fixed to be able read the broken stack format.
The bug has existed since Erlang/OTP 23.0.
* erts: An option for enabling dirty scheduler specific allocator
instances has been introduced. By default such allocator
instances are disabled. For more information see the
documentation of the +Mdai erl command line argument.
* erts: Minor optimization of receive markers in message queues.
* erts: All predefined types have been added to the erlang module
together with documentation. Any reference to a predefined type
now links to that documentation so that the user can view it.
* erts: Suppress a code checker warning caused by debug builds of
YCF. YCF tries to get a conservative estimate of the bottom of
the stack by reading and returning a call stack allocated
variable.
* erts: Add file and product properties to erl.exe and werl.exe.
* erts: Micro optimization in bitstring append operations.
* erts: Responsiveness of processes executing on normal or low
priority could suffer due to code purging or literal area
removal on systems with a huge amount of processes. This since
during these operations all processes on the system were
scheduled for execution at once. This problem has been fixed by
introducing a limit on outstanding purge and copy literal
requests in the system. By default this limit is set to twice
the amount of schedulers on the system. This will ensure that
schedulers will have enough work scheduled to perform these
operations as quickly as possible at the same time as other
work will be interleaved to a much higher degree. Performance
of these operations will however be somewhat degraded due to
the overhead of enforcing this limit compared to when using a
very large limit. This limit can be set by passing the +zosrl
command line argument to erl, or by calling
erlang:system_flag(outstanding_system_requests_limit,
NewLimit).
* kernel: socket:which_sockets( pid() ) uses wrong keyword when
looking up socket owner ('ctrl' instead of 'owner').
* kernel: In epmd_ntop, the #if defined(EPMD6) conditional was
inverted and it was only including the IPv6-specific code when
EPMD6 was undefined. This was causing IPv6 addrs to be
interpreted as IPv4 addrs and generating nonsense IPv4
addresses as output. Several places were incorrectly using
'num_sockets' instead of 'i' to index into the iserv_addr array
during error logging. This would result in a read into
uninitialized data in the iserv_addr array. Thanks to John
Eckersberg for providing this fix.
* kernel: Minor fix of the erl_uds_dist distribution module
example.
* kernel: A bug has been fixed for the legacy TCP socket adaption
module gen_tcp_socket where it did bind to a socket address
when given a file descriptor, but should not.
* kernel: Improve the error printout when open_port/2 fails
because of invalid arguments.
* kernel: Calling socket:monitor/1 on an already closed socket
should succeed and result in an immediate DOWN message. This
has now been fixed.
* kernel: Fix the configuration option logger_metadata to work.
* kernel: Fix tls and non-tls distribution to use
erl_epmd:address_please to figure out if IPv4 or IPv6 addresses
should be used when connecting to the remote node. Before this
fix, a dns lookup of the remote node hostname determined which
IP version was to be used which meant that the hostname had to
resolve to a valid ip address.
* kernel: Add logger:reconfigure/0.
* kernel: Add socket function ioctl/2,3,4 for socket device
control.
* kernel: Add simple support for socknames/1 for gen_tcp_socket
and gen_udp_socket.
* kernel: The types for callback result types in gen_statem has
bee augmented with arity 2 types where it is possible for a
callback module to specify the type of the callback data, so
the callback module can get type validation of it.
* erl_docgen: Fix codeinclude tag to correctly respect the type
attribute.
* erl_docgen: The HTML documentation has been updated to collapse
better on small screens.
* erl_docgen: All predefined types have been added to the erlang
module together with documentation. Any reference to a
predefined type now links to that documentation so that the
user can view it.
* snmp: Handling of test config flag when starting "empty".
* snmp: Add support for new authentication algorithms (SHA-224,
SHA-256, SHA-384 and SHA-512), according to RFC 7860.
* snmp: Improve debug info for (snmp) manager.
* wx: Fix crash in cleanup code when a gui application is
exiting. Fix errors in the OpenGL wrapper that could cause
crashes and improve the documentation.
* edoc: Add option link_predefined_types that is used to create
links to erlang predefined types. This is mainly to be used by
erl_docgen when creating the Erlang/OTP documentation.
* dialyzer: Fixed a crash when opaque types contained certain
unicode characters.
* dialyzer: When the compiler is invoked by Dialyzer, it will no
longer apply an optimization of binary patterns that would turn
the pattern <<"bar">> into <<6447474:24>>, which would be very
confusing when printed out by Dialyzer.
* observer: Fix bug in crash dumps where the stackframe of a
process would be printed using an incorrect format. Crash dump
viewer has also been fixed to be able read the broken stack
format. The bug has existed since Erlang/OTP 23.0.
* ssh: The value of the connect_timeout option is now used as
default value for the negotiation timeout.
* ssh: Add better error handling in connect/2,3,4. Detect
incorrect arguments and return an informative error tuple
instead of throwing a function_clause or similar.
* ssh: Make ssh algorithm selection better handle dynamic changes
changes in crypto fips mode.
* megaco: [megaco_tcp] When connect fails, include more info in
the error reason.
- Changes for 24.1.7:
* ssh: Fixed a race condition in the acceptor loop: if a client
disconnected immediately after the tcp connect, the server
could cease handling connection on that address:port.
- Changes for 24.1.6:
* ssl: Correct typo of ECC curve name in signature algorithm
handling. Will make the signature algorithm
ecdsa_secp521r1_sha512 succeed.
* ssl: Suppress authenticity warning when option verify_none is
explicitly supplied.
- Changes for 24.1.5:
* erts: The runtime system could call select() with a too large
timeout value when executing on MacOS. This could in turn cause
the runtime system to crash.
* erts: The fix for Linux's behaviour when reconnecting an UDP
socket in PR-5120 released in OTP-24.1.2 has been refined to
only dissolve the socket's connection before a connect if the
socket is already connected, that is: only for a reconnect.
This allows code to open a socket with an ephemeral port, get
the port number and connect; without the port number changing
(on Linux). This turned out to have at least one valid use case
(besides test cases). Should one reconnect the socket then the
port number may change, on Linux; it is a known quirk, which
can be worked around by binding to a specific port number when
opening the socket. If you can do without an ephemeral port,
that is...
* erts: Certain distributed signals that for various reasons must
to be forced into the distribution buffer even when it is full
would instead be lost if the distribution buffer was full when
sent. The effected signals:
* kernel: The internal, undocumented, but used, module inet_dns
has been fixed to handle mDNS high bit usage of the Class
field. Code that uses the previously obsolete, undocumented and
unused record field #dns_rr.func will need to be updated since
that field is now used as a boolean flag for the mDNS high
Class bit. Code that uses the also undocumented record
[#]dns_query will need to be recompiled since a boolean field
[#]dns_query.unicast_response has been added for the mDNS high
Class bit. *** POTENTIAL INCOMPATIBILITY ***
* kernel: The fix for Linux's behaviour when reconnecting an UDP
socket in PR-5120 released in OTP-24.1.2 has been refined to
only dissolve the socket's connection before a connect if the
socket is already connected, that is: only for a reconnect.
This allows code to open a socket with an ephemeral port, get
the port number and connect; without the port number changing
(on Linux). This turned out to have at least one valid use case
(besides test cases). Should one reconnect the socket then the
port number may change, on Linux; it is a known quirk, which
can be worked around by binding to a specific port number when
opening the socket. If you can do without an ephemeral port,
that is...
- Changes for 24.1.4:
* erts: Fix bug where a gen_tcp write error that happened during
a delayed_send would cause a use after free segfault.
* erts: Fix x86 JIT bug where a rem instruction could cause a
segfault if given values that would cause an badarith
exception.
- Changes for 24.1.3:
* ssl: Fix TLS-1.2 RSA-PSS negotiation and also fix broken
certificate request message for pre-TLS-1.3 servers.
* ssl: Fix CRL issuer verification that under some circumstances
could fail with a function_clause error.
* erts: Reduction counter was not updated before and after doing
apply operations on the runtime system with the jit enabled.
This caused reduction counting to get out of sync if a garbage
collection was made as part of the apply operation.
* erts: This fixes a bug in erts_factory_undo that caused the
heap to not be reset correctly. The erts_factory_undo function
is, for example, called when a binary_to_term/1 call fails to
reset the heap to its state before the binary_to_term/1 call.
This can cause the heap to contain invalid terms which
potentially can cause issues (e.g., crashes) when the whole
heap is scanned.
* erts: When attempting to construct a binary with an segment
having an illegal type for the size (e.g. an atom), there could
be an unnecessary memory allocation (and subsequent
deallocation) before the operation failed. Amended to fail
before allocating any memory for the binary.
* erts: Fix bug in persistent_term when a key-value pair contains
a magic reference that is referred more than once. Magic
references are NIF resources or returned from BIFs like
ets:new, atomics:new. The bug could cause the memory of the
referred resource to be prematurely deallocated. The bug also
apply to magic references in message passing on a runtime built
with configure option --enable-sharing-preserving. Bug exist
for 64-bit since OTP-24.0 and for 32-bit since OTP-20.0.
* erts: Fixed a crash when inspecting the stack trace of an
exception raised at a very high line number. This bug was
introduced in OTP 24.
* erts: The following two bugs that caused erlang:demonitor() to
behave erroneously have been fixed. The bugs were only
triggered if the monitor that was removed by demonitor() had
previously been created simultaneously as a monitor and as an
alias.
/usr/lib64/erlang/lib/diameter-2.4.1 /usr/lib64/erlang/lib/diameter-2.4.1/bin /usr/lib64/erlang/lib/diameter-2.4.1/bin/diameterc /usr/lib64/erlang/lib/diameter-2.4.1/doc /usr/lib64/erlang/lib/diameter-2.4.1/ebin /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter.app /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter.appup /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_app.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_callback.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_capx.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_codec.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_codegen.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_config.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_config_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_dbg.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_dict_parser.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_dict_scanner.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_dict_util.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_dist.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_etcp.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_etcp_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_exprecs.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_gen.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_gen_acct_rfc6733.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_gen_base_accounting.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_gen_base_rfc3588.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_gen_base_rfc6733.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_gen_doic_rfc7683.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_gen_relay.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_info.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_lib.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_make.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_misc_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_peer.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_peer_fsm.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_peer_fsm_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_reg.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_sctp.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_sctp_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_service.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_service_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_session.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_stats.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_sync.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_tcp.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_tcp_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_traffic.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_transport.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_transport_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_types.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_watchdog.beam /usr/lib64/erlang/lib/diameter-2.4.1/ebin/diameter_watchdog_sup.beam /usr/lib64/erlang/lib/diameter-2.4.1/examples /usr/lib64/erlang/lib/diameter-2.4.1/examples/code /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/GNUmakefile /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/client.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/client_cb.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/redirect.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/redirect_cb.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/relay.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/relay_cb.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/server.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/code/server_cb.erl /usr/lib64/erlang/lib/diameter-2.4.1/examples/dict /usr/lib64/erlang/lib/diameter-2.4.1/examples/dict/rfc4004_mip.dia /usr/lib64/erlang/lib/diameter-2.4.1/examples/dict/rfc4005_nas.dia /usr/lib64/erlang/lib/diameter-2.4.1/examples/dict/rfc4006_cc.dia /usr/lib64/erlang/lib/diameter-2.4.1/examples/dict/rfc4072_eap.dia /usr/lib64/erlang/lib/diameter-2.4.1/examples/dict/rfc4590_digest.dia /usr/lib64/erlang/lib/diameter-2.4.1/examples/dict/rfc4740_sip.dia /usr/lib64/erlang/lib/diameter-2.4.1/include /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter.hrl /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter_gen.hrl /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter_gen_acct_rfc6733.hrl /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter_gen_base_accounting.hrl /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter_gen_base_rfc3588.hrl /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter_gen_base_rfc6733.hrl /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter_gen_doic_rfc7683.hrl /usr/lib64/erlang/lib/diameter-2.4.1/include/diameter_gen_relay.hrl
Generated by rpm2html 1.8.1
Fabrice Bellet, Thu Oct 23 23:06:42 2025