[erlang-questions] Why the code will make erlang crash?

Fredrik Thulin ft@REDACTED
Fri Nov 16 09:28:37 CET 2007

Raimo Niskanen wrote:
> Must be a bug in the regexp module. The regexp code seems to go
> into an infinite loop and eats all memory:
 > $ erl
 > Erlang (BEAM) emulator version [async-threads:0] [hipe] 
 > Eshell V5.5.5.5  (abort with ^G)
 > 1> regexp:match("hello", "*lo*").
 > {error,{illegal,"*"}}
 > 2> regexp:match("hello", "^*lo*").
 > BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
 >        (v)ersion (k)ill (D)b-tables (d)istribution

Amusing, another variant of the bug I reported in 2004 (nudge nudge) ;)



More information about the erlang-questions mailing list