two R10B-2 compiler bugs

Fredrik Thulin ft@REDACTED
Sun Jan 2 11:06:19 CET 2005


Hi

While writing test cases I've come across two bugs in the R10B-2 
compiler. I've isolated them in two different directories for you - see 
the attached file.

1) one <<>> too much :

$ /pkg/erlang/R10B-2/bin/erlc -W +debug_info sipserver.erl
sipserver: function test/0+190:
  Internal consistency check failed - please report this bug.
  Instruction: {put,{x,2}}
  Error:       {heap_overflow,{left,0},{wanted,1}}:
$

I was turning the bodys of my request records in the test() function 
from "" into <<>> and apparently can't have more than a finite number 
of <<>> before getting this error.


2) don't know what, but it doesn't like my catches ;)

$ /pkg/erlang/R10B-2/bin/erlc -W +debug_info sipserver.erl
sipserver: function test/0+4973:
  Internal consistency check failed - please report this bug.
  Instruction: {'%live',1}
  Error:       unknown_catch_try_state:

$

Both cases work when I compile using R10B-1.

I compile my Erlangs like this (only difference between R10B-1 and 
R10B-2 is the --preix) :

# ./configure --prefix=/pkg-2004-08-02/erlang/R10B-2  
--with-ssl=/pkg-2004-08-02/openssl/0.9.7d --with-hipe
# make
# make install

/Fredrik

PS. I found the bugs on the train, and see now that the second one has 
been reported already (on erlang-questions@) but I'm sending it anyways 
since I had already written the bug report and you might be helped by 
more examples of how to trigger the bug...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: erlc-bugs.tar.gz
Type: application/x-tgz
Size: 67544 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20050102/94a79418/attachment.bin>


More information about the erlang-bugs mailing list