[erlang-questions] CC: erl segmentation fault in http_base_64

Matthias Lang <>
Tue Oct 10 08:35:22 CEST 2006


datacompboy writes:

 > Is am right, and this crashdump was reproduceable in other cases other than http_base_64 ?

Yes. 

http_base_64 is just plain Erlang code. You can find it in your
installation, e.g. on a unix system:

  ~ >locate http_base_64.erl
  /usr/local/lib/erlang/lib/inets-4.7.2/src/http_base_64.erl

and then it's an interesting little exercise in "differential
analysis" to cut it down to a shorter program which also
crashes. Here's how far I got in fifteen minutes:

     -module(dcb).
     -export([crash/0]).
     
     crash() -> crash(0,atom).
     crash(_,X) -> 0 bsl (X bsl 1) bsl 0.

Matthias



More information about the erlang-questions mailing list