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

Bob Ippolito <>
Sun Oct 8 21:18:57 CEST 2006


On 10/8/06, datacompboy <> wrote:
>
>
> datacompboy wrote:
> http_base_64:decode("dGVzda==a").
> (end of quote)

I can reproduce this bug on Mac OS X on Intel with R11B-1.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000008
0x00000008 in ?? ()
(gdb) bt
#0  0x00000008 in ?? ()
#1  0x012e4edc in ?? ()
Previous frame inner to this frame (corrupt stack?)

Note that ssl_base64:decode works correctly.

1> ssl_base64:decode("dGVzda==a").
** exited: {function_clause,[{ssl_base64,decode1,["a"]},
                             {ssl_base64,decode1,1},
                             {ssl_base64,decode,1},
                             {erl_eval,do_apply,5},
                             {shell,exprs,6},
                             {shell,eval_loop,3}]} **

=ERROR REPORT==== 8-Oct-2006::12:17:53 ===
Error in process <0.31.0> with exit value:
{function_clause,[{ssl_base64,decode1,["a"]},{ssl_base64,decode1,1},{ssl_base64,decode,1},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}

-bob



More information about the erlang-questions mailing list