Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-05-28 | [stdlib] Updated for snmp deprecations | Micael Karlberg | |
2013-05-28 | [snmp/agent] Updated deprecated attribute | Micael Karlberg | |
2013-05-28 | Fix receive support in erl_eval with a BEAM module | Anthony Ramine | |
Using the low-level BEAM instructions, we can loop over each message in the process queue and removes the first message that matches, without receiving them all to later send them back to itself. The function prim_eval:'receive'/2 is equivalent to the following pseudo-code: 'receive'(F, T) -> RESET MESSAGE QUEUE POINTER, LOOP: case PEEK CURRENT MESSAGE WITH TIMEOUT T of {ok,Msg} -> case F(Msg) of nomatch -> DECREMENT TIMEOUT T, ADVANCE MESSAGE QUEUE POINTER, GOTO LOOP; Result -> RESET MESSAGE QUEUE POINTER, Result end; timeout -> RESET MESSAGE QUEUE POINTER, timeout end. To not break Dialyzer and other tools, we use a stub Erlang module which abstract code is forcefully inserted into prim_inet.erl afterwards compilation. | |||
2013-05-28 | Merge branch 'avi/fix-os-cmd-win/OTP-11104' into maint | Fredrik Gustafsson | |
* avi/fix-os-cmd-win/OTP-11104: Add testcase to exported Added primary bootstrap for os.beam kernel: redefined deep_list_command test Remove unnecessary whitespaces in os.erl and os_SUITE.erl Fix deep list argument error under Windows in os:cmd/1 | |||
2013-05-28 | Fix renaming of bs_put_string instructions | Anthony Ramine | |
The clause was formerly commented-out because at this point in the code, no bs_put_string instruction has been generated yet when compiling from Erlang. If an Erlang module is compiled to BEAM assembly and the result contains a bs_put_string instruction, the output can't be compiled to binary anymore and the compiler crashes with the following error: $ erlc prs.S Function: compress/1 prs.S:none: internal error in beam_block; crash reason: {{case_clause, {'EXIT', {function_clause, [{beam_utils,live_opt, [[{bs_put_string,1,{string,[0]}}, {bs_init, {f,0}, {bs_append,0,8,{field_flags,[]}}, 0, [{integer,8},{x,0}], {x,1}}, {label,2}], 2, {1,{1,1,nil,nil}}, [{block, [{'%live',2}, {set,[{x,0}],[{x,1}],move}, {'%live',1}]}, return]], [{file,"beam_utils.erl"},{line,639}]}, {beam_utils,live_opt,1, [{file,"beam_utils.erl"},{line,205}]}, {beam_block,function,2, [{file,"beam_block.erl"},{line,38}]}, {lists,mapfoldl,3, [{file,"lists.erl"},{line,1329}]}, {beam_block,module,2, [{file,"beam_block.erl"},{line,29}]}, {compile,'-select_passes/2-anonymous-2-',2, [{file,"compile.erl"},{line,476}]}, {compile,'-internal_comp/4-anonymous-1-',2, [{file,"compile.erl"},{line,276}]}, {compile,fold_comp,3, [{file,"compile.erl"},{line,294}]}]}}}, [{compile,'-select_passes/2-anonymous-2-',2, [{file,"compile.erl"},{line,476}]}, {compile,'-internal_comp/4-anonymous-1-',2, [{file,"compile.erl"},{line,276}]}, {compile,fold_comp,3,[{file,"compile.erl"},{line,294}]}, {compile,internal_comp,4,[{file,"compile.erl"},{line,278}]}, {compile,'-do_compile/2-anonymous-0-',2, [{file,"compile.erl"},{line,152}]}]} | |||
2013-05-28 | Merge branch 'ia/ssl/public_key/crypto/elliptic_curve/OTP-11009' into maint | Ingela Anderton Andin | |
* ia/ssl/public_key/crypto/elliptic_curve/OTP-11009: (21 commits) ssl: Do not advertise EC ciphers if crypto support is insufficient crypto: Ctify tests and test new API crypto: Allow integer as srp_private arguments according to docs ssl: Remove unused `srp_parameters` type spec crypto, public_key & ssl: Make more functions accept integer keys snmp: Remove use of deprecated crypto functions crypto,ssh, netconf, inets: binary_to_integer -> bytes_to_integer netconf: Remove use of deprecated crypto functions crypto: Documentation fixes from review crypto: Change argument order of crypto:next_iv/3 crypto,public_key,ssl: Change return value of crypto:generate_key(ecdh,..) ssl, public_key, crypto: crypto:algorithms/0 -> crypto:supports/0 ssl, public_key & inets: Remove use of deprecated crypto functions from test code ssl: Remove use of deprecated crypto functions public_key: Remove use of deprecated crypto functions dialyzer: Remove use of deprecated crypto functions ssh & crypto: Remove use of deprecated crypto functions from ssh Update primary bootstrap common_test: Replace use of deprecated crypto functions beam_lib, compile: Replace use of deprecated crypto functions ... | |||
2013-05-28 | ssl: Do not advertise EC ciphers if crypto support is insufficient | Ingela Anderton Andin | |
2013-05-27 | Fix watchdog function_clause | Anders Svensson | |
Commit 0b7c87dc caused diameter_watchdog:restart/2 to start returning 'stop', so that a watchdog process for a listening transport that allowed multiple connections to the same peer would die one watchdog timeout after losing a connection. The new return value was supposed to be passed up to transition/2, but was instead passed to set_watchdog/1, resulting in a function_clause error. The resulting crash was harmless but unseemly. Not detected by dialyzer. Thanks to Aleksander Nycz. | |||
2013-05-27 | crypto: Ctify tests and test new API | Ingela Anderton Andin | |
Also fix bugs found by new tests | |||
2013-05-27 | Merge branch 'siri/ct_telnet/no-more-after-timetrap/OTP-10648' into maint | Siri Hansen | |
* siri/ct_telnet/no-more-after-timetrap/OTP-10648: [common_test] Unregister connection if killed | |||
2013-05-24 | crypto: Allow integer as srp_private arguments according to docs | Sverker Eriksson | |
2013-05-24 | ssl: Remove unused `srp_parameters` type spec | Klaus Trainer | |
As the file 'lib/ssl/src/ssl_srp_primes.hrl' only contains a specification of a `srp_parameters` type that isn't exported and also isn't referenced anywhere (neither in the code nor in the documentation), the type specification (and hence the file as well) can be removed. | |||
2013-05-24 | crypto, public_key & ssl: Make more functions accept integer keys | Sverker Eriksson | |
2013-05-24 | snmp: Remove use of deprecated crypto functions | Ingela Anderton Andin | |
2013-05-24 | [common_test] Unregister connection if killed | Siri Hansen | |
The symptom of this bug was that a (named) telnet connection which was open and hanging during a timetrap timeout could no longer be opened again in subsequent test cases. Since the connection was hanging, ct_telnet:close/1 which was called during end_per_testcase would fail (timeout) and cause common_test to brutally kill the connection. The bug was that the connection was not unregistered at this point. When trying to open the connection again in the next testcase, common_test attempted to reuse the same connection since it had not been unregistered. This failed since the connection in fact was dead. | |||
2013-05-24 | [snmp/agent] Some restructuring and some new test cases of mib-server suite | Micael Karlberg | |
2013-05-24 | [snmp/agent] Improved mib-storage ets module error handling | Micael Karlberg | |
Also fixed some of the debug printouts. | |||
2013-05-24 | Merge branch 'nox/fix-silent-rules/OTP-11111' into maint | Fredrik Gustafsson | |
* nox/fix-silent-rules/OTP-11111: Fix some Makefile rules that didn't support silent rules | |||
2013-05-23 | [snmp/agent] Make the mib-server test (sub-) suite use new mib-storage | Micael Karlberg | |
2013-05-23 | [snmp/agent] Handle mib-storage ets module non-ex file | Micael Karlberg | |
Make sure snmpa_mib_storage_ets can handle a non-ex file whe n openning a table (it should simply create it). | |||
2013-05-23 | [snmp/agent] Merging test case specific and common config env | Micael Karlberg | |
There is a set of default agent config environment values used when starting an agent. For specififc group of test cases, other values is used. These two groups of environment is now merged in a more controlled way. Also test case grouping make use of more test cases functions (in order to make the groups() function more readable). | |||
2013-05-23 | observer: Improve initial call info | Dan Gudmundsson | |
2013-05-23 | [snmp/agent] Updated open options for the mnesia mib-storage module | Micael Karlberg | |
Updated the snmpa_mib_storage_mnesia module to handle alias atoms for the nodes option. Also, (git) added mib-storage behaviour ref-man. | |||
2013-05-23 | [snmp/agent] Update agent test (sub-) suite | Micael Karlberg | |
The agent test (sub-) suite updated according to the new mib-storage format. Also changed config of started agent to the "new" format. | |||
2013-05-23 | [snmp/agent] Updated the config tool with new mib-storage format | Micael Karlberg | |
2013-05-23 | [snmp/agent] Add more verbosity printouts to the mnesia mib-storage module | Micael Karlberg | |
2013-05-23 | observer: Add allocator info to gui | Siri Hansen | |
2013-05-22 | [snmp/agent] Cosmetic | Micael Karlberg | |
2013-05-22 | [snmp/agent] No default value for mib_storage and some cleanup | Micael Karlberg | |
2013-05-22 | [snmp/agent] Add info/2 and some record checks | Micael Karlberg | |
Add a new function/2 to behaviour. Also changed returnj type for info/1. Also make sure even ets and dets implementation(s) check that the correct type is written. | |||
2013-05-22 | [snmp/agent] Make use of new mib_storage | Micael Karlberg | |
The new mib-storage is now used by both the mib-server and the symbolic-store. | |||
2013-05-22 | [snmp/agent] Mib server assumes no default value for mib_storage | Micael Karlberg | |
2013-05-22 | [snmp/agent] Add default value for mib_storage for sub-agent | Micael Karlberg | |
When starting a sub-agent we previously did not provide a value for mib_storage, which was alright because ets was assumed as a default in every place where it was used. Now we expect the value to be defined and therefor we must explicitly add the default value for sub-agents when staring them. | |||
2013-05-22 | [snmp/agent] Deprecate *old* info conversion function | Micael Karlberg | |
2013-05-22 | [snmp/agent] Removed module from app-file and make file(s) | Micael Karlberg | |
The module snmpa_general_db is no longer used (replaced by the behaviour snmpa_mib_storage and the modules implementing this behaviour). | |||
2013-05-22 | Teach c:ls/1 to show non-directory files | Björn Gustavsson | |
In an email to erlang-questions, Bengt Kleberg wrote: When I use c:ls/1 it reminds me so much of Unix "ls" that I expect c:ls("filename") to work. The resulting error surprises me every time (not the same day). While teaching c:ls/1 to show non-directory files, update the error handling to make use of the POSIX error codes from file:list_dir/1 and file:format_error/1 (which had not been invented when the c module was first implemented). Suggested-by: Bengt Kleberg Test-suite-by: Bengt Kleberg | |||
2013-05-22 | Fix interactive_shell_SUITE to handle node name with quotes | Siri Hansen | |
Some test hosts have e.g. '-' in the name, which causes the node name to have single quotes. This commit updates the suite to handle this correctly. | |||
2013-05-22 | crypto,ssh, netconf, inets: binary_to_integer -> bytes_to_integer | Ingela Anderton Andin | |
2013-05-21 | Merge branch 'siri/ct/no_prompt_check/OTP-11095' into maint | Siri Hansen | |
* siri/ct/no_prompt_check/OTP-11095: [common_test] Refactor ct_telnet_SUITE.erl [common_test] Add new option 'no_prompt_check' to ct_telnet:expect/3. [common_test] Add debug printouts in ct_telnet_client [common_test] Backed out wait_for_linebreak option from ct_telnet [common_test] Add test for ct_telnet using own telnet server [common_test] Add telnet server to use for testing | |||
2013-05-21 | [observer] Present Memory for each process in crashdump_viewer | Siri Hansen | |
A new field named "Memory" has been added for each process in the crash dump. This is now shown by the crashdump_viewer. It replaces the "Stack+heap" column in the process overview page, and is added to the process detail page. | |||
2013-05-21 | [snmp/agent] Add mib-storage behaviour ref-man documentation | Micael Karlberg | |
2013-05-21 | [snmp/agent] backup | Micael Karlberg | |
2013-05-21 | [snmp/agent] Some mib-server options rewording | Micael Karlberg | |
2013-05-21 | [snmp/agent] Add (make) deepend for the new mib-server data module | Micael Karlberg | |
Add (make) depend rule for the new mib-server data module, snmpa_mib_datas_tttn. Also corrected the depend rule for the mib-server data module behaviour module (snmpa_mib_data). | |||
2013-05-21 | [snmp/agent] Make sure main api module is compiled first | Micael Karlberg | |
The main snmp agent api module contains some basic type defs and therefor it must be compiled first. | |||
2013-05-21 | [snmp/agent] Fixed copyright end date | Micael Karlberg | |
2013-05-21 | [snmp/agent] Fixed basic type issues | Micael Karlberg | |
Defines some basic snmp types in the main snmp api module. Also define some basic snmp agent types in the main snmp agent api module. | |||
2013-05-21 | [observer] Add allocator summary in crashdump_viewer | Siri Hansen | |
A new table with summary of allocator blocks- and carriers size is added under "Allocator information" in crashdump viewer. | |||
2013-05-21 | observer: corrected tip message | Fredrik Gustafsson | |
2013-05-21 | observer: re-indetion of observer_procinfo.erl | Fredrik Gustafsson | |