crashing the debugger
Gunilla Arendt
gunilla@REDACTED
Mon Jun 16 15:13:21 CEST 2003
You have found a bug in Debugger, it cannot handle a guard test
"when false -> ..." and there seems to be such a guard in your code.
Debugger uses its own mechanism to load and evaluate code, in order to
enable stepwise execution, breakpoints etc. This means that Debugger is
not suitable for finding the kind of error you describe. I would
recommend you use a tool such as fprof, dbg or perhaps observer instead.
Best regards, Gunilla
david wallin wrote:
>
> Slightly puzzled.
>
> Tried to run a program under the debugger (because it stops
> unexplainably and intermittently with the beam process taking alot of
> CPU), and when I try to interpret the main file I get this error
> message from the debugger:
>
> [...]
> ,105,115,116,95,116,111,95,105,110,116,101,103,101,114,47,49,44,32,83,10
> 5,122,101,115,41,32,59,10,10,9,95,32,45,62,32,117,110,100,101,102,105,11
> 0,101,100,10,10,32,32,32,32,101,110,100,46,10,10,10,37,37,37,32,45,45,45
> ,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45
> ,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45
> ,45,45,45,45,45,45,45,45,45,45,45,45,45,45,32,91,116,104,101,32,101,110,
> 100,93,10,109,0,0,0,16,217,142,202,234,188,223,186,193,177,235,28,143,55
> ,242,56,1>>}
> ** When Server state == {state,11,[],[],false,all,[<0.30.0>]}
> ** Reason for termination ==
> **
> {{badmatch,{function_clause,[{dbg_iload,guard_test,[{atom,98,false}]},
> {dbg_iload,and_guard,1},
> {dbg_iload,guard,1},
> {dbg_iload,clause,1},
> {dbg_iload,icr_clauses,1},
> {dbg_iload,expr,1},
> {dbg_iload,exprs,1},
> {dbg_iload,clause,1}|
> more]}},
> [{dbg_iserver,handle_call,3},
> {gen_server,handle_msg,6},
> {proc_lib,init_p,5}]}
>
> any help would be helpful.
>
> cheers,
>
> --david.
--
_____Gunilla Arendt______________________________________________
EAB/UKH/KD Erlang/OTP Product Development
Gunilla.Arendt@REDACTED +46-8-7275730 ecn 851 5730
More information about the erlang-questions
mailing list