Ticket #28481 (new defect)
bf2c @1.2.3 Most any program results in a bus error
|Reported by:||l2g@…||Owned by:||macports-tickets@…|
In my tests, feeding anything but the most trivial Brainfuck program as input to this compiler ultimately results in a bus error.
$ bf2c -i calc.bf -o calc.c bf2c.cc 1.2.2 Copyright (c) 2002-2003 Rene Ladan <email@example.com> Optimizing BrainFuck to C compiler. Building parse tree. Cleaning parse tree. Converting mulzero's. Cleaning parse tree. Removing non-i/o tail. Making header absolute. Bus error
(It's also interesting that the portfile says this is version 1.2.3 while bf2c itself says it's 1.2.2. The port really is grabbing the appropriate 1.2.3 tarball from Sourceforge.)
I'll attach a sample program that can be used as input. It's a quine (a program that generates itself as output).