Opened 14 years ago

Closed 9 years ago

#28481 closed defect (fixed)

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 (1)

quinebf.bf (593 bytes) - added by l2g@… 14 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 14 years ago by l2g@…

Summary: bf2c @1.2.3 Apparently any input results in a bus errorbf2c @1.2.3 Most any program results in a bus error

Changed 14 years ago by l2g@…

Attachment: quinebf.bf added

comment:2 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

The current version (1.3.1) seems to work fine.

Note: See TracTickets for help on using tickets.