[MacPorts] #28481: bf2c @1.2.3 Apparently any input results in a bus error

MacPorts noreply at macports.org
Sat Feb 19 14:12:23 PST 2011


#28481: bf2c @1.2.3 Apparently any input results in a bus error
------------------------------+---------------------------------------------
 Reporter:  l2g@…             |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  ports             |     Version:                                       
 Keywords:                    |        Port:  bf2c                                 
------------------------------+---------------------------------------------
 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
 <r.c.ladan at student.tue.nl>

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

-- 
Ticket URL: <https://trac.macports.org/ticket/28481>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list