<p dir="auto">by <strong>avdoshkin</strong>:</p>
<pre class="notranslate">gcc -v
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4
--enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-sjlj-exceptions
--enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi
--target=arm-linux-gnueabi
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)


qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd
initrd.img-2.6.32-5-versatile -hda debian_squeeze_armel_standard.qcow2 -append
root=/dev/sda1 -nographic -net nic,macaddr=00:16:3e:00:00:01 -net tap

root@debian-armel:/home/go/src# uname -a
Linux debian-armel 2.6.32-5-versatile #1 Wed Sep 25 00:01:55 UTC 2013 armv5tejl GNU/Linux

root@debian-armel:/home/go/src# cat /proc/cpuinfo 
Processor   : ARM926EJ-S rev 5 (v5l)
BogoMIPS    : 838.86
Features    : swp half thumb fastmult vfp edsp java 
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part    : 0x926
CPU revision    : 5

Hardware    : ARM-Versatile PB
Revision    : 0000
Serial      : 0000000000000000


root@debian-armel:/home/go/src# ./all.bash 
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/arm.
lib9
libbio
liblink
misc/pprof
cmd/cc
cmd/gc
cmd/5l
cmd/5a
cmd/5c
cmd/5g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go

# Building packages and commands for linux/arm.
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
bytes
bufio
math
strconv
reflect
encoding/binary
syscall
time
os
fmt
debug/dwarf
debug/elf
strings
debug/gosym
debug/macho
debug/pe
debug/plan9obj
sort
flag
log
cmd/addr2line
hash
crypto
crypto/md5
go/token
path/filepath
go/scanner
go/ast
io/ioutil
go/parser
text/tabwriter
go/printer
os/exec
cmd/cgo
go/format
path
cmd/fix
container/heap
encoding
encoding/base64
unicode/utf16
encoding/json
encoding/xml
regexp/syntax
regexp
net/url
text/template/parse
text/template
go/doc
go/build
compress/flate
hash/crc32
compress/gzip
container/list
crypto/subtle
crypto/cipher
crypto/aes
crypto/des
math/rand
math/big
crypto/elliptic
crypto/ecdsa
crypto/hmac
crypto/rand
crypto/rc4
crypto/rsa
crypto/sha1
crypto/sha256
crypto/dsa
crypto/sha512
encoding/asn1
crypto/x509/pkix
encoding/hex
encoding/pem
runtime/cgo
net
crypto/x509
crypto/tls
mime
net/textproto
mime/multipart
net/http
os/signal
cmd/go
runtime/pprof
cmd/gofmt
cmd/nm
cmd/objdump
cmd/pack
cmd/yacc
archive/tar
archive/zip
compress/bzip2
compress/lzw
hash/adler32
compress/zlib
container/ring
database/sql/driver
database/sql
encoding/ascii85
encoding/base32
encoding/csv
encoding/gob
expvar
hash/crc64
hash/fnv
html
html/template
image/color
image
image/color/palette
image/draw
image/gif
image/jpeg
image/png
index/suffixarray
log/syslog
math/cmplx
net/http/cgi
net/http/cookiejar
net/http/fcgi
net/http/httptest
net/http/httputil
net/http/pprof
net/mail
net/rpc
net/rpc/jsonrpc
net/smtp
os/user
runtime/debug
runtime/race
testing
testing/iotest
testing/quick
text/scanner

