Issue 1:
http://build.golang.org/log/a9043ae6a94865c40b47c457535a29c01a0f7449

##### ../misc/cgo/testsanitizers
FATAL: MemorySanitizer can not mmap the shadow memory.
FATAL: Make sure to compile with -fPIE and to link with -pie.
FATAL: Disabling ASLR is known to cause this error.
FATAL: If running under GDB, try 'set disable-randomization off'.
==19420==Process memory map follows:
0x000000000000-0x200000000000
0x7f9c01070000-0x7f9c013c2000
0x7f9c013c2000-0x7f9c01544000 /lib/x86_64-linux-gnu/libc-2.13.so
0x7f9c01544000-0x7f9c01744000 /lib/x86_64-linux-gnu/libc-2.13.so
0x7f9c01744000-0x7f9c01748000 /lib/x86_64-linux-gnu/libc-2.13.so
0x7f9c01748000-0x7f9c01749000 /lib/x86_64-linux-gnu/libc-2.13.so
0x7f9c01749000-0x7f9c0174e000
0x7f9c0174e000-0x7f9c01763000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f9c01763000-0x7f9c01963000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f9c01963000-0x7f9c01964000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f9c01964000-0x7f9c01966000 /lib/x86_64-linux-gnu/libdl-2.13.so
0x7f9c01966000-0x7f9c01b66000 /lib/x86_64-linux-gnu/libdl-2.13.so
0x7f9c01b66000-0x7f9c01b67000 /lib/x86_64-linux-gnu/libdl-2.13.so
0x7f9c01b67000-0x7f9c01b68000 /lib/x86_64-linux-gnu/libdl-2.13.so
0x7f9c01b68000-0x7f9c01be9000 /lib/x86_64-linux-gnu/libm-2.13.so
0x7f9c01be9000-0x7f9c01de8000 /lib/x86_64-linux-gnu/libm-2.13.so
0x7f9c01de8000-0x7f9c01de9000 /lib/x86_64-linux-gnu/libm-2.13.so
0x7f9c01de9000-0x7f9c01dea000 /lib/x86_64-linux-gnu/libm-2.13.so
0x7f9c01dea000-0x7f9c01df1000 /lib/x86_64-linux-gnu/librt-2.13.so
0x7f9c01df1000-0x7f9c01ff0000 /lib/x86_64-linux-gnu/librt-2.13.so
0x7f9c01ff0000-0x7f9c01ff1000 /lib/x86_64-linux-gnu/librt-2.13.so
0x7f9c01ff1000-0x7f9c01ff2000 /lib/x86_64-linux-gnu/librt-2.13.so
0x7f9c01ff2000-0x7f9c02009000 /lib/x86_64-linux-gnu/libpthread-2.13.so
0x7f9c02009000-0x7f9c02208000 /lib/x86_64-linux-gnu/libpthread-2.13.so
0x7f9c02208000-0x7f9c02209000 /lib/x86_64-linux-gnu/libpthread-2.13.so
0x7f9c02209000-0x7f9c0220a000 /lib/x86_64-linux-gnu/libpthread-2.13.so
0x7f9c0220a000-0x7f9c0220e000
0x7f9c0220e000-0x7f9c0222e000 /lib/x86_64-linux-gnu/ld-2.13.so
0x7f9c0241e000-0x7f9c02427000
0x7f9c02428000-0x7f9c0242d000
0x7f9c0242d000-0x7f9c0242e000 /lib/x86_64-linux-gnu/ld-2.13.so
0x7f9c0242e000-0x7f9c0242f000 /lib/x86_64-linux-gnu/ld-2.13.so
0x7f9c0242f000-0x7f9c02430000
0x7f9c02430000-0x7f9c02741000 /tmp/go-build686805548/command-line-arguments/_obj/exe/msan
0x7f9c02941000-0x7f9c0294a000 /tmp/go-build686805548/command-line-arguments/_obj/exe/msan
0x7f9c0294a000-0x7f9c04da9000
0x7fff05fb0000-0x7fff05fd1000 [stack]
0x7fff05ffc000-0x7fff05ffe000 [vdso]
0x7fff05ffe000-0x7fff06000000 [vvar]
0xffffffffff600000-0xffffffffff601000 [vsyscall]
==19420==End of process memory map.

@ianlancetaylor @bradfitz

Issue 2:
What steps will reproduce the problem?
Try to tokenize valid HTML where CDATA section contains 'tags'

What is the expected output?
No tokenization inside CDATA section is done.
See
http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#cdata-section-state

What do you see instead?
html.Tokenizer will report <x> from "<![CDATA[ <x> ]]>"

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Windows 7

Which revision are you using? (hg identify)
gowin32_2011-03-07.1 (unsure which hg revision really)

Please provide any additional information below.

This bug is related to 1661 where javascript code gets missparsed.
issue #1661 would vanish for javascript which is properly enclosed
in a CDATA section if this bug would be solved.

Simple bug-triggering demo attached

Attachments:

bug.go (415 bytes)