id
int64
393k
2.82B
repo
stringclasses
68 values
title
stringlengths
1
936
body
stringlengths
0
256k
labels
stringlengths
2
508
priority
stringclasses
3 values
severity
stringclasses
3 values
51,285,786
go
encoding/xml: Allow ",any" elements to be unmarshalled as raw xml
<pre>It would be nice if the encoding/xml package would allow to unmarshal unknown / not explicitly mapped XML elements as raw XML. This could be achieved by either allowing to combine the &quot;,innerxml&quot; and &quot;,any&quot; tags for struct fields or by introducing a new tag &quot;,anyxml&quot; or something sim...
NeedsInvestigation
low
Major
51,285,814
go
x/tools/present: support sub-section headings
by **sathishvj**: <pre>go version 1.2rc5 Multiple issues with sub sections in go.talks/present. Please see attached partial screenshot. * A subsection has a title numbering system that a section does not have * Size and formatting of sub section is much larger than section * Content under subsection is not showing ...
help wanted
medium
Major
51,285,824
go
all: binaries too big and growing
<pre>As an experiment, I build &quot;hello, world&quot; at the release points for go 1.0. 1.1, and 1.2. Here are the binary's sizes: % ls -l x.1.? -rwxr-xr-x 1 r staff 1191952 Nov 30 10:25 x.1.0 -rwxr-xr-x 1 r staff 1525936 Nov 30 10:20 x.1.1 -rwxr-xr-x 1 r staff 2188576 Nov 30 10:18 x.1.2 % size x.1.? __TEXT...
NeedsFix,binary-size,umbrella
high
Critical
51,285,836
go
gccgo tests: running a 'runoutput' test can hang the testsuite
<pre>I'm not sure if this is the right place to report this, but anyway: Some of the gccgo tests are use a &quot;runoutput&quot; model where the test code is compiled and run, generating more go code which is then run to be the 'real' test. If the code generating code hangs, though, the whole testsuite hangs -- the t...
NeedsInvestigation
low
Minor
51,285,886
go
proposal: net/v2: add SetDeadline to Listener interface
<pre>Probably it has been overlooked. It would be nice if we can avoid unnecessary type assertion in the loop of accepting incoming connections. Both TCPListener and UnixListener already implemented this method.</pre>
v2,Proposal
low
Minor
51,285,887
go
x/pkgsite: specifying a file's language
<pre>Go source files are UTF-8 so there is, in principle, no need to specify its encoding or language. However, I think there is one case when it would be very convenient to specify in which language are the comments written. When using CJK (Chinese, Japanese and Korean), there are different variations of some ideogra...
Thinking,pkgsite
low
Minor
51,285,924
go
x/pkgsite: comments in [][]T are omitted in doc rendering
<pre>What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. mkdir foo &amp;&amp; cd foo 2. curl <a href="http://play.golang.org/p/MdnYIPw4Ee.go">http://play.golang.org/p/MdnYIPw4Ee.go</a> &gt; foo.go 3. godoc . What is the expected output? PACKAGE DOCUMENTATION package...
NeedsInvestigation,pkgsite
low
Minor
51,285,925
go
database/sql: provide optional way to mitigate convT2E allocations
<pre>In debugging the performance of Camlistore start-up (which slurps the index from disk to memory), I compared two popular MySQL drivers' allocations. Even the one that was being careful to not allocate (go-mysql-driver) was still allocating memory proportional to the data size (169.55 bytes in MysQL and 153.36 all...
NeedsInvestigation
low
Critical
51,285,932
go
proposal: spec: asymmetry between const and var conversions
<pre>This is not a request for a language change; I am just documenting a weakness of the current const conversion rules: it confuses people that one can convert -1 to a uint, but only if the -1 is stored in variable. That is, var s = uint(-1) is illegal: constant -1 overflows uint That is clear, but it's also clear...
LanguageChange,Proposal,LanguageChangeReview
medium
Major
51,285,962
go
cmd/cgo: gdb on darwin cannot find symbols for cgo compiled objects
<pre>What steps will reproduce the problem? 1. Compile a program using Go 1.2 on Mac OS 10.9 that uses CGO. Set CC = a version of GCC from home brew - <a href="http://brew.sh">http://brew.sh</a> 2. Launch the program with gdb for debugging What is the expected output? gdb loads the symbols from the file and is able t...
Suggested,OS-Darwin
low
Critical
51,285,969
go
os, runtime: CTRL_CLOSE_EVENT should generate SIGHUP on Windows
<pre>On Windows, the CTRL_C_EVENT and CTRL_BREAK_EVENT control signals are converted to SIGINT in the runtime package for Windows for use by the os/signal package. After some investigation, I believe CTRL_CLOSE_EVENT should be emulated as SIGHUP. SIGHUP is already invented for compatibility purposes in the syscall pack...
Suggested,OS-Windows
low
Major
51,286,042
go
cmd/gofmt: remove leading/trailing blank lines from function bodies
<pre>What steps will reproduce the problem? 1. <a href="http://play.golang.org/p/Np4vGQFcqA">http://play.golang.org/p/Np4vGQFcqA</a> 2. Hit Format. What is the expected output? What do you see instead? Want: Lines 6 and 13 removed. Have: No change. Please use labels and text to provide additional information. Di...
Thinking
medium
Critical
51,286,102
go
proposal: net/v2: receiving IPv4 header on raw IPv4 socket
<pre>// BUG(mikio): On every POSIX platform, reads from the &quot;ip4&quot; network // using the ReadFrom or ReadFromIP method might not return a complete // IPv4 packet, including its header, even if there is space // available. This can occur even in cases where Read or ReadMsgIP // could return a complete packet. Fo...
v2,Proposal
low
Critical
51,286,104
go
cmd/cgo: pointers of Objective-C classes compatibility
<pre>What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. A pointer of an Objective-C class can't be assigned to a variable as a pointer of another Objective-C class. For example: package main // #cgo CFLAGS: -x objective-c ...
NeedsInvestigation
low
Critical
51,286,112
go
proposal: fmt/v2: State Flag(int) should be Flag(rune)
<pre>This issue is really just a note. The Flag method of fmt.State takes an int argument but represents a 'character'. Probably it should have been changed from int to rune when the rune alias was introduced (or byte - given all flags are ASCII). Which version are you using? (run 'go version') go1.2</pre>
v2,Proposal
low
Minor
51,286,119
go
x/playground: Maybe warn user if import of "time" or "net" is seen
<pre>The playground just keeps confusing people. Here's an idea to make it's intentional limitations more discoverable: - add a content slot just before output, that is marked up with e.g. background color that differentiates it from output, that can contain messages; make it invisible if empty - if the code importe...
help wanted
low
Minor
51,286,176
go
runtime: runtime_test execution of nm uses system go, not go in tree
<pre>check out tree cd go/src ./make.bash ../bin/go test runtime -short --- FAIL: TestRuntimeGogoBytes (0.10 seconds) runtime_test.go:113: go tool nm: exit status 1 usage: nm [-aghnsSTu] file ... FAIL It's picking up the system-wide go (and thus nm) which is Go 1.2, not the one from ../bin/go which is tip...
NeedsInvestigation
low
Major
51,286,225
go
proposal: go/ast: deprecate MergePackageFiles (it's not used, and buggy)
by **bgarcia@golang.org**: <pre>The parser.ParseComments option to parser.ParseFile causes ast.MergePackageFiles to create a broken merge. What steps will reproduce the problem? This code reproduces the problem: <a href="http://play.golang.org/p/63LsxcrpWi">http://play.golang.org/p/63LsxcrpWi</a> You can also r...
Proposal
low
Critical
51,286,226
go
net/http/cookiejar: figure out canonicalization resposibility
<pre>Nigel's comments on <a href="https://golang.org/cl/47560044/">https://golang.org/cl/47560044/</a> : &quot;&quot;&quot; OK, but this means that e.g., in the code.google.com/p/go.net/publicsuffix implementation, it's perfectly valid thatPublicSuffix(&quot;example.com.au&quot;) is &quot;com.au&quot; but PublicSuffix...
NeedsInvestigation
low
Minor
51,286,299
go
x/net/ipv6: add support for windows
<pre>It might be easy on both dragonfly and solaris, but not sure whether plan9 is an ipv6 compliant implementation.</pre>
help wanted,OS-Windows,FeatureRequest
low
Major
51,286,300
go
x/net/ipv4: add support for windows
<pre>For now they are full of shims and spacers.</pre>
help wanted,OS-Windows
low
Major
51,286,330
go
go/printer: match indentation when returning multiple composite literals
<pre><a href="http://play.golang.org/p/IxtYF1rXe9">http://play.golang.org/p/IxtYF1rXe9</a> ----- package main type T struct { x int y string } func f() (*T, *T) { return &amp;T{ x: 1, y: &quot;foo&quot;, }, &amp;T{ x: 2, y: &quot;bar&quot;, }...
Suggested
low
Major
51,286,336
go
go/printer: wonky alignment when mixing embedded and typed fields along with struct tags in a struct definition
by **cudmore.mb**: <pre>*What steps will reproduce the problem?* 1. Format <a href="http://play.golang.org/p/jzmwwldMwt">http://play.golang.org/p/jzmwwldMwt</a> 2. Format *What is the expected output?* {{{ type Field struct { ID `json:&quot;UID&quot;` // comment Label ID `json:&quot;Lbl&quot;` // comme...
NeedsInvestigation
low
Minor
51,286,391
go
x/net/html: ParseFragment fails to parse sub-table elements in the root position
by **algorithmicimperative**: <pre>1. Use `html.ParseFragment` to parse a fragment of HTML where the root elements are `&lt;tbody&gt;`, `&lt;tr&gt;` or `&lt;td&gt;` (and probably other table sub-elements) For example: s := `&lt;td&gt;first&lt;/td&gt; &lt;td&gt;second&lt;/td&gt; &lt;td&gt;third&lt;/td&gt; ` d...
NeedsInvestigation
low
Critical
51,286,393
go
encoding/xml: omit parent tags if value is empty #2
<pre>What steps will reproduce the problem? <a href="http://play.golang.org/p/m2rU4cPOBo">http://play.golang.org/p/m2rU4cPOBo</a> What is the expected output? &lt;OmitEmpty&gt;&lt;/OmitEmpty&gt; What do you see instead? &lt;OmitEmpty&gt;&lt;Vars&gt;&lt;/Vars&gt;&lt;/OmitEmpty&gt; Please provide any additional inform...
NeedsFix,early-in-cycle
medium
Major
51,286,451
go
cmd/cgo: doesn't properly recognize a typedef'd C array type when it's a const C function argument
by **krzysiek@dajerade.pl**: <pre>I ran into an issue with cgo, when integrating Go with some C code. The attached tarball contains a minimal example that reproduces the problem. Basicaly, passing a variable of a typedef'd array type to a function accepting a const argument results in a &quot;type mismatch&quot; compi...
Suggested
low
Critical
51,286,499
go
cmd/asm: add neon, vector instructions for arm
by **byron.rakitzis**: <pre>go1.2 In contrast to the amd64 port, the arm port of the Go assembler does not recognize SIMD instructions (&quot;V…&quot;) or vector registers (D or Q). It would be useful for us (we are writing custom speedups for a project using Intel SSE, and would care to do the same for ARM), but it...
NeedsFix
medium
Major
51,286,576
go
misc/makerelase: wrong icon for Windows command prompt
by **golubdr**: <pre>Installing Go on a Windows computer causes any 32-bit command prompt windows (opened by running C:\Windows\SysWOW64\cmd.exe) to have the Go icon instead of the command prompt icon. A similar issue existed for the Windows version of Git and has already been fixed there. See <a href="https://githu...
help wanted,OS-Windows
low
Major
51,286,661
go
database/sql: Support for database, catalog, schema and table level metadata
by **glen.newton**: <pre>database/sql does not offer the ability to dynamically peruse databases, catalogs, schemas and tables and their underlying metadata at runtime. Without this, it is not possible to make, for example, a Go program that can copy arbitrary tables from a database, by examining their metadata at run...
NeedsInvestigation
medium
Critical
51,286,680
go
cmd/gofmt: gofmt -r should preserve attached comments through a rewrite
<pre>$ cat test.go package p var x = (foo /* foo */ + bar /* bar */) $ gofmt -r 'foo-&gt;bla' test.go package p var x = (bla + bar /* bar */) Instead it should print: package p var x = (bla /* foo */ + bar /* bar */)</pre>
NeedsFix
low
Minor
51,286,696
go
proposal: spec: file and package scope interact in odd ways
<pre>This is just a reminder to revisit the interactions between file and package scope at some point in the future. At the moment we have the following rule: &quot;... no identifier may be declared in both the file and package block.&quot; ( <a href="http://tip.golang.org/ref/spec#Declarations_and_scope">http://tip....
LanguageChange,Proposal,LanguageChangeReview
low
Critical
51,286,747
go
testing: add ratcheting variants
<pre>For some testing and benchmark purposes, a ratchet is better suited than an average. <a href="https://golang.org/cl/67870053/">https://golang.org/cl/67870053/</a> bumps up the number of AllocsPerRun runs of an http test to avoid flakiness. This test would be more reliable using a lower number of runs if it could ...
NeedsInvestigation,FeatureRequest
low
Minor
51,286,772
go
x/tools/cmd/cover or cmd/yacc: go tool cover -html shows all lines in yacc generated code as "not tracked"
by **hwang.dev**: <pre>What steps reproduce the problem? 1. run ./test.sh in the attachment: go tool yacc -p expr -o expr_auto.go expr.y go test -coverprofile profile.cov go tool cover -html profile.cov 2. In the opened browser, select &quot;parser.go&quot; in the drop-down list. What happened? All the c...
NeedsInvestigation
low
Major
51,286,848
go
encoding/xml: Encoder duplicates namespace tags
by **seanerussell**: <pre>== What does 'go version' print? go version go1.2.1 darwin/amd64 == What steps reproduce the problem? <a href="http://play.golang.org/p/3_oUruPYhq">http://play.golang.org/p/3_oUruPYhq</a> == What happened? Encoder.EncodeToken duplicates namespace attributes. == What should have happened...
NeedsFix,early-in-cycle
medium
Major
51,286,860
go
cmd/vet: warn of cyclic closures that cause Finalizers not to run
<pre>What does 'go version' print? go version devel +08dcdcdb757b Thu Mar 13 14:04:29 2014 -0700 linux/amd64 What steps reproduce the problem? 1. <a href="http://play.golang.org/p/QWn904819Y">http://play.golang.org/p/QWn904819Y</a> What happened? A tricky case with Finalizers and closures can be created where the Fin...
Analysis
low
Critical
51,286,944
go
unicode: decrease binary size
<pre>Currently, the generated unicode tables.go sets up a separate slice for each R16/R32 in each RangeTable, each with its own backing array. Rearranging the code generated by maketables.go (in a way that is invisible to the exported API) so that the RangeTable slices point into a big, shared R16/R32 array reduces th...
NeedsInvestigation,binary-size
low
Major
51,286,953
go
cmd/cgo: cgo breaks multiple cgo packages linked with libgcc
by **jim.deng**: <pre>What does 'go version' print? go version devel +358e2b416518 Wed Mar 19 09:00:58 2014 -0700 darwin/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Create a source tree that can be downloaded below: src/main/main.go <a href="http://pla...
Suggested
low
Critical
51,286,963
go
sort: superior SymMerge-based algorithm available
by **mike@bonzaiapps.com**: <pre>Someone on the mailing list told me to file a bug for this, but the SymMerge-based sort used in the sort.go file has since been surpassed by a new algorithm created by the same authors (Pok-Son Kim and Arne Kutzner): <a href="http://golang.org/src/pkg/sort/sort.go?m=text">http://golang...
help wanted
low
Critical
51,286,990
go
gdb: cannot debug windows/386 binaries in wine/gdb due to internal gdb assert failure
<pre>What does 'go version' print? go version devel +26aa53304a48 Fri Mar 07 16:08:12 2014 -0500 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Build a Go program emdash any Go program emdash for windows/386. 2. wine --gdb program.exe 3. Alternatively, wi...
OS-Windows
low
Critical
51,286,994
go
x/net/websocket: messages not exposed in package API
by **lorresylvan@yahoo.com**: <pre>WebSocket peers exchange messages. A message is composed of one or more frames. The (*Conn).Read and (Codec).Receive methods return a single frame. There is no mechanism to detect message boundaries or otherwise compose frames into a message. To use this package, an application mus...
NeedsInvestigation
low
Major
51,287,001
go
cmd/compile: combine slice header and backing array for static slices into a single symbol
<pre>Static slices generate two symbols, one for the slice header and one for the backing array. These could be combined into a single symbol, laid out with the slice header followed by the backing array. This would reduce binary size, particularly for the unicode tables. This does not make sense to do unless <a href=...
binary-size
low
Minor
51,287,008
go
misc/gdb: gdb "l" command displays wrong source file/line
<pre>I'm no windows/386 tip. C:\go\path\mine\src\a&gt;type main.go package main import &quot;fmt&quot; func main() { fmt.Println(&quot;Hello&quot;) } C:\go\path\mine\src\a&gt;go build main.go C:\go\path\mine\src\a&gt;gdb main.exe GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GP...
NeedsInvestigation
low
Critical
51,287,019
go
cmd/compile: recognize x[:] of global array x as static data
<pre>If an array is defined in the global scope and concerted to a slice in an unused struct literal, it will not get garbage collected by the linker. See code below to reproduce the problem. go version devel +0134c7020c40 Wed Mar 26 15:23:31 2014 -0700 darwin/amd64 ===BEGIN=== package main func main() { } type fo...
NeedsInvestigation
low
Major
51,287,050
go
x/crypto/ssh: suggested add auth methods from server to error info
by **weyllor**: <pre>What does 'go version' print? go version go1.2.1 windows/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. config a Client only with password method 2. connect to a ssh server reject password method 3. auth fail, but no more info to find out ...
NeedsInvestigation
low
Critical
51,287,062
go
cmd/compile: don't use REP prefix for reverse-order copying on amd64, 386
<pre>REP prefixes have a high startup cost. Most were eliminated with CL 81370046. For overlapping source/destinations when we have to copy in descending address order, they are still used. Fix that.</pre>
NeedsInvestigation
low
Minor
51,287,134
go
crypto/x509: add more detail to the error message arising from a missing hash function.
<pre>If a certificate is signed with a hash function that wasn't compiled in the error message isn't bad, but could be better: x509: certificate signed by unknown authority (possibly because of &quot;x509: cannot verify signature: algorithm unimplemented&quot; while trying to verify candidate authority certificate &qu...
help wanted,NeedsFix
low
Critical
51,287,158
go
gccgo: crash due to running out of memory (likely)
<pre>Test case: <a href="http://play.golang.org/p/xoT0jSBOci">http://play.golang.org/p/xoT0jSBOci</a> Perhaps it's possible to give a nicer error message. $ gccgo overflow.go terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc go1: internal compiler error: Aborted 0x99a9ef crash...
NeedsInvestigation
low
Critical
51,287,168
go
runtime: gc can add clock tick latency when HPETs are not used
<pre>Garbage collector can add latency on the order of clock tick (usually 10ms, 2.5ms, or 1ms) to each run. This is due to some runtime·usleep(1) and runtime·usleep(100) calls, which get rounded up to clock period when HPETs are not used. More details in this thread: <a href="https://groups.google.com/d/topic/golang...
NeedsInvestigation
low
Major
51,287,223
go
x/crypto/ssh: TestHandshakeBasic times out on Plan 9
<pre>What steps will reproduce the problem? % cd ssh % go test -run TestHandshakeBasic What is the expected output? What do you see instead? The test is timing out because io.ReadFull in cipher.go:137 (called from handshake_test.go:110) never returns. cpu% go test -v -timeout 30s -run TestHandshakeBasic === RUN Tes...
OS-Plan9
low
Minor
51,287,230
go
misc/gdb: breakpoints break things
<pre>What steps reproduce the problem? hg clone tip cd $GOROOT/src ./make.bash cd pkg/net/http go test -c gdb ./http.test break strings.Repeat run What happened? Reading symbols from /home/albert/go/src/pkg/net/http/http.test...done. Loading Go Runtime support. (gdb) break strings.Repeat Breakpoint 1 at 0x535cfb: st...
NeedsInvestigation
low
Critical
51,287,253
go
reflect: Call is slow
<pre>reflect.Value.Call is pretty slow. In addition to always allocating a slice for its []reflect.Value result parameters, it also does a lot of prep work on each call. It would be nice to both avoid that allocation and also do the setup checks just once. Maybe a new method to return some sort of 'Caller' type that...
Performance,GarbageCollector,help wanted
medium
Major
51,287,260
go
x/pkgsite: conditionally expose unexported types
<pre>Currently godoc only exposes the documentation of exported types, vars, etc. However, there are a number of cases where it would be convenient to expose unexported types: when there is a variable or constant of that type and when a function or method takes or returns values of that type. If the unexported type h...
NeedsInvestigation,pkgsite
low
Major
51,287,322
go
x/tools/cmd/eg: No way to rewrite expressions that include unexported identifiers
<pre>Because of the way that eg parses the template files, you can't refer to unexported identifiers inside the before and after functions. Possibility is to include the package files when parsing the template file, so that it can refer to the unexported identifiers.</pre>
NeedsInvestigation
low
Minor
51,287,338
go
encoding/json: Encoder internally buffers full output
<pre>What does 'go version' print? go version devel +2f6b9f80be36 Fri Apr 25 09:46:07 2014 -0600 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Use json.NewEncoder(writer).Encode(value) What happened? Each call to json.Encoder.Encode uses an internal b...
NeedsFix
medium
Critical
51,287,371
go
database/sql: nested transaction or save point support
<pre>It might be useful to consider supporting nested transactions when a particular driver/DB combo is able to support that. #Go 1.4+</pre>
help wanted,Proposal,Proposal-Accepted,FeatureRequest
high
Critical
51,287,376
go
os: add a semaphore in front of the filesystem?
<pre>I'd like to investigate putting a semaphore in front of the pkg/os filesystem operations, so massive numbers of goroutines attempting filesystem I/O don't create threads each and make the operating system cry. There are deadlock concerns, but perhaps we can do it per filesystem id, or learn the limits, etc.</pre>...
NeedsInvestigation
medium
Major
51,287,381
go
proposal: net/http/httputil/v2: remove ClientConn, ServerConn
<pre>These have been deprecated in Go1.3 ( <a href="https://golang.org/cl/92790043/">https://golang.org/cl/92790043/</a> ), but cannot be removed because of the compatibility guarantee. This is a bug to track them to be removed from Go2.</pre>
v2,Proposal
low
Critical
51,287,403
go
cmd/compile, bytes: bootstrap array causes bytes.Buffer to always be heap-allocated
<pre>What steps reproduce the problem? 1. Download playground.zip 2. Run go build -gcflags=-m bytes.go 3. Run go build -gcflags=-m bytes2.go playground/bytes: Resembles a simplified version of Go's bytes.Buffer, with the exception that NewBuffer returns Buffer{} instead of &amp;Buffer{}. playground/bytes2: Different ...
help wanted,NeedsFix
medium
Critical
51,287,406
go
cmd/compile: rethink temporary names
<pre>package p func conv() { var f float64 _ = float64(uint64(f)) } go version devel +b0443478e712 Thu May 01 16:29:34 2014 -0400 darwin/386 go tool 8g -S conv.go The assembly listing includes: 0x00b7 00183 (conv.go:5) FMOVDP F0,&quot;&quot;.autotmp_0001+20(SP) 0x00bb 00187 (conv.go:5) JMP ,...
NeedsInvestigation
low
Major
51,287,409
go
runtime: improve goroutine profiler
<pre>Some concrete suggestions: 1. Add goroutine state (waiting, runnable, syscall) as comment in debug more and/or as top frame (so that all waiting goroutines converge in a single &quot;Waiting&quot; block in svg graph. 2. Add &quot;created by&quot; line in debug mode. 3. Dedup stacks, there can be thousands of equal...
NeedsInvestigation
low
Critical
51,287,413
go
x/net/html: Tokenizer cannot round-trip <script> tag contents
by **martin@probst.io**: <pre>I'm not sure if this is a bug or working as intended according to the HTML5 parsing algorithm, but it seems at least problematic from a user's perspective. When parsing an HTML document that contains &lt;script&gt; tags, writing out the tokens received will double escape any contained en...
NeedsInvestigation
low
Critical
51,287,429
go
x/crypto/ssh/terminal: does not handle interruptions
by **monikan@google.com**: <pre>go.crypto/ssh/terminal does not handle interruptions. Instead of ignoring an interruption terminal should return with error allowing the caller to handle interruption e.g. restore terminal state before exiting.</pre>
NeedsInvestigation
low
Critical
51,287,445
go
crypto/tls: tls.Dial get error "local error: unexpected message"
by **webluoye**: <pre>What does 'go version' print? go version go1.2.1 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. cert, err := tls.LoadX509KeyPair(&quot;eeee.crt&quot;, &quot;eeee.pem&quot;) if err != nil { log.Fatalf(&quot;server: loadkeys: %s&quot...
NeedsInvestigation
low
Critical
51,287,446
go
x/tools/cmd/present: poor experience on Android Chrome
by **bgarcia@golang.org**: <pre>When trying to view a &quot;present&quot; slide deck (e.g. <a href="http://talks.golang.org/2014/c2go.slide)">http://talks.golang.org/2014/c2go.slide)</a>, chrome on android attempts to do some auto-resizing so that three slides are all completely viewable. This makes the slides very s...
Suggested
low
Minor
51,287,502
go
spec: Go spec method expressions/values - tidy up
by **xunfin**: <pre>As per note at Golang Nuts <a href="https://groups.google.com/forum/#">https://groups.google.com/forum/#</a>!topic/golang-nuts/6ltLyMGuAS8 The two sections <a href="http://golang.org/ref/spec#Method_expressions">http://golang.org/ref/spec#Method_expressions</a> and <a href="http://golang.org/ref/...
Documentation,NeedsInvestigation
low
Minor
51,287,518
go
x/arch/x86/x86asm: Mem.Disp is positive for negative displacements
<pre>The instruction 48 8b 0c 25 c0 5c 07 80 is disassembled as MOVQ 0x80075cc0, CX. It should be disassembled as MOVQ 0xffffffff80075cc0, CX. Addresses are signed, and should be sign-extended. See the discussion in <a href="https://golang.org/issue/7980">issue #7980</a> for details. To reproduce, run 'go tool objdump...
NeedsInvestigation
low
Minor
51,287,615
go
image: decode / resize into an existing buffer
<pre>The image/foo packages currently provide foo.Decode functions that allocate a new image buffer. It would be nice, especially when decoding a moving image, to decode into an existing buffer. Also, it would be nice to be able to resize an image during (and not after) decoding, which can obviously allocate a smaller...
Thinking
low
Major
51,287,629
go
encoding/xml: empty namespace prefix definitions should be illegal
<pre>What does 'go version' print? go version go1.2 linux/amd64 What steps reproduce the problem? <a href="http://play.golang.org/p/f8UWfdF7Hb">http://play.golang.org/p/f8UWfdF7Hb</a> What happened? No-error. What should have happened instead? Should generate an error. Per <a href="http://www.w3.org/TR/REC-xml-nam...
NeedsInvestigation
low
Critical
51,287,633
go
crypto/tls: a timeout error on tls.Conn.Write is confusing
<pre>SetWriteDeadline of tls.Conn describes &quot;A zero value for t means Write will not time out. After a Write has timed out, the TLS state is corrupt and all future writes will return the same error.&quot; but the returned value on timeout is marked Temporary and it may be confusing. A suggestion: <a href="https:/...
NeedsDecision
low
Critical
51,287,651
go
proposal: spec: represent interfaces by their definition and not by package and name
<pre>An interface is a collection of method names and signatures. Say, we have: package a type Writer interface { Write([]byte) (int, error) } type WriterTo interface { WriteTo(Writer) (int64, error) } type WriterTo2 interface { WriteTo(w interface{Write([]byte) (int, error)} (int64, error) } From ...
LanguageChange,Proposal,LanguageChangeReview
high
Critical
51,287,662
go
cmd/gofmt: gofmt doesn't ignore directories prefixed with _
by **onsi@pivotallabs.com**: <pre>go test ./... ignores directories prefixed with _. This is convenient and seems like a reasonable rule of thumb. gofmt -w . does *not* honor this &quot;rule&quot; With the ascendance of Godeps there are now Godeps/_workspace folders vendoring dependencies all over the place. Hav...
Thinking
low
Minor
51,287,666
go
cmd/compile: report all missing methods on failed interface satisfaction
<pre>If a type does not implement an interface, the compiler currently only reports one error. It would be nice if it reported more errors. <a href="http://play.golang.org/p/ayvTDLAJiZ">http://play.golang.org/p/ayvTDLAJiZ</a></pre>
NeedsInvestigation
low
Critical
51,287,678
go
cmd/compile: does not understand old linker flags
<pre>liblink/obj6.c uses ctxt-&gt;debugstack to emit stack underflow checks. The flag was meant to be initialized from -K 6l flag. But now liblink is invoked from the compiler. And the compiler does not initialize ctxt-&gt;debugstack. Moreover the compiler already uses -K flag for a different purpose. I suspect this r...
NeedsInvestigation
low
Critical
51,287,696
go
cmd/cgo: Allow C code to use structures defined in Go
by **fuzxxl**: <pre>There are some C structures that cannot be correctly accessed from Go code as Go does not provide the features needed to access them. Examples are unions, bitfields and structures that are affected by issue #7560. Therefore, C code is needed to unmarshall and marshall these structures into Go code....
NeedsInvestigation
low
Minor
51,287,756
go
spec: define "interface value"
by **gnormington@gopivotal.com**: <pre>The spec mentions &quot;interface value&quot; seven times but does not define the term. Defining the term carefully would help to avoid some common misunderstandings, most notably <a href="http://golang.org/doc/faq#nil_error">http://golang.org/doc/faq#nil_error</a>. The spec say...
Documentation,NeedsInvestigation
low
Critical
51,287,787
go
encoding/xml: disallow attributes named xmlns:*
by **opennota**: <pre>The Encoder will add namespaced to the elements, even if there are the same namespaces in the parent element: <a href="http://play.golang.org/p/LDRJCxUJHX">http://play.golang.org/p/LDRJCxUJHX</a> // Output: // &lt;p xmlns=&quot;<a href="http://www.gribuser.ru/xml/fictionbook/2.0&quot">http://www...
NeedsFix,early-in-cycle
low
Major
51,287,791
go
cmd/vet: check for verb errors for fmt.Scanf
<pre>What does 'go version' print? go version go1.2.2 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Printf(&quot;test %d&quot;, f) where f is float is deemed a type error 2. Scanf(&quot;test %d&quot;, f) where f is float passes all type checking 3. <a hr...
Analysis
low
Critical
51,287,838
go
cmd/vet: handle embedded fields in structtags check
<pre>The change at <a href="https://code.google.com/p/go/source/detail?r=dfa149f4c2fc&amp">https://code.google.com/p/go/source/detail?r=dfa149f4c2fc&amp</a>;repo=tools may need to be updated after <a href="https://golang.org/issue/7363">issue #7363</a> is resolved. Marking Go1.4 to match <a href="https://golang.org/is...
Analysis
low
Minor
51,287,839
go
os: TestGetppid fails on plan9
<pre>--- FAIL: TestGetppid (0.02 seconds) os_test.go:1318: Child process reports parent process id '0', expected '917122' Alex</pre>
OS-Plan9,NeedsInvestigation
low
Major
51,287,863
go
cmd/vet: No warning for some statements with no effect
by **tmadams@google.com**: <pre>What does 'go version' print? go version go1.2 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. In this toy example (which represents a pattern of bugs that crops up fairly frequently for our team), I have forgotten to make e...
Analysis
low
Critical
51,287,922
go
gdb: Wrong values for local variables
by **andreas.nusser**: <pre>What does 'go version' print? Tried with .)go version go1.3 linux/amd64 and .)go version devel +e0ad7e329637 Thu Jun 19 22:19:56 2014 -0700 linux/amd64 As gdb I'm using &quot;GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1.1+b1)&quot; What steps reproduce the problem? If possible, include a link to ...
NeedsInvestigation
low
Major
51,287,968
go
sync: per-cpu storage
<pre>Provide a way to create/access cpu local objects. This may make it easy to batch data per-CPU to reduce global locking. This is a feature request. Potential use case: scalable stats across many goroutines - stat updates are batched in the per-CPU stat object. Periodically or on-demand, the stat batches are aggr...
Thinking
medium
Critical
51,287,981
go
spec: unspecified or unclear behavior for arithmetic operators on named types
by **arnaud.porterie**: <pre>It seems that the following code is not fully specified: type MyType int [...] var m MyType m += 0 I understand that 0 being an untype constant, it can be used in a binary operation with a `MyType` operand. However, I cannot find what specifies that binary operations can be used ...
NeedsInvestigation
low
Minor
51,288,023
go
net: Checking errors for EPIPE and ECONNRESET requires syscall
<pre>Reading and writing can cause EPIPE and ECONNRESET to be returned in addition to io.EOF. _, err := conn.Write(data) if oe, ok := err.(*net.OpError); ok &amp;&amp; (oe.Err == syscall.EPIPE || oe.Err == syscall.ECONNRESET) { return fmt.Errorf(&quot;Connection closed&quot;) } _, err := conn.Read(data) oe, ok :=...
Thinking
low
Critical
51,288,035
go
x/net/tcp: provide a way to set keepalive time and interval separately
by **redforks**: <pre>func setKeepAlivePeriod() in net/tcpsockopt_unix.go is the back end of TCPConn.SetKeepAlivePeriod() on linux platform. It set both TCP_KEEPINTVL and TCP_KEEPIDLE to the period passed in: func setKeepAlivePeriod(fd *netFD, d time.Duration) error { if err := fd.incref(); err != nil { r...
NeedsInvestigation
low
Critical
51,288,047
go
cmd/vet: add hook for file level checker short-circuits
<pre>Some vet checks could be short-circuited at the file level. For example, the unsafe pointer checker could avoid running if unsafe has not been imported. Something similar holds for the atomic check, the cyclic finalizer test, and the template check (if it goes in). The asm check could probably be run only on .s fi...
Performance,Analysis
low
Minor
51,288,059
go
cmd/compile: Opportunity for de-pessimization in provably const range loops
<pre>What does 'go version' print? go version go1.3 linux/amd64 What steps reproduce the problem? Using the 2-return 'range' over a slice of structs will copy each struct, even if the struct is provably not modified in the loop. This is a premature pessimization that the compiler could and should eliminate. Ideall...
Suggested
low
Major
51,288,069
go
go/types: confusing behaviour of Selection.Indirect() for Kind()==MethodVal
<pre>In go/types/selection.go, the intended significance of the Indirect flag (for MethodVal) is hard to tell from the example. I was assuming that is means whether there are any pointer indirections between the type of the receiver and the declared type of the method, but that doesn't seem to explain it: I instrumen...
NeedsInvestigation
low
Major
51,288,073
go
cmd/compile: Debug information missing : no stack info , no variables info using gdb
by **guybrandw**: <pre>Since version 1.3 , I cant get debugging information . using both linux64 , windows64/32 : 1. the variables displays values with no correlation to the real value (fmt.Print() displays the right values) . 2. the call stack displays only the last step of the stack , other steps are displayed as ??...
NeedsInvestigation
medium
Critical
51,288,130
go
go/doc: incorrect href link for dot import
by **fgmarand**: <pre>What does 'go version' print? go version go1.3 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. unpack the archive in src/ 2. start godoc -http=:6060 3. go to <a href="http://localhost:6060/pkg/outer/inner">http://localhost:6060/pkg...
NeedsInvestigation
low
Minor
51,288,138
go
cmd/vet: check for useless assignments to struct fields
<pre>Implement this TODO from the assignment checker: // TODO: should also check for assignments to struct fields inside methods // that are on T instead of *T. Discussion at <a href="https://groups.google.com/forum/#">https://groups.google.com/forum/#</a>!topic/golang-nuts/rSTE4G75QQU/discussion. This might also b...
Analysis
low
Minor
51,288,145
go
cmd/compile: Wrong type reported for constant in type mismatch report
<pre>In the following code: func Foo() []float64 { return 0 } gc reports &quot;cannot use 0 (type int) as type []float64 in return argument&quot;. However, 0 is not an integer, 0 is a constant. <a href="http://play.golang.org/p/hyUix7H8aX">http://play.golang.org/p/hyUix7H8aX</a></pre>
NeedsInvestigation
low
Minor
51,288,165
go
cmd/cgo: build failed when any code have CFLAGS: -Werror=unused-vairable
by **Snyh1010**: <pre>1. What is a short input program that triggers the error? package main //#cgo CFLAGS: -Werror=unused-variable //void test(){} import &quot;C&quot; func main() { C.test() } 2. What is the full compiler output? snyh:shm$go build # _/run/shm ./a.go: In function ‘_cgo_043ca501ac1f_Cfunc_t...
help wanted,NeedsInvestigation
low
Critical
51,288,188
go
x/net/ether: create package that supports raw ethernet sockets
by **nathan@nathan.io**: <pre>It would be useful if Go supported raw ethernet sockets. It is indicated that this was planned in a TODO on net.go: // TODO(rsc): // support for raw ethernet sockets Is this still planned? Thanks!</pre>
help wanted
low
Major
51,288,204
go
runtime: TestStackMem needs to be run in isolation to be accurate
<pre>See CL 119330044 TestStackMem measures the amount of stack used, which can change due to other tests running simultaneously. We see instances of the amount of stack used going negative. This bug requests a way of running this test in isolation so it isn't degraded by other nearby tests.</pre>
NeedsInvestigation
low
Critical
51,288,235
go
testing/quick: generate NaN and +/-Inf for float and complex parameters
<pre><a href="http://play.golang.org/p/sc5S0sZorl">http://play.golang.org/p/sc5S0sZorl</a> quick's default generator never produces NaN or +/-Inf. These are commonly-missed edge cases.</pre>
NeedsInvestigation
low
Minor
51,288,262
go
cmd/compile: Manually calling init should provide a better error message, currently says "undefined: init"
<pre>Attempting to manually call an init() function fails with the somewhat cryptic compiler error &quot;undefined: init&quot;. It should indicate that init is a special symbol (automatically run) and cannot be manually called. <a href="http://play.golang.org/p/d2A2m56Fvp">http://play.golang.org/p/d2A2m56Fvp</a></pre...
NeedsFix
low
Critical
51,288,278
go
runtime: fatal error: cannot map pages in arena address space on Windows
by **kaixinlaoshu2008**: <pre>What does 'go version' print? go 1.3 windows/386 What steps reproduce the problem? file, handler, err := r.FormFile(&quot;file&quot;) ... defer file.Close() Use FormFile to receive documents. When i upload a flie(100M) 4 or 5 times will get errors. What happened? fatal error: runtime:...
OS-Windows
medium
Critical
51,288,294
go
reflect: Add UnderlyingType(reflect.Type)
<pre>The go spec refers to the underlying type of a given type T: Each type T has an underlying type: If T is one of the predeclared boolean, numeric, or string types, or a type literal, the corresponding underlying type is T itself. Otherwise, T's underlying type is the underlying type of the type to which T refers i...
NeedsDecision,FeatureRequest
low
Minor
51,288,354
go
gdb: Gdb doesn't show strings values
by **ignatovs**: <pre>Mac OS X 10.9.4 What does 'go version' print? go version go1.3.1 darwin/amd64 (via brew) GNU gdb (GDB) 7.7.1 (via brew) Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html&gt">http://gnu.org/licenses/gpl.html...
NeedsInvestigation
low
Critical