FAQ
Change bb4ee132b967 broke the linux-amd64-race build:
http://build.golang.org/log/54b90ba6a74a8ad6b4921df10fe13f13f2d68d44

cmd/gc: inlining functions with local variables

- make sure dclcontext == PAUTO only in function bodies
- introduce PDISCARD to discard declarations in bodies of repeated imports
- skip printing initializing OAS'es in export mode, assuming they only
occur after ODCL's
- remove ODCL and the initializing OAS from inl.c:ishairy
- fix confused use of ->typecheck in typecheckinl: it's about the ->inl,
not about the fn.
- debuging aids: print ntype on ONAMEs too and -Emm instead of -Ell.

fixes issue

http://code.google.com/p/go/source/detail?r=bb4ee132b967

$ tail -200 < log
parse_test.go:228: testdata/webkit/tests9.dat test #25 "<!DOCTYPE
html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo
/></math>", runtime error: index out of range
parse_test.go:228: testdata/webkit/tests9.dat test #26 "<!DOCTYPE
html><body xlink:href=foo xml:lang=en><math><mi xml:lang=en xlink:href=foo
/>bar</math>", runtime error: index out of range
parse_test.go:228: testdata/webkit/tests_innerHTML_1.dat test
#3 "<body><span>", runtime error: index out of range
parse_test.go:228: testdata/webkit/tests_innerHTML_1.dat test
#7 "<frameset><span>", runtime error: index out of range
parse_test.go:228: testdata/webkit/tests_innerHTML_1.dat test
#82 "</html><!--abc-->", runtime error: index out of range
parse_test.go:228: testdata/webkit/tests_innerHTML_1.dat test #84 "",
runtime error: index out of range
parse_test.go:228: testdata/webkit/tricky01.dat test #0 "<b><p>Bold </b>
Not bold</p>\nAlso not bold.", runtime error: index out of range
parse_test.go:228: testdata/webkit/tricky01.dat test #1 "<html>\n<font
color=red><i>Italic and Red<p>Italic and Red </font> Just italic.</p>
Italic only.</i> Plain\n<p>I should not be red. <font color=red>Red.
<i>Italic and red.</p>\n<p>Italic and red. </i> Red.</font> I should not be
red.</p>\n<b>Bold <i>Bold and italic</b> Only Italic </i> Plain", runtime
error: index out of range
parse_test.go:228: testdata/webkit/tricky01.dat test
#2 "<html><body>\n<p><font size=\"7\">First paragraph.</p>\n<p>Second
paragraph.</p></font>\n<b><p><i>Bold and Italic</b> Italic</p>", runtime
error: index out of range
parse_test.go:228: testdata/webkit/tricky01.dat test
#3 "<html>\n<dl>\n<dt><b>Boo\n<dd>Goo?\n</dl>\n</html>", runtime error:
index out of range
parse_test.go:228: testdata/webkit/tricky01.dat test
#4 "<html><body>\n<label><a><div>Hello<div>World</div></a></label>
\n</body></html>", runtime error: index out of range
parse_test.go:228: testdata/webkit/tricky01.dat test #5 "<table><center>
<font>a</center> <img> <tr><td> </td> </tr> </table>", runtime error: index
out of range
parse_test.go:228: testdata/webkit/tricky01.dat test
#6 "<table><tr><p><a><p>You should see this text.", runtime error: index
out of range
parse_test.go:228: testdata/webkit/tricky01.dat test
#7 "<TABLE>\n<TR>\n<CENTER><CENTER><TD></TD></TR><TR>\n<FONT>\n<TABLE><tr></tr></TABLE>\n</P>\n<a></font><font></a>\nThis
page contains an insanely badly-nested tag sequence.", runtime error: index
out of range
parse_test.go:228: testdata/webkit/tricky01.dat test
#8 "<html>\n<body>\n<b><nobr><div>This text is in a div inside a
nobr</nobr>More text that should not be in the nobr, i.e., the\nnobr should
have closed the div inside it implicitly. </b><pre>A pre tag outside
everything else.</pre>\n</body>\n</html>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #0 "Test", runtime
error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #1 "<div></div>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #2 "<div>Test</div>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #3 "<di", runtime
error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#4 "<div>Hello</div>\n<script>\nconsole.log(\"PASS\");\n</script>\n<div>Bye</div>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #5 "<div
foo=\"bar\">Hello</div>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#6 "<div>Hello</div>\n<script>\nconsole.log(\"FOO<span>BAR</span>BAZ\");\n</script>\n<div>Bye</div>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #7 "<foo
bar=\"baz\"></foo><potato quack=\"duck\"></potato>", runtime error: index
out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #8 "<foo
bar=\"baz\"><potato quack=\"duck\"></potato></foo>", runtime error: index
out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #9 "<foo></foo
bar=\"baz\"><potato></potato quack=\"duck\">", runtime error: index out of
range
parse_test.go:228: testdata/webkit/webkit01.dat test #10 "</ tttt>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #11 "<div FOO
<img><img></div>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#12 "<p>Test</p<p>Test2</p>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#13 "<rdar://problem/6869687>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #14 "<A>test< /A>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #15 "&lt;", runtime
error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #16 "<body
foo='bar'><body foo='baz' yo='mama'>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #17 "<body></br
foo=\"bar\"></body>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #18 "<bdy><br
foo=\"bar\"></body>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#19 "<body></body></br foo=\"bar\">", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #20 "<bdy></body><br
foo=\"bar\">", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#21 "<html><body></body></html><!-- Hi there -->", runtime error: index out
of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#22 "<html><body></body></html>x<!-- Hi there -->", runtime error: index
out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#23 "<html><body></body></html>x<!-- Hi there --></html><!-- Again -->",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#24 "<html><body></body></html>x<!-- Hi there --></body></html><!-- Again
-->", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#25 "<html><body><ruby><div><rp>xx</rp></div></ruby></body></html>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#26 "<html><body><ruby><div><rt>xx</rt></div></ruby></body></html>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#27 "<html><frameset><!--1--><noframes>A</noframes><!--2--></frameset><!--3--><noframes>B</noframes><!--4--></html><!--5--><noframes>C</noframes><!--6-->",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#28 "<select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#29 "<dd><dd><dt><dt><dd><li><li>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#30 "<div><b></div><div><nobr>a<nobr>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#31 "<head></head>\n<body></body>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #32 "<head></head>
<style></style>ddd", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#33 "<kbd><table></kbd><col><select><tr>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#34 "<kbd><table></kbd><col><select><tr></table><div>", runtime error:
index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#35 "<a><li><style></style><title></title></a>", runtime error: index out
of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#36 "<font></p><p><meta><title></title></font>", runtime error: index out
of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#37 "<a><center><title></title><a>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#38 "<svg><title><div>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#39 "<svg><title><rect><div>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#40 "<svg><title><svg><div>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #41 "<img <=\"\"
FAIL>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #42 "<ul><li><div
id='foo'/>A</li><li>B<div>C</div></li></ul>", runtime error: index out of
range
parse_test.go:228: testdata/webkit/webkit01.dat test
#43 "<svg><em><desc></em>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#44 "<table><tr><td><svg><desc><td></desc><circle>", runtime error: index
out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#45 "<svg><tfoot></mi><td>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test
#46 "<math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math>", runtime
error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #47 "<!doctype
html><input type=\"hidden\"><frameset>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit01.dat test #48 "<!doctype
html><input type=\"button\"><frameset>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test #0 "<foo bar=qux/>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test #1 "<p
id=\"status\"><noscript><strong>A</strong></noscript><span>B</span></p>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test
#2 "<div><sarcasm><div></div></sarcasm></div>", runtime error: index out of
range
parse_test.go:228: testdata/webkit/webkit02.dat test #3 "<html><body><img
src=\"\" border=\"0\" alt=\"><div>A</div></body></html>", runtime error:
index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test
#4 "<table><td></tbody>A", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test
#5 "<table><td></thead>A", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test
#6 "<table><td></tfoot>A", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test
#7 "<table><thead><td></tbody>A", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test
#8 "<legend>test</legend>", runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test #9 "<table><input>",
runtime error: index out of range
parse_test.go:228: testdata/webkit/webkit02.dat test #11 "<isindex
action=\"x\">", runtime error: index out of range
panic: runtime error: index out of range

goroutine 1 [running]:
exp/html.inHeadIM(0xf840062000, 0x455600, 0x455691, 0xf840062000)
/usr/local/go/src/pkg/exp/html/parse.go:596 +0x7d7
exp/html.(*parser).parseCurrentToken(0xf840062000, 0x41d090)
/usr/local/go/src/pkg/exp/html/parse.go:1980 +0x11f
exp/html.(*parser).parseImpliedToken(0xf840062000, 0x2fa0400000003,
0x62309a, 0x4, 0x300000000, ...)
/usr/local/go/src/pkg/exp/html/parse.go:1963 +0xc1
exp/html.inHeadIM(0xf840062000, 0x455900, 0x455a89, 0xf840062000)
/usr/local/go/src/pkg/exp/html/parse.go:620 +0x214
exp/html.(*parser).parseCurrentToken(0xf840062000, 0xc0100000002)
/usr/local/go/src/pkg/exp/html/parse.go:1980 +0x11f
exp/html.(*parser).parse(0xf840062000, 0xf84016c000, 0xf84013f780,
0xf840062000)
/usr/local/go/src/pkg/exp/html/parse.go:2006 +0x299
exp/html.Parse(0xf8400699c0, 0xf840152400, 0x41d030, 0x7f6976878ad0,
0x7f6900000000, ...)
/usr/local/go/src/pkg/exp/html/parse.go:2023 +0x149
exp/html_test.ExampleParse()
/usr/local/go/src/pkg/exp/html/example_test.go:17 +0xa0
testing.RunExamples(0x400c00, 0x9345d8, 0x1, 0x1, 0xf840052001, ...)
/usr/local/go/src/pkg/testing/example.go:62 +0x597
testing.Main(0x400c00, 0x937648, 0x9, 0x9, 0x936f88, ...)
/usr/local/go/src/pkg/testing/testing.go:314 +0xed
main.main()
exp/html/_test/_testmain.go:71 +0x96

goroutine 2 [syscall]:
created by runtime.main
/usr/local/go/src/pkg/runtime/proc.c:225

goroutine 12 [runnable]:
testing.func·002(0xf84006b928, 0xf84006b920, 0xf84006b948, 0x0, 0x0, ...)
/usr/local/go/src/pkg/testing/example.go:50
created by testing.RunExamples
/usr/local/go/src/pkg/testing/example.go:58 +0x55e
FAIL exp/html 8.338s
ok exp/html/atom 0.053s
ok exp/inotify 1.764s
ok exp/locale/collate 3.283s
ok exp/locale/collate/build 0.092s
? exp/locale/collate/tools/colcmp [no test files]
ok exp/norm 73.509s
ok exp/types 4.701s
ok exp/types/staging 5.253s
ok exp/utf8string 0.047s
ok expvar 0.046s
ok flag 0.029s
ok fmt 1.759s
ok go/ast 0.061s
ok go/build 2.014s
ok go/doc 0.648s
ok go/parser 0.553s
ok go/printer 23.554s
ok go/scanner 0.134s
ok go/token 0.763s
? hash [no test files]
ok hash/adler32 0.076s
ok hash/crc32 0.038s
ok hash/crc64 0.035s
ok hash/fnv 0.046s
ok html 0.036s
ok html/template 0.770s
ok image 1.824s
ok image/color 0.144s
ok image/draw 0.399s
? image/gif [no test files]
ok image/jpeg 3.110s
ok image/png 0.874s
ok index/suffixarray 0.106s
ok io 0.118s
ok io/ioutil 0.040s
ok log 0.062s
ok log/syslog 0.452s
ok math 0.153s
ok math/big 2.031s
ok math/cmplx 0.086s
ok math/rand 0.567s
ok mime 0.038s
ok mime/multipart 3.881s
ok net 1.768s
ok net/http 24.444s
ok net/http/cgi 0.378s
ok net/http/fcgi 0.080s
ok net/http/httptest 0.056s
ok net/http/httputil 0.216s
? net/http/pprof [no test files]
ok net/mail 0.045s
ok net/rpc 1.289s
ok net/rpc/jsonrpc 0.140s
ok net/smtp 0.051s
ok net/textproto 0.083s
ok net/url 0.075s
ok old/netchan 0.270s
ok os 0.180s
ok os/exec 1.186s
ok os/signal 0.052s
ok os/user 0.036s
ok path 0.085s
ok path/filepath 1.060s
ok reflect 0.342s
ok regexp 1.411s
ok regexp/syntax 10.578s
ok runtime 5.378s
? runtime/cgo [no test files]
ok runtime/debug 0.038s
ok runtime/pprof 5.742s
ok sort 3.083s
ok strconv 8.247s
ok strings 4.091s
ok sync 1.417s
ok sync/atomic 0.868s
ok syscall 0.056s
? testing [no test files]
? testing/iotest [no test files]
ok testing/quick 0.309s
ok text/scanner 0.176s
ok text/tabwriter 0.053s
ok text/template 0.621s
ok text/template/parse 0.437s
ok time 3.534s
ok unicode 0.098s
ok unicode/utf16 0.038s
ok unicode/utf8 0.092s
? unsafe [no test files]

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 29, '12 at 12:57p
activeOct 29, '12 at 12:57p
posts1
users1
websitegolang.org

1 user in discussion

Builder: 1 post

People

Translate

site design / logo © 2022 Grokbase