aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2011-01-18Fix warnings about guards containing notStavros Aronis
The wording of warnings about unsatisfiable guards that used 'not' was incorrect (the 'not' was not mentioned and it appeared as "Guard test is_atom(atom()) can never succeed").
2011-01-18Fix errors in the handling of 'and'/'or' guardsStavros Aronis
Apart from the obvious bug in the negative evaluation of an 'and' guard, Dialyzer handled dont_know cases rather single-mindedly towards the positive branch. This patch allows for negative results as well and does some clever guesses to narrow them down. It was constructed similarly to the handling of the 'not' guard.
2011-01-14Cosmetic changesStavros Aronis
2011-01-13Merge branch 'pan/fortify-source-gcc-4.5' into devPatrik Nyblom
* pan/fortify-source-gcc-4.5: Remove strange name field in efile_drv.c as it upsets -D_FORTIFY_SOURCE OTP-9025
2011-01-13Merge branch 'sv/epmd-check-listen' into devPatrik Nyblom
* sv/epmd-check-listen: Remove special treatment of EADDRINUSE check return value of epmd server listen() call OTP-9024
2011-01-12Remove strange name field in efile_drv.c as it upsets -D_FORTIFY_SOURCEPatrik Nyblom
2011-01-11Remove special treatment of EADDRINUSEPatrik Nyblom
2011-01-11check return value of epmd server listen() callSteve Vinoski
The listen() call can fail due to a variety of conditions, so check its return value and if it fails, print a suitable debug message if appropriate and then exit. The exit values used are the same for those already used for bind() failures: 0 if the error is EADDRINUSE, 1 otherwise.
2011-01-11Merge branch 'ia/ssl/doc-spec-discrepancy' into devIngela Anderton Andin
* ia/ssl/doc-spec-discrepancy: Fixed Dialyzer specs
2011-01-11Merge branch 'td/base64-mime-decoding' into devIngela Anderton Andin
* td/base64-mime-decoding: Improve pad character handling in base64 MIME decoding functions OTP-9020
2011-01-10Fixed Dialyzer specsIngela Anderton Andin
------------------------------------------------------------------------- ssl's published documentation states: ssl_accept(ListenSocket) -> ssl_accept(ListenSocket, Timeout) -> ok | {error, Reason} (see http://www.erlang.org/doc/man/ssl.html#ssl_accept-1) while its code has the specs: -spec ssl_accept(#sslsocket{}) -> {ok, #sslsocket{}} | {error, reason()}. -spec ssl_accept(#sslsocket{}, list() | timeout()) -> {ok, #sslsocket{}} | {error, reason()}. One of the two cannot be right. This should be fixed. Moreover, I do not see why the spec just mentions list() for the options when the documentation explicitly mentions the options of ssl. Kostis ---------------------------------------------------------------------
2011-01-03Merge branch 'vb/ei-exts' into devBjörn-Egil Dahlberg
* vb/ei-exts: Fix testcases erl_global_whereis, erl_global_names Fix wrong erl_compare_ext result comparing lists Correct erl_global{register, unregister} functions Add PID (~p) type parameters to ei_format Add char (~c) type parameters to ei_format OTP-9015 Conflicts: lib/erl_interface/include/ei.h
2010-12-30Fix testcases erl_global_whereis, erl_global_namesBjörn-Egil Dahlberg
Enable erl_global_whereis and erl_global names.
2010-12-29Merge branch 'ao/percept-web-stop-rebased' into devBjörn-Egil Dahlberg
* ao/percept-web-stop-rebased: Verifies the consistency of stopping behavior. Fixes a bug found in percept:stop_webserver/1, where it doesn't stop the webserver completely OTP-9012
2010-12-29Verifies the consistency of stopping behavior.Ahmed Omar
Updated the test case webserver to cover both stopping functions stop_webserver/1 and stop_webserver/0.
2010-12-29Fixes a bug found in percept:stop_webserver/1, where it doesn't stop the ↵Ahmed Omar
webserver completely percept:stop_webserver/1 will only stop the httpd service in inets, but not the percept_httpd process. As a result, when trying to start the webserver again it will return {error, already_started}. Test case was updated to simulate this case and fix is included to stop the webserver in a consistent way wether stop_webserver/0 or stop_webserver/1 was used.
2010-12-29Merge branch 'ao/percept-race-cond' into devBjörn-Egil Dahlberg
* ao/percept-race-cond: Fixes a race condition found in percept_db start/1 function. OTP-9012
2010-12-29Merge branch 'maint-r14' into devPatrik Nyblom
Conflicts: lib/stdlib/vsn.mk
2010-12-29Merge branch 'pan/r14b01-dialyzer-type-corrections' into devPatrik Nyblom
* pan/r14b01-dialyzer-type-corrections: Correct type specs in io
2010-12-29Merge branch 'egil/timer-wheel-min-time/OTP-8990' into devBjörn-Egil Dahlberg
* egil/timer-wheel-min-time/OTP-8990: Teach timer-wheel slots to use double linked lists Remove timer-thread implementation Refactor timer interface Teach timer-wheel to keep min time
2010-12-29Teach timer-wheel slots to use double linked listsBjörn-Egil Dahlberg
Conflicts: erts/emulator/beam/erl_time.h
2010-12-28Prepare releaseErlang/OTP
2010-12-28Merge branch 'pan/r14b01-dialyzer-patch/OTP-9008' into maint-r14Erlang/OTP
* pan/r14b01-dialyzer-patch/OTP-9008: Correct type specs in io Remove dead code (and dialyzer errors) from filename and re Set types correctly for open_port({spawn_executable, ... Fix native code compiler infinite loop and update type info for 're'
2010-12-28Correct type specs in ioPatrik Nyblom
2010-12-28Remove dead code (and dialyzer errors) from filename and rePatrik Nyblom
2010-12-28Set types correctly for open_port({spawn_executable, ...Patrik Nyblom
2010-12-28Fix native code compiler infinite loop and update type info for 're'Kostis Sagonas
The introduction of filenames being unicode binaries revealed a problem in the type analysis of the native code compiler which resulted in an infinite loop when compiling the 'filename' module. In addition, the hard-coded type information for the built-in functions of the 're' module was out-of-date, which resulted in erroneous type information for 'filelib' functions being stored in the PLT.
2010-12-21Correct type specs in ioPatrik Nyblom
2010-12-21Merge branch 'ja/fix-hipe-spec-ets-new' into devNiclas Axelsson
2010-12-21Merge branch 'sa/dialyzer-or-fix' into devNiclas Axelsson
2010-12-21Merge branch 'pan/r14b01-dialyzer-type-corrections' into devPatrik Nyblom
* pan/r14b01-dialyzer-type-corrections: Remove faulty change left by mistake in epp OTP-9008
2010-12-21Remove faulty change left by mistake in eppPatrik Nyblom
2010-12-21Merge branch 'pan/r14b01-dialyzer-type-corrections' into devPatrik Nyblom
* pan/r14b01-dialyzer-type-corrections: Removed dead code Remove dead code (and dialyzer errors) from filename and re Set types correctly for open_port({spawn_executable, ... OTP-9008
2010-12-21Merge branch 'bjorn/compiler/export-type/OTP-8998' into devBjörn Gustavsson
* bjorn/compiler/export-type/OTP-8998: compiler: Don't include -export_type as attributes in BEAM files
2010-12-21compiler: Don't include -export_type as attributes in BEAM filesBjörn Gustavsson
Similar to -spec and -type, -export_type should be not be included as attributes (and therefore loaded) in BEAM files, but only in the abstract code chunk.
2010-12-21Merge branch 'bjorn/bs-zero-width-bug/OTP-8997' into devBjörn Gustavsson
* bjorn/bs-zero-width-bug/OTP-8997: Fix type-checking of variable used in zero-width bit syntax construction
2010-12-21Fix type-checking of variable used in zero-width bit syntax constructionBjörn Gustavsson
<<A:0>> will always produce an empty binary, regardless of the type of A. The bug is in the run-time system. Fix it so that a non-numeric value for A will cause a badarg exception. Reported-by: Zvi
2010-12-20Merge branch 'maint-r14' into devIngela Anderton Andin
2010-12-20Merge commit 'build/maint-r14/2010-12-20_15.15' into maint-r14Ingela Anderton Andin
2010-12-20Remove timer-thread implementationBjörn-Egil Dahlberg
2010-12-20Refactor timer interfaceBjörn-Egil Dahlberg
2010-12-20Teach timer-wheel to keep min timeBjörn-Egil Dahlberg
Increases the speed of the timer-wheel
2010-12-20Merge branch 'pan/unicode-filenames/testcase-correction' into devPatrik Nyblom
* pan/unicode-filenames/testcase-correction: Make file_name_SUITE:very_icky work on Windows OTP-8887
2010-12-20Merge branch 'pan/r14b01-file-driver-fix' into devPatrik Nyblom
* pan/r14b01-file-driver-fix: Correct usage of pointer-to-size in unix_efile
2010-12-20Merge branch 'ks/r14b01-hipe-fix' into devPatrik Nyblom
* ks/r14b01-hipe-fix: Fix native code compiler infinite loop and update type info for 're' OTP-9008
2010-12-20Fix bug in the handling of 'or' by DialyzerStavros Aronis
Dialyzer had a minor issue when the arguments of the built-in function 'or' had the fixed value 'false'. This testcase should return no warnings: -module(false_false). -export([false_or/0]). false_or() -> false or false.
2010-12-20Merge branch 'pan/bad-dist-msg/OTP-8993' into devPatrik Nyblom
* pan/bad-dist-msg/OTP-8993: Remove ancient distribution message DOP_NODE_LINK from all code Teach VM not to dump core on bad dist message structure
2010-12-20Merge branch 'pan/werl-scrollwheel/OTP-8985' into devPatrik Nyblom
* pan/werl-scrollwheel/OTP-8985: Teach win_con.c about scroll wheels
2010-12-20Removed dead codePatrik Nyblom
2010-12-20Make file_name_SUITE:very_icky work on WindowsPatrik Nyblom