New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #28481 (new defect)

Opened 15 months ago

Last modified 15 months ago

bf2c @1.2.3 Most any program results in a bus error

Reported by: l2g@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: bf2c

Description

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

Attachments

quinebf.bf Download (0.6 KB) - added by l2g@… 15 months ago.

Change History

Changed 15 months ago by l2g@…

  • summary changed from bf2c @1.2.3 Apparently any input results in a bus error to bf2c @1.2.3 Most any program results in a bus error

Changed 15 months ago by l2g@…

Note: See TracTickets for help on using tickets.