aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
AgeCommit message (Collapse)Author
2019-07-18Fix io:columns() and io:rows() are not working from escripts bugKjell Winblad
The functions io:columns() and io:rows() only worked correctly inside interactive erlang shells before this fix. These functions returned {error,enotsup} before this fix even if stdout and stdin were connected to a terminal when they were invoked from an escript or a program started with e.g., `erl -noshell`. This commit fixes issue ERL-717.
2019-07-17Merge branch 'bmk/erts/esock/20190715/tests_tweaking' into maintMicael Karlberg
2019-07-15[esock|test] Adjusted time trapsMicael Karlberg
2019-07-15[esock|test] Extend gcc and multicast checksMicael Karlberg
Extend the "checks" for faulty gcc (found another platform with the same problem (Old SLES 11). Also tweaked the multicast test a bit.
2019-07-11[esock|test] Update the esock-ttest tool to work with IPv6Micael Karlberg
Needed to do some tweaking to make the tool work with IPv6 sockets. Also found and corrected some unrelated bugs in the tool. OTP-15897
2019-07-10[esock|test] Add missing IPv6 conditionsMicael Karlberg
"Due to" cut-and-paste, a number of IPv6 test cases was missing the condition fun for validating IPv6 support (which caused a couple of IPv6 test cases to fail on platforms not supporting IPv6). OTP-15897
2019-07-10[esock|test] Make the ttest groups of test cases work with IPv6Micael Karlberg
OTP-15897
2019-07-09[esock|test] Add a bunch of api async IPv6 test casesMicael Karlberg
OTP-15897
2019-07-09[esock|test] IPv6 socket address includes optional fieldsMicael Karlberg
OTP-15897
2019-07-09[esock|test] IPv6 socket address includes optional fieldsMicael Karlberg
OTP-15897
2019-07-08[esock|test] Add async IPv6 test caseMicael Karlberg
OTP-15897
2019-07-08[esock|test] Add counters IPv6 test casesMicael Karlberg
OTP-15897
2019-07-08[esock] Make it it work for IPv6Micael Karlberg
The nif code expects the socket address to be "complete", that is all fields must exist. This was not the case for a couple of functions, sendto, sendmsg and connect. What was mssing was a call to 'ensure_sockaddr'. Test: 1) Add a condition function to test if IPv6 is available and works. 2) Needed to adjust a test case (actually a common function used in several test cases) since the socket address data type has two optional fields, which we do not initiate (when sending), but the nif-code does fill in. OTP-15897
2019-07-08Merge branch 'bmk/erts/esock/20190701/improve_multicast_test' into maintMicael Karlberg
2019-07-08Merge branch 'bmk/erts/esock/20190626/finalize_counters/OTP-15818' into maintMicael Karlberg
2019-07-08Merge branch 'bmk/erts/esock/20190624/socket_command/OTP-15817' into maintMicael Karlberg
2019-07-08Merge branch 'raimo/udp-send-TOS/OTP-15422' into maintRaimo Niskanen
* raimo/udp-send-TOS/OTP-15422: Refine test cases Remove test code that fails on Windows
2019-07-08Merge branch 'bmk/erts/esock/20190614/split_modules/OTP-15765' into maintMicael Karlberg
2019-07-08Merge branch 'rickard/test-fixes-21' into maintRickard Green
* rickard/test-fixes-21: Fix unstable test dump_SUITE:signal_abort Fix unstable node_container_SUITE:magic_ref test Fix unstable node_container_SUITE:node_controller_refc test Fix unstable tests process_SUITE:no_priority_inversion{,2}
2019-07-08Fix unstable test dump_SUITE:signal_abortRickard Green
Sometimes processes have not had the time to spread from one scheduler. Force spread by using the undocumented 'scheduler' option.
2019-07-08Merge branch 'rickard/test-fixes-20' into rickard/test-fixes-21Rickard Green
* rickard/test-fixes-20: Fix unstable node_container_SUITE:magic_ref test Fix unstable node_container_SUITE:node_controller_refc test Fix unstable tests process_SUITE:no_priority_inversion{,2}
2019-07-08Fix unstable node_container_SUITE:magic_ref testRickard Green
2019-07-08Fix unstable node_container_SUITE:node_controller_refc testRickard Green
2019-07-08Fix unstable tests process_SUITE:no_priority_inversion{,2}Rickard Green
Sometimes processes have not had the time to spread from one scheduler. Force spread by using the undocumented 'scheduler' option.
2019-07-05Merge branch 'sverker/valgrind-hipe-suppression' into maintSverker Eriksson
* sverker/valgrind-hipe-suppression: erts: Suppress valgrind warning in offset_heap_ptr
2019-07-04[esock] Format buffer lengthMicael Karlberg
Corrected calculation of buffer length for format(ed) string. OTP-15817
2019-07-04[esock|test] Add conditional skip to debug test caseMicael Karlberg
The api_m_debug test case seems to trigger a gcc bug that causes a segfault on an ancient Fedora 16 VM (with gcc version 4.6.3-2). The simplest way to avoid this is to test for this specific (gcc) version... OTP-15817
2019-07-04[esock] Fixed debug "file"Micael Karlberg
Debug printouts is done to "dbgout", but the dbg macro flushed "stdout" (which was the default). So, in order to make the macro work properly in all cases, we rename dbgout to esock_dbgout and make it extern (was static), and then used that in the macro. OTP-15817
2019-07-03Remove test code that fails on WindowsRaimo Niskanen
2019-07-02Merge branch 'rickard/pcre-8.43/OTP-15889' into maintRickard Green
* rickard/pcre-8.43/OTP-15889: Updated stdlib runtime dependency to erts Convert generated re replace and split tests from latin1 to UTF8 Adjust generated re replacement and split tests Generate new re replacement and split tests using perl 5.22.1 Update internal PCRE to version 8.43
2019-07-01Merge PR-2313 from poroh/poroh/erts/sched-stuck-fix OTP-15941Sverker Eriksson
Infinite cycle fixed on try to change run queue (if it has already ch…
2019-07-01[esock] Improve mulicast address selectionMicael Karlberg
We use the netstat program to find a multicast address. But that program write some stuff stderr which confused the code. Add an attempt to filter out anything comming on stderr. Also try to catch errors, end "translate" them into skip.
2019-07-01Merge branch 'john/erts/lists_subtract_fixes/OTP-15938/OTP-15939' into maintJohn Högberg
* john/erts/lists_subtract_fixes/OTP-15938/OTP-15939: erts: Fix integer overflow in loader erts: Fix integer overflow in list subtraction
2019-07-01erts: Fix integer overflow in loaderJohn Högberg
qsort expects the comparison function to return an int; returning an `Sint` may yield nonsensical results.
2019-07-01erts: Fix integer overflow in list subtractionJohn Högberg
CMP_TERM returned an `Sint`, which overflowed the `int` used in erl_rbtree for storing the comparison, causing list subtraction to behave strangely.
2019-06-28Infinite cycle fixed on try to change run queue (if it has already changed ↵Dmitry Poroh
concurrently)
2019-06-27[esock] Win32 ifdef tests missingMicael Karlberg
OTP-15818
2019-06-27erts: Reduce test time for multi_load in valgrindLukas Larsson
The previous test amount could take up to 3 hours to finish!
2019-06-27erts: Make dump_SUITE:free_dump tc more robust to different systemsLukas Larsson
2019-06-27erts: Fix distr SUITE latency testcasesLukas Larsson
2019-06-27erts: Fix gc disable when terminating processLukas Larsson
2019-06-27erts: Cleanup start of all erts threads to ABORT when failingLukas Larsson
Before this change erts used to crash dump and then abort, but a crash dump is not really usefull at this point and it caused all sort of lock problems when crash dumping that early in the system boot, so now it is changed to only dump core instead. Also in the process I cleaned up some the code so that it does not to a lot of things that are not needed.
2019-06-27Merge branch ↵Micael Karlberg
'bmk/erts/esock/incorrect_map_size_check_update_membership/OTP-15908' into maint
2019-06-27Merge branch 'lukas/erts/dist-optimize-large-data/PR-2291/OTP-15926' into maintLukas Larsson
* lukas/erts/dist-optimize-large-data/PR-2291/OTP-15926: erts: Don't copy binary data from dist data erts: Move copy of payload to receiving process
2019-06-26erts: Suppress valgrind warning in offset_heap_ptrSverker Eriksson
when called by offset_nstack() for hipe native stack.
2019-06-26[esock|test] Add (traffic) counter (udp) test casesMicael Karlberg
Add two simple (traffic) counter test cases, to test counter actions for normal traffic (send and receive using sendmsg and recvmsg). One for IPv4 udp and one for unix-domain-socket stream (udp). OTP-15818
2019-06-26[esock] Corrected some counter actionsMicael Karlberg
Corrected both read pkg, byte and fail counter increment for recvmsg (was actually missing). OTP-15818
2019-06-26[esock|test] Add (traffic) counter (tcp) test casesMicael Karlberg
Add two simple (traffic) counter test cases, to test counter actions for normal traffic (send and receive using sendmsg and recvmsg). One for IPv4 tcp and one for unix-domain-socket stream (tcp). OTP-15818
2019-06-26[esock] Corrected some counter actionsMicael Karlberg
Corrected both read pkg and byte counter increment for recvfrom (was actually missing). OTP-1581
2019-06-26[esock|test] Add (traffic) counter (udp) test casesMicael Karlberg
Add two simple (traffic) counter test cases, to test counter actions for normal traffic (send and receive using sendto and recvfrom). One for IPv4 udp and one for unix-domain-socket dgram (udp). OTP-15818