# Testing packages.
ok      cmd/addr2line   4.619s
?       cmd/cgo [no test files]
ok      cmd/fix 0.248s
ok      cmd/go  0.252s
ok      cmd/gofmt   0.681s
ok      cmd/nm  5.682s
ok      cmd/objdump 25.969s
ok      cmd/pack    72.310s
?       cmd/yacc    [no test files]
ok      archive/tar 0.170s
ok      archive/zip 6.757s
ok      bufio   1.257s
ok      bytes   1.696s
ok      compress/bzip2  1.145s
ok      compress/flate  5.528s
ok      compress/gzip   0.143s
ok      compress/lzw    0.759s
ok      compress/zlib   9.939s
ok      container/heap  0.075s
ok      container/list  0.074s
ok      container/ring  0.157s
?       crypto  [no test files]
ok      crypto/aes  0.142s
ok      crypto/cipher   0.099s
ok      crypto/des  0.193s
ok      crypto/dsa  0.133s
ok      crypto/ecdsa    0.316s
ok      crypto/elliptic 0.512s
ok      crypto/hmac 0.085s
ok      crypto/md5  0.092s
ok      crypto/rand 0.237s
ok      crypto/rc4  1.249s
ok      crypto/rsa  3.140s
ok      crypto/sha1 0.135s
ok      crypto/sha256   0.086s
ok      crypto/sha512   0.094s
ok      crypto/subtle   0.137s
ok      crypto/tls  17.462s
ok      crypto/x509 17.037s
?       crypto/x509/pkix    [no test files]
ok      database/sql    0.497s
ok      database/sql/driver 0.085s
ok      debug/dwarf 0.152s
ok      debug/elf   0.178s
ok      debug/gosym 0.061s
ok      debug/macho 0.092s
ok      debug/pe    0.200s
ok      debug/plan9obj  0.068s
?       encoding    [no test files]
ok      encoding/ascii85    0.076s
ok      encoding/asn1   0.115s
ok      encoding/base32 0.138s
ok      encoding/base64 0.093s
ok      encoding/binary 0.126s
ok      encoding/csv    0.085s
ok      encoding/gob    0.871s
ok      encoding/hex    0.072s
ok      encoding/json   2.020s
ok      encoding/pem    0.089s
ok      encoding/xml    0.312s
ok      errors  0.081s
ok      expvar  0.109s
ok      flag    0.076s
ok      fmt 0.658s
ok      go/ast  0.152s
ok      go/build    1.766s
ok      go/doc  0.773s
ok      go/format   0.178s
ok      go/parser   0.579s
ok      go/printer  4.763s
ok      go/scanner  0.103s
ok      go/token    0.547s
?       hash    [no test files]
ok      hash/adler32    0.154s
ok      hash/crc32  0.062s
ok      hash/crc64  0.058s
ok      hash/fnv    0.063s
ok      html    0.086s
ok      html/template   0.710s
ok      image   0.956s
ok      image/color 0.130s
?       image/color/palette [no test files]
ok      image/draw  0.806s
ok      image/gif   0.639s
ok      image/jpeg  1.506s
ok      image/png   0.559s
ok      index/suffixarray   0.146s
ok      io  0.210s
ok      io/ioutil   0.094s
ok      log 0.148s
ok      log/syslog  2.551s
ok      math    0.144s
ok      math/big    3.696s
ok      math/cmplx  0.073s
ok      math/rand   15.214s
ok      mime    0.092s
ok      mime/multipart  4.243s
ok      net 4.963s
ok      net/http    21.118s
ok      net/http/cgi    3.002s
ok      net/http/cookiejar  0.151s
ok      net/http/fcgi   0.113s
ok      net/http/httptest   0.228s
ok      net/http/httputil   0.236s
?       net/http/pprof  [no test files]
ok      net/mail    0.152s
ok      net/rpc 0.272s
ok      net/rpc/jsonrpc 0.210s
ok      net/smtp    0.594s
ok      net/textproto   0.160s
ok      net/url 0.099s
ok      os  3.013s
ok      os/exec 2.334s
ok      os/signal   0.958s
ok      os/user 0.104s
ok      path    0.079s
ok      path/filepath   0.365s
ok      reflect 1.179s
ok      regexp  95.802s
ok      regexp/syntax   5.022s
--- FAIL: TestCgoCrashHandler (5.78 seconds)
    crash_test.go:85: output:
        # command-line-arguments
        /usr/bin/ld: /var/tmp/go-link-ef0Ati/000001.o: warning: duplicate section `.note.gnu.build-id' has different contents
        main: recovered done
        new-thread: recovered done
        second-new-thread: recovered done
        main-again: recovered done
        
        
        wanted:
        main: recovered done
        new-thread: recovered done
        second-new-thread: recovered done
        main-again: recovered done
--- FAIL: TestCgoSignalDeadlock (6.07 seconds)
    crash_cgo_test.go:25: expected "OK\n", but got "# command-line-arguments\n/usr/bin/ld: /var/tmp/go-link-8n809w/000001.o: warning: duplicate section `.note.gnu.build-id' has different contents\nOK\n"
--- FAIL: TestCgoTraceback (5.75 seconds)
    crash_cgo_test.go:33: expected "OK\n", but got "# command-line-arguments\n/usr/bin/ld: /var/tmp/go-link-d4EC4d/000001.o: warning: duplicate section `.note.gnu.build-id' has different contents\nOK\n"
FAIL
FAIL    runtime 99.083s
?       runtime/cgo [no test files]
ok      runtime/debug   0.118s
--- FAIL: TestCPUProfileMultithreaded (4.38 seconds)
    pprof_test.go:136: crc32.ChecksumIEEE: 0
    pprof_test.go:136: crc32.Update: 218
    pprof_test.go:150: crc32.ChecksumIEEE has 0 samples out of 218, want at least 1, ideally 109
FAIL
FAIL    runtime/pprof   17.817s
?       runtime/race    [no test files]
ok      sort    0.859s
ok      strconv 5.879s
ok      strings 1.549s
ok      sync    0.671s
ok      sync/atomic 0.671s
--- FAIL: TestRlimit (0.00 seconds)
    syscall_unix_test.go:270: Getrlimit: save failed: function not implemented
FAIL
FAIL    syscall 0.168s
ok      testing 1.119s
?       testing/iotest  [no test files]
ok      testing/quick   0.679s
ok      text/scanner    0.112s
ok      text/tabwriter  0.094s
ok      text/template   0.576s
ok      text/template/parse 0.155s
ok      time    7.160s
ok      unicode 0.080s
ok      unicode/utf16   0.060s
ok      unicode/utf8    0.105s
?       unsafe  [no test files]</pre>
<p dir="auto">by <strong>nekotaroh</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. invoke a http request whose total size is less than 4096byte(default buffuered size)
2. close this server side connection before sending 1's request is done
3. http.Request.write can't detect sending error

What is the expected output?
Flush's error

What do you see instead?
No error happend(next socket operations will fail)

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

Which operating system are you using?
Linux 3.0.0-12-server #20-Ubuntu SMP x86_64
Linux 2.6.18-238.12.1.el5.028stab091.1 #1 SMP x86_64

Which revision are you using?  (hg identify)
c1702f36df03+ (release-branch.r60) release/release.r60.3
4a8268927758 weekly/weekly.2011-12-22

Please provide any additional information below.
#2616's issue can't be fixed completely without fixing this issue. because can not
detect`pc.cc.Write(req)`'s error in (*persistConn).roundTrip.

attached a patch for r60.3</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/2645/0/request.patch" rel="nofollow">request.patch</a> (362 bytes)</li>
</ol>