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

Kristoffer Warming <>
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 ===
            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:

            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

        =ERROR REPORT==== 8-Aug-2008::22:30:59 ===

> 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
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