aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-06-28Fix a race condition when generating async operation idsJohn Högberg
The counter used for generating async operation ids was a plain int shared between all ports, which was incorrect but mostly worked fine since the ids only had to be unique on a per-port basis. However, some compilers (notably GCC 8.1.1) generated code that assumed that this value didn't change between reads. Using a shortened version of enq_async_w_tmo as an example: int id = async_ref++; op->id = id; //A return id; //B In GCC 7 and earlier, `async_ref` would be read once and assigned to `id` before being incremented, which kept the values at A and B consistent. In GCC 8, `async_ref` was read when assigned at A and read again at B, and then incremented, which made them inconsistent if we raced with another port. This commit fixes the issue by removing `async_ref` altogether and replacing it with a per-port counter which makes it impossible to race with someone else.
2017-06-07Updated OTP versionOTP-19.3.6Erlang/OTP
2017-06-07Update release notesErlang/OTP
2017-06-07Update version numbersErlang/OTP
2017-06-07Merge branch 'lukas/erts/fix_zz_sigterm_kill/OTP-14451' into maint-19Erlang/OTP
* lukas/erts/fix_zz_sigterm_kill/OTP-14451: erts: Fix so that 81b628 (sigterm=kill) works
2017-06-07Merge branch 'rickard/purge-hibernated-19/ERIERL-24/OTP-14444' into maint-19Erlang/OTP
* rickard/purge-hibernated-19/ERIERL-24/OTP-14444: Update testcase to check that purge handle hibernated process correct Do not GC hibernated process from other processes Fix check_process_code() on hibernated process
2017-06-07Merge branch 'john/erts/fix-zombie-tcp-ports/ERL-430/OTP-14441' into maint-19Erlang/OTP
* john/erts/fix-zombie-tcp-ports/ERL-430/OTP-14441: Unconditionally clear IO buffers on send/shutdown errors
2017-06-05erts: Fix so that 81b628 (sigterm=kill) worksLukas Larsson
OTP-14451
2017-06-02Updated OTP versionOTP-19.3.5Erlang/OTP
2017-06-02Update release notesErlang/OTP
2017-06-02Update version numbersErlang/OTP
2017-06-02Merge branch 'lars/xmerl/fragmented-xml-directive/OTP-14430' into maint-19Erlang/OTP
* lars/xmerl/fragmented-xml-directive/OTP-14430: [xmerl] Update version [xmerl] Add test cases [xmerl] Fix endDocument bug in output backends [xmerl] Fix fragmented xml directive bug and replace ets table
2017-06-02Merge branch 'lukas/erts/restore-sigterm-default/OTP-14418' into maint-19Erlang/OTP
* lukas/erts/restore-sigterm-default/OTP-14418: erts: Add undocumented option to do default SIGTERM
2017-06-01Merge branch 'rickard/purge-hibernated' into rickard/purge-hibernated-19Rickard Green
* rickard/purge-hibernated: Update testcase to check that purge handle hibernated process correct Conflicts: erts/emulator/test/code_SUITE.erl
2017-06-01Update testcase to check that purge handle hibernated process correctRickard Green
2017-06-01Merge branch 'rickard/purge-hibernated' into rickard/purge-hibernated-19Rickard Green
* rickard/purge-hibernated: Do not GC hibernated process from other processes Fix check_process_code() on hibernated process Conflicts: erts/emulator/beam/beam_bif_load.c erts/emulator/beam/erl_gc.c erts/emulator/beam/erl_process.h
2017-06-01Do not GC hibernated process from other processesRickard Green
2017-06-01Fix check_process_code() on hibernated processRickard Green
2017-06-01Unconditionally clear IO buffers on send/shutdown errorsJohn Högberg
This fixes a bug where a send/shutdown error on an active-mode socket results in the port never being properly closed.
2017-05-24[xmerl] Update versionLars Thorsen
2017-05-24[xmerl] Add test casesLars Thorsen
2017-05-24[xmerl] Fix endDocument bug in output backendsLars Thorsen
* Fix problem of unexpected endDocument in the old_dom and simple output backends
2017-05-24[xmerl] Fix fragmented xml directive bug and replace ets tableLars Thorsen
* Fix continuation bug if the xml directive is fragmented * Replace the ENTITY ets table with a map
2017-05-19erts: Add undocumented option to do default SIGTERMLukas Larsson
This is a stopgap measure before the release of OTP-20 where that makes it possible for the user to make the vm not do anything with SIGTERM and instead rely on the OS default. To enable this behaviour the user should set the environment variable ERL_ZZ_SIGTERM_KILL="true".
2017-05-11Updated OTP versionOTP-19.3.4Erlang/OTP
2017-05-11Prepare releaseErlang/OTP
2017-05-11Merge branch 'hans/inets/ftp_recv_chunk_close/OTP-14391' into maint-19Erlang/OTP
* hans/inets/ftp_recv_chunk_close/OTP-14391: inets: add testcase to ftp_SUITE Try doing three consecutive chunked receive with some changed timing in the ending sequence inets: Try fix ftp recv_chunk timing issue
2017-05-11Merge pull request #1454 from joedevivo/remove-ct-pal-from-ssl-connectionIngela Andin
removed ct:pal call in ssl_connection
2017-05-11removed ct:pal call in ssl_connectionJoe DeVivo
2017-05-04inets: add testcase to ftp_SUITEHans Nilsson
Try doing three consecutive chunked receive with some changed timing in the ending sequence
2017-05-04inets: Try fix ftp recv_chunk timing issueHans Nilsson
2017-04-28Updated OTP versionOTP-19.3.3Erlang/OTP
2017-04-28Prepare releaseErlang/OTP
2017-04-28Merge branch 'ingela/fix-inets-releasnote' into maint-19Erlang/OTP
* ingela/fix-inets-releasnote: inets: Add missing release note
2017-04-28Merge branch 'hasse/dialyzer/fix_unknown_types/OTP-14368' into maint-19Erlang/OTP
* hasse/dialyzer/fix_unknown_types/OTP-14368: dialyzer: Fix a bug regarding unknown types
2017-04-28Merge branch 'rickard/relnote-fix/OTP-14363' into maint-19Erlang/OTP
* rickard/relnote-fix/OTP-14363: Fix release note for OTP-14290
2017-04-28Merge branch 'mikpe/erts-erl_mseg-bad-cache-indexing/OTP-14360' into maint-19Erlang/OTP
* mikpe/erts-erl_mseg-bad-cache-indexing/OTP-14360: erl_mseg.c: don't use invalid indices in - > cache_powered_node[]
2017-04-27inets: Add missing release noteIngela Anderton Andin
2017-04-26dialyzer: Fix a bug regarding unknown typesHans Bolinder
Since commit 12b3790 Dialyzer has not reported unknown types.
2017-04-26erl_mseg.c: don't use invalid indices in - > cache_powered_node[]Mikael Pettersson
2017-04-25Fix release note for OTP-14290Rickard Green
2017-04-21Updated OTP versionOTP-19.3.2Erlang/OTP
2017-04-21Prepare releaseErlang/OTP
2017-04-21Merge branch 'rickard/sigterm/OTP-14358' into maint-19Erlang/OTP
* rickard/sigterm/OTP-14358: Do not ignore SIGTERM when VM has been started with +Bi
2017-04-21Do not ignore SIGTERM when VM has been started with +BiRickard Green
2017-03-31Updated OTP versionOTP-19.3.1Erlang/OTP
2017-03-31Update release notesErlang/OTP
2017-03-31Update version numbersErlang/OTP
2017-03-31Merge branch 'kellymclaughlin/crypto/aes_cfb_128/PR-1393/OTP-14313' into ↵Erlang/OTP
maint-19 * kellymclaughlin/crypto/aes_cfb_128/PR-1393/OTP-14313: Fix bug with AES CFB 128 Demonstrate the bug with AES CFB 128 encryption
2017-03-31Merge branch 'raimo/file-read_file-leaks-file-descriptors/ERL-383/OTP-14308' ↵Erlang/OTP
into maint-19 * raimo/file-read_file-leaks-file-descriptors/ERL-383/OTP-14308: Close FD after trying to open a directory