From mscandar@REDACTED Fri Apr 8 16:11:01 2005 From: mscandar@REDACTED (Mark Scandariato) Date: Fri, 08 Apr 2005 10:11:01 -0400 Subject: supervisor doesn't like abstract modules Message-ID: <425690F5.8030802@cisco.com> Starting a child using a module instance as the module fails: ** exited: {{nocatch,{error,{invalid_mfa, {{foo,bar,baz}, start_link, [one,two,three]}}}} Turns out there are some checks in supervisor.erl that expect a module to be an atom: validFunc({M, F, A}) when atom(M), atom(F), list(A) -> true; validFunc(Func) -> throw({invalid_mfa, Func}). and validMods(dynamic) -> true; validMods(Mods) when list(Mods) -> lists:foreach(fun(Mod) -> if atom(Mod) -> ok; true -> throw({invalid_module, Mod}) end end, Mods); validMods(Mods) -> throw({invalid_modules, Mods}). I changed them to the following and all is well (so far): validMods(dynamic) -> true; validMods(Mods) when list(Mods) -> true; validMods(Mods) -> throw({invalid_modules, Mods}). validFunc({M, F, A}) when atom(F), list(A) -> true; validFunc(Func) -> throw({invalid_mfa, Func}). Mark. From tpatro@REDACTED Wed Apr 6 10:40:30 2005 From: tpatro@REDACTED (Tamas Patrovics) Date: Wed, 6 Apr 2005 10:40:30 +0200 Subject: Emacs support: erlang-man-module brings up the wrong man file Message-ID: If I invoke erlang-man-module with the module name "file" then for me it brings up the CosFileTransfer_File(3) manual page. In the function erlang-man-module the pattern for matching the relevant man file is constructed like this (pat (concat "\\b" (regexp-quote module) "\\.[^.]$")) thiis is faulty, because \b matches the beginning of a word, but the character '_' is not a word constituent in Erlang mode, so it matches CosFileTransfer_File too. The simplest fix is to change \b to /, so that file name part after the slash is matched: (pat (concat "/" (regexp-quote module) "\\.[^.]$")) /Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ft@REDACTED Fri Apr 15 11:10:05 2005 From: ft@REDACTED (Fredrik Thulin) Date: Fri, 15 Apr 2005 11:10:05 +0200 Subject: R10B-4 compiler bug with two try/catch Message-ID: <200504151110.05499.ft@it.su.se> Hi The attached file cause the following error on R10B-4 : $ /pkg/erlang/R10B-4/bin/erlc sipparse_util.erl sipparse_util: function test/0+34: Internal consistency check failed - please report this bug. Instruction: {try_end,{y,0}} Error: unknown_catch_try_state: $ /Fredrik -------------- next part -------------- -module(sipparse_util). %%-compile(export_all). -export([test/0]). split_quoted_string([34 | _Rest]) -> %% 34 is '"' ok. test() -> %% does not start with quote io:format("test: split_quoted_string/1 - 5~n"), try split_quoted_string("foo \"bar\"") of SQS_Res5 -> throw({error, test_case_failed, SQS_Res5}) catch error: does_not_start_with_quote -> ok end, %% no ending quote io:format("test: split_quoted_string/1 - 6~n"), try split_quoted_string("\"foo ") of SQS_Res6 -> throw({error, test_case_failed, SQS_Res6}) catch error: no_end_quote -> ok end, ok. From jamesh@REDACTED Wed Apr 20 16:20:37 2005 From: jamesh@REDACTED (James Hague) Date: Wed, 20 Apr 2005 09:20:37 -0500 Subject: Windows install bug in R10B-4 Message-ID: After installation, Erlang is added to the "uninstall programs" list *twice*. I've tried this on two different machines, including a brand new one that never had Erlang on it before.