Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
fb4c2a37
Commit
fb4c2a37
authored
Aug 29, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- declaring large fixed arrays is causing runtime crash
R=ken OCL=14658 CL=14660
parent
7b4d7196
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
bug092.go
test/bugs/bug092.go
+19
-0
golden.out
test/golden.out
+4
-0
No files found.
test/bugs/bug092.go
0 → 100644
View file @
fb4c2a37
// $G $D/$F.go && $L $F.$A && ./$A.out
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
main
func
main
()
{
var
a
[
1000
]
int64
;
// this alone works
var
b
[
10000
]
int64
;
// this causes a runtime crash
}
/*
uetli:~/Source/go1/test/bugs gri$ 6g bug092.go && 6l bug092.6 && 6.out
Illegal instruction
gri: array size matters, possibly related to stack overflow check?
*/
test/golden.out
View file @
fb4c2a37
...
...
@@ -188,6 +188,10 @@ BUG: compilation succeeds incorrectly
=========== bugs/bug091.go
BUG: compilation succeeds incorrectly
=========== bugs/bug092.go
BUG should not crash
/tmp/gorun-gri: line 1: 18181 Illegal instruction ./$A.out
=========== fixedbugs/bug015.go
fixedbugs/bug015.go:7: overflow converting constant to <int64>INT64
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment