Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault using file IO #115

Closed
GoogleCodeExporter opened this issue Oct 14, 2015 · 6 comments
Closed

Segmentation fault using file IO #115

GoogleCodeExporter opened this issue Oct 14, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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: https://picoc.googlecode.com/svn/trunk
Repository Root: https://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 [email protected] on 17 Jan 2011 at 7:36

Attachments:

@GoogleCodeExporter
Copy link
Author

Problem seems to be related to issue #110

Original comment by [email protected] on 11 Feb 2011 at 8:06

@GoogleCodeExporter
Copy link
Author

I mean it's related to issue #108, not #110

Original comment by [email protected] on 11 Feb 2011 at 8:07

@GoogleCodeExporter
Copy link
Author

So ... is it fixable and can I help ??

Original comment by [email protected] on 12 Feb 2011 at 5:11

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 12 Feb 2011 at 7:01

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 14 Feb 2011 at 11:47

  • Changed state: Verified

@GoogleCodeExporter
Copy link
Author

Many thanks!

I'll check it.

Original comment by [email protected] on 15 Feb 2011 at 5:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant