R10B-2 Debugger bug?

Mark Scandariato mscandar@REDACTED
Wed Dec 29 18:56:41 CET 2004


It looks like the debugger doesn't like try.

Loading the following module causes the debugger to crash.

%%%--------------------------------
-module(dbg_bug).
-compile(export_all).

oops() ->
     try something()
     catch
         exception -> []
     end.

something() -> 1.
%%%--------------------------------

It doesn't work in R10B-1, either.

Mark.


=ERROR REPORT==== 29-Dec-2004::12:49:10 ===
** Generic server dbg_iserver terminating
** Last message in was {load,dbg_bug,
                              "c:/project/dbg_bug.erl",
                              <<131,104,5,100,0,18,105,110,116,101,114,112,114,10
1,116,101,114,95,109,111,100,117,108,101,108,0,0,0,4,104,2,100,0,11,109,111,100,
117,108,101,95,105,110,102,111,97,0,104,2,100,0,11,109,111,100,117,108,101,95,10
5,110,102,111,97,1,104,2,100,0,4,111,111,112,115,97,0,104,2,100,0,9,115,111,109,
101,116,104,105,110,103,97,0,106,109,0,0,1,2,131,80,0,0,1,198,120,156,109,143,20
3,114,195,32,12,69,113,252,160,118,23,221,245,51,154,201,182,63,227,145,65,54,80
,108,24,44,242,248,251,192,56,105,147,182,172,196,149,238,209,149,218,73,246,22,
224,212,195,176,82,0,65,253,241,96,25,99,141,170,36,107,129,40,232,33,18,66,33,8
9,53,106,139,106,247,197,222,197,231,222,7,103,80,208,94,14,83,63,196,233,3,131,
133,226,175,167,153,157,140,22,37,227,183,193,95,35,105,59,23,110,246,58,207,116
,120,246,46,80,15,214,170,90,178,151,49,46,130,180,91,32,121,42,231,252,10,44,71
,43,114,179,17,22,226,138,80,25,179,105,141,100,37,133,11,212,219,55,91,68,2,65,
173,202,84,2,185,25,146,173,93,221,140,164,244,50,153,187,241,1,198,55,37,25,106
,138,222,222,132,242,135,192,115,71,5,119,122,146,90,60,11,244,57,105,150,203,35
,132,172,22,253,247,138,116,101,185,104,11,220,228,247,124,91,247,24,234,159,3,1
87,59,36,161,185,94,8,39,12,208,65,145,56,25,139,110,132,87,115,5,184,220,128,14
2,109,0,0,0,133,45,109,111,100,117,108,101,40,100,98,103,95,98,117,103,41,46,10,
45,99,111,109,112,105,108,101,40,101,120,112,111,114,116,95,97,108,108,41,46,10,
10,111,111,112,115,40,41,32,45,62,10,32,32,32,32,116,114,121,32,115,111,109,101,
116,104,105,110,103,40,41,10,32,32,32,32,99,97,116,99,104,10,32,32,32,32,32,32,3
2,32,101,120,99,101,112,116,105,111,110,32,45,62,32,91,93,10,32,32,32,32,101,110
,100,46,10,10,115,111,109,101,116,104,105,110,103,40,41,32,45,62,32,49,46,10,109
,0,0,0,16,36,204,253,26,221,194,76,79,20,81,51,41,45,212,55,157>>}
** When Server state == {state,20,[],[],false,all,[<0.31.0>]}
** Reason for termination ==
** {{badmatch,{dbg_iload,{unknown_expr,
                              {'try',5,
                                     [{call,5,{atom,5,something},[]}],
                                     [],
                                     [{clause,
                                          7,
                                          [{tuple,
                                               7,
                                               [{atom,7,throw},
                                                {atom,7,exception},
                                                {var,7,'_'}]}],
                                          [],
                                          [{nil,7}]}],
                                     []}}}},
     [{dbg_iserver,handle_call,3},
      {gen_server,handle_msg,6},
      {proc_lib,init_p,5}]}



More information about the erlang-questions mailing list