This document describes the changes made to the Erl_interface application.
Fix bug where gethostname would incorrectly fail with enametoolong on Linux.
Own Id: OTP-14310
Remove generation of atoms in old latin1 external format.
The old latin1 format can still be decoded but is never
generated by
Own Id: OTP-14337
Minor documentation update
Own Id: OTP-14233 Aux Id: PR-1343
Fix
Own Id: OTP-13981
Editorial documentation changes
Own Id: OTP-13980
Look for .erlang.cookie in windows system directory if HOMEDRIVE and HOMEPATH is not set. The same behaviour as the VM.
Own Id: OTP-13849
Fix decoding of LLONG_MIN in erl_decode
Own Id: OTP-13666 Aux Id: ERL-158
On windows
Own Id: OTP-13673
Handle terms (pids,ports and refs) from nodes with a 'creation' value larger than 3. This is a preparation of the distribution protocol to allow OTP 19 nodes to correctly communicate with future nodes (20 or higher). The 'creation' value differentiates different incarnations of the same node (name).
Own Id: OTP-13488
Fix Erl_Interface build error on Debian/Hurd and Debian/kFreeBSD. (Thanks to Sergei Golovan)
Own Id: OTP-13328
EPMD supports both IPv4 and IPv6
Also affects oldest supported windows version.
Own Id: OTP-13364
Fix the conditional selection of gethostbyname_r and gethostbyaddr_r.
Own Id: OTP-13188
Do not accept Nan and Infinity values
Erlang does not accept these values, so we return an error in the C interface rather than letting them through to the Erlang VM, which rejects the message with a somewhat cryptic "bad external term".
Own Id: OTP-12801
Use C99 function isfinite() instead of finite() when available on non GCC compilers.
Own Id: OTP-12268
Distribute
Own Id: OTP-12348
Added an .appup file for the application.
Own Id: OTP-12358 Aux Id: OTP-12178
Added a
Own Id: OTP-12178
Implement --enable-sanitizers[=sanitizers]. Similar to debugging with Valgrind, it's very useful to enable -fsanitize= switches to catch bugs at runtime.
Own Id: OTP-12153
Now works with Visual Studio.
Own Id: OTP-11984
Fix memcheck warning in gen_challange (Thanks to Olivier Girondel)
Own Id: OTP-11608
Silence warnings (Thanks to Anthony Ramine)
Own Id: OTP-11517
Introduced functionality for inspection of system and build configuration.
Own Id: OTP-11196
Header and library files from ic and erl_interface are now installed into usr/{include,lib}. Note that these directories are unversioned, so the latest installed version will be the one in the directory.
Own Id: OTP-11284
Fix location of true binary under Mac OSX. Thanks to Simon Cornish.
Own Id: OTP-11289
A guard was added to check if file descriptor is valid before closing it.
Own Id: OTP-11167
Superfluous trailing comma in enum erlang_char_encoding causing compile error for g++ with --pedantic option.
Own Id: OTP-10913 Aux Id: seq12264
Revert the structs
Own Id: OTP-10885 Aux Id: seq12256
Where necessary a comment stating encoding has been added to Erlang files. The comment is meant to be removed in Erlang/OTP R17B when UTF-8 becomes the default encoding.
Own Id: OTP-10630
Limited support for unicode atoms in the external format and in the internal representation of the vm. This is a preparative feature in order to support communication with future releases of Erlang/OTP that may create unicode atoms.
Own Id: OTP-10753
Teach lib/erl_interface/configure.in to look for pthreads support in libc (where it can be found on QNX)
A minor tweak such that this configure *fails* if you pass --enable-threads and no pthreads support can be found.
(Thanks to Per Hedeland)Own Id: OTP-10581
Detect when middle endian doubles are used by a platform and account for it when decoding floats. (Thanks to Mike Sperber)
Own Id: OTP-10209
Minor suppressions and fixes of compilation warnings
Own Id: OTP-10016
An error when getting global names on OS X Lion has been fixed. The error caused truncated strings to be returned from the function.
Own Id: OTP-9799
Erlang/OTP can now be built using parallel make if you
limit the number of jobs, for instance using '
Own Id: OTP-9451
Eliminate use of deprecated regexp module
Own Id: OTP-9810
Align ei buffer according to size of pointers
Own Id: OTP-9390
XML files have been corrected.
Own Id: OTP-9550 Aux Id: OTP-9541
Make comment and documentation reflect code in erl_interface/src/misc/ei_decode_term.c (Thanks to Anneli Cuss)
Own Id: OTP-9559
ei: integer overflow in string/atom encoding
ei_encode_atom() and ei_encode_string() use strlen() to get the length of the buffer. As strlen() returns an unsigned long long and both ei functions take a signed integer, the length fields may overflow.
Check so that the results of strlen can be held in a signed integer. (Thanks to Michael Santos)
Own Id: OTP-9530
Fix using sizeof() for array given as function argument
When using the sizeof() operator for an array given as function argument it returns the size of the pointer. In this case, the affected function hex(char digest[16], char buff[33]) will just print 4 or 8 byte instead of the full length of 16 bytes, on 32bit and 64bit systems respectively. (Thanks to Cristian greco)
Own Id: OTP-9151
Initialize
Own Id: OTP-9241
erl_interface: fix compile error(Thanks to Michael Santos)
Own Id: OTP-9252
Some malformed distribution messages could cause VM to crash, this is now corrected.
Own Id: OTP-8993
Strengthen string copy check (Thanks to Michael Santos).
Own Id: OTP-9071
Strengthen atom length check when decoding atoms (Thanks to Michael Santos).
Own Id: OTP-9072
Fix global registration. C node needed DFLAG_DIST_MONITOR_FLAT set when connecting. Fix list compare in erl_compare_ext to return correct result. (Thanks to Vitaliy Batichko and Evgeny Khirin)
Own Id: OTP-9015
erl_call: remove get_hostent
get_hostent does not properly handle IPv4 addresses on little endian platforms and fails with hostnames beginning with a number. Remove get_hostent and use ei_gethostbyname directly since gethostbyname supports IPv4 addresses.
(Thanks to Michael Santos)
Own Id: OTP-8890
teach ei_x_format to handle unary - and + (Thanks to Steve Vinoski)
Own Id: OTP-8891
Fix zero byte allocation in registry. (Thanks to Michael Santos)
Own Id: OTP-8893
Check the length of the node name to prevent an overflow. Memory error control of ei_alloc_big. (Thanks to Michael Santos)
Own Id: OTP-8943
erl_term_len() in erl_interface could returned too large values for integers (since R14B) and too small values for refs (since R9B).
Own Id: OTP-8945
The
Own Id: OTP-8874
Removed unused variable in
Fixed faulty deallocation in
Own Id: OTP-8748
ei_connect: correct man page examples (Thanks to Michael Santos)
Own Id: OTP-8813
ei: prevent overflow in
Add length check of the buffer before copying. (Thanks to Michael Santos)
Own Id: OTP-8814
Remove DECLSPEC feature which fails on Windows Vista and use the fallback implementation instead.
Own Id: OTP-8826
erl_call: fix multiple buffer overflows (Thanks to Michael Santos)
Own Id: OTP-8827
Fix incorrect writev iovec buffer handling in
Own Id: OTP-8837
compact IEEE 754 double encoding in external binary format for ei
Implement the compact IEEE 754 double encoding in external binary format for ei. Encoding for ei now always produces the NEW_FLOAT_EXT format. Decoding and term printing handle both the old ERL_FLOAT_EXT encoding and the new NEW_FLOAT_EXT encoding.
Legacy erl_interface code also handles the new encoding, but still produces the ERL_FLOAT_EXT encoding by default.
Also enable the DFLAG_NEW_FLOATS distribution flag.
ei_get_type() will return ERL_FLOAT_EXT regardless if the external format is encoded with ERL_FLOAT_EXT or NEW_FLOAT_EXT for doubles.
Reduce the number of copies of the code for encoding and decoding doubles throughout ei and erl_interface by instead calling the ei encoding and decoding functions wherever possible.
Restore commented-out float tests in ei_decode_SUITE and ei_encode_SUITE in lib/erl_interface/test. Modify them to make them match the style of other tests in the same suites.
These changes are based on an ei float patch from Serge Aleynikov originally submitted against R12B-2 in July 2008 and reworked by Steve Vinoski May 2010.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8684
Document debug support.
Debug trace output for connection activity could be enabled setting the trace level as an integer to the EI_TRACELEVEL environment variable. This option could also be read and set from a running program using ei_get_tracelevel(void) and ei_set_tracelevel(int).
Own Id: OTP-5037
Cross compilation improvements and other build system improvements.
Most notable:
(Thanks to Henrik Riomar for suggestions and testing)
(Thanks to Winston Smith for the AVR32-Linux cross configuration and testing)
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8323
Change erroneous "\\0" in documentation files
Own Id: OTP-8326
Allow
Own Id: OTP-8400
The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.
Own Id: OTP-8201
The manual states that erl_receive() return the reason in
the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-4969
In
In
In
In
In
In
In
These errors has now been fixed. (Thanks to Romain Lenglet, Paul Mineiro and Paul Guyot).
Own Id: OTP-6117
Own Id: OTP-7554
The function
Own Id: OTP-8093
Own Id: OTP-8157
Added support for 64-bit integers in encoding/decoding.
Added support for better printouts of binaries.
Own Id: OTP-6091
A problem with
Clean up of code and removed compiler warnings.
Own Id: OTP-7978
A faulty validation in
Own Id: OTP-7960
Minor update to the
Own Id: OTP-7959
Minor update to the
Own Id: OTP-7959
Nodes belonging to different independent clusters can now co-exist on the same host with the help of a new environment variable setting ERL_EPMD_PORT.
Own Id: OTP-7826
A type-casting bug in ei_skip_term and ei_printterm on 64bit platforms rendering undefined results is now corrected.
Own Id: OTP-7577
A bug in the hostent copying code of erl_interface on MacOS X/Darwin is now corrected.
Own Id: OTP-7593
A problem with building
Own Id: OTP-7611
Fixed bug in erl_interface when decoding broken data
Own Id: OTP-7448
An erroneous freeing of memory could occur when using
Own Id: OTP-6795
A faulty compare in
Own Id: OTP-7368
Minor documentation fixes.
Own Id: OTP-7183 Aux Id: OTP-7118
The symbol __erl_errno was undefined in the single thread version of the ei library, but is now defined.
Own Id: OTP-6887
Corrected FreeBSD build error.
Own Id: OTP-7093
Calls to alloca in erl_marshal.c have been removed. A static buffer is now used instead to store node names temporarily.
Own Id: OTP-6331 Aux Id: seq10468
ei_print_term interprets a list of integers with values from 0 to 255 as a string. If the original list contains the integer 0, this is considered terminator of the string. This is incorrect. The function has now been modified to not look for '\0' in a string, but always print all characters.
Own Id: OTP-6339 Aux Id: seq10492
The combination of xeon processors with 64bit x86 extensions and a 32bit linux could cause ei_decode_long and ei_decode_longlong to fail for the value LONG_MIN and LONGLONG_MIN. The conversion is now made more portable.
Own Id: OTP-6216
Portability enhancements.
Own Id: OTP-6132
Different (and old)
Own Id: OTP-5967
pthread header and library mismatch on linux systems (at least some SuSE and Debian) with both NPTL and Linuxthreads libraries installed.
Own Id: OTP-5981
Support for a C node to connect to an Erlang node on a standalone host has been added.
Own Id: OTP-5883 Aux Id: seq10170
A configuration test error caused erl_interface to be built without support for threads. This has been corrected.
Own Id: OTP-5456
Changes and improvements have been made to the build and test environment to solve problems with failing erl_interface test cases.
Own Id: OTP-5295 Aux Id: OTP-5387
Process identifiers and port identifiers have been made more unique. Previously 18 bits were used as id in the internal representation of process and port identifiers. Now 28 bits are used.
The maximum limit on the number of concurrently existing processes due to the representation of pids has been increased to 268435456 processes. The same is true for ports. This limit will at least on a 32-bit architecture be impossible to reach due to memory shortage.
NOTE: By default, the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-4968 Aux Id: OTP-4196
Corrections for mistakes done for patch erl_605/OTP-4874.
Own Id: OTP-4995 Aux Id: OTP-4874
A small optimization in ei_rpc*() was added and a bug in ei_decode_longlong() was corrected.
Own Id: OTP-4784
Strings longer than 65535 bytes were encoded wrong in ei/erl_interface.
Own Id: OTP-4865 Aux Id: EABln07451
erl_call -a parsed erlang terms incorrectly due to a bug in ei_format, which is now corrected.
Own Id: OTP-4777 Aux Id: seq8099