[erlang-bugs] R12B-3 +native pattern-matching bug

Kristoffer Warming mint@REDACTED
Fri Aug 8 22:56:11 CEST 2008


> This is a bug for now a workaround would be to add
> +{hipe,[no_icode_type]} as an option to the compiler, but a patch
> should
> be forthcoming.
>
> Per Gustafsson

This didn't work, in fact it caused crash reports like this

        =CRASH REPORT==== 8-Aug-2008::22:30:59 ===
          crasher:
            pid: <0.56.0>
            registered_name: []
            exception error: bad argument
              in function  foo_web:loop/2
              in call from mochiweb_http:headers/4
              in call from mochiweb_util:unquote/1
            initial call:
        mochiweb_socket_server:acceptor_loop({<0.55.0>,#Port<0.137>,

        #Fun<mochiweb_http.1.62821608>})
            ancestors: [foo_web,foo_sup,<0.53.0>]
            messages: []
            links: [<0.55.0>,#Port<0.138>]
            dictionary: []
            trap_exit: false
            status: running
            heap_size: 987
            stack_size: 23
            reductions: 931
          neighbours:

        =ERROR REPORT==== 8-Aug-2008::22:30:59 ===
        {mochiweb_socket_server,235,{child_error,badarg}}



> It would help if you could supply a small standalone test case.

Attachment is Mochiweb compiled against R12B-3 AMD64 +native, with my
custom debug line.   Launch  mochiweb/foo/start-dev.sh  and visit
http://localhost:8000/
This should yield debug message saying "THIS SHOULDN'T HAPPEN.. _Other
= ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mochiweb_native_amd64.tar.bz2
Type: application/x-bzip2
Size: 431772 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080808/30859b1b/attachment.bin>


More information about the erlang-bugs mailing list