fb39ca4 / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

Segmentation fault using file IO #115

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run ./picoc ./chanin.c in the same directory where the chain1.in is located.

What is the expected output? What do you see instead?
I expect:
D 4 E 6
C 3 E 4
B 3 D 4

But I get:
Segmentation fault

What version of the product are you using? On what operating system?

URL: http://picoc.googlecode.com/svn/trunk
Repository Root: http://picoc.googlecode.com/svn
Repository UUID: 21eae674-98b7-11dd-bd71-f92a316d2d60
Revision: 487
Node Kind: directory
Schedule: normal
Last Changed Author: zik.saleeba
Last Changed Rev: 487
Last Changed Date: 2011-01-07 06:06:33 +0200 (Fri, 07 Jan 2011)

Please provide any additional information below.

Original issue reported on code.google.com by zahari.z...@gmail.com on 17 Jan 2011 at 7:36

Attachments:

GoogleCodeExporter commented 8 years ago
Problem seems to be related to issue #110

Original comment by zik.sale...@gmail.com on 11 Feb 2011 at 8:06

GoogleCodeExporter commented 8 years ago
I mean it's related to issue #108, not #110

Original comment by zik.sale...@gmail.com on 11 Feb 2011 at 8:07

GoogleCodeExporter commented 8 years ago
So ... is it fixable and can I help ??

Original comment by zahari.z...@gmail.com on 12 Feb 2011 at 5:11

GoogleCodeExporter commented 8 years ago
It's definitely fixable - I need to do some work on the expression engine to 
fix this one. I'll let you know how I go in the next couple of days.

Original comment by zik.sale...@gmail.com on 12 Feb 2011 at 7:01

GoogleCodeExporter commented 8 years ago
This ended up being a combination of two bugs - one to do with 
brackets/subscripts (bug #108) and one to do with the order of array subscripts 
in declarations being reversed.

The first problem is fixed in r520 and the second is fixed in r524.

Original comment by zik.sale...@gmail.com on 14 Feb 2011 at 11:47

GoogleCodeExporter commented 8 years ago
Many thanks!

I'll check it.

Original comment by zahari.z...@gmail.com on 15 Feb 2011 at 5:17