unknown_catch_try_state under R10B-2

Björn Bylander bjorn@REDACTED
Mon Dec 27 23:05:03 CET 2004


I've reduced the incorrect code to this:

-module(foomod).
-export([handle_info/2]).
-record(state, { foo = undefined }).

handle_info({_}, State) ->
   foo(),
   State#state{foo = bar},
   case ok of
   _ ->
     case catch foo() of
     ok ->
       {stop, State}
     end
   end;

handle_info(_, State) ->
   (catch begin
     foo(),
     State#state{foo = bar}
   end),
   case ok of
   _ ->
     case catch foo() of
     ok ->
       {stop, State}
     end
   end.

foo() -> ok.

On 2004-12-27 21:48, Björn Bylander wrote:
> 
> I get the following output from make:all([load]) with R10B-2 under 
> Windows. The module (admctrl_srv.erl) compiles fine under R9C-2, R9C-1 
> and R9C-0. I haven't tried other R10 releases.
> 
> Recompile: admctrl_srv
> admctrl_srv: function handle_info/2+2032:
>   Internal consistency check failed - please report this bug.
>   Instruction: {'%live',1}
>   Error:       unknown_catch_try_state:
> 
> ./Admctrl_srv.erl:103: Warning: variable 'From' is unused
> 
> Apart from the obvious bug I find the first warning message odd in that 
> the 'a' in the module file name is an upper case 'a' and not a lower 
> case 'a' as it actually is and also is written in the warnings following 
> it...
> 
> Is there any info in the error message about the row on which this 
> occurs or do I have to try locate the row some other way?
> 
> /Björn Bylander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bjorn.vcf
Type: text/x-vcard
Size: 276 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20041227/573c6755/attachment.vcf>


More information about the erlang-questions mailing list