Go 1.5 Beta 2 is released

4103 views
Skip to first unread message

Andrew Gerrand

unread,
Jul 17, 2015, 12:44:15 AM7/17/15
to golang-nuts
Hi Go nuts,

We have just released go1.5beta2, a beta version of Go 1.5.
It is cut from the master branch at the revision tagged go1.5beta2.

Please help us by testing your Go programs with the release, and report any problems using the issue tracker:

You can download binary and source distributions from the usual place:

MSI and PKG files are now available for Windows and OS X.
Please try them out.

To find out what has changed in Go 1.5, read the release notes:

Documentation for Go 1.5 is available at:

Our hope to release the final version of Go 1.5 in early August.

Andrew

HaWe

unread,
Jul 17, 2015, 9:07:55 AM7/17/15
to golan...@googlegroups.com
Hi,

I built Go (go1.5beta2) with ./all.bash and it works well AFAICS.
By the way, congrats to the successful C to Go conversion.

But you might be interested in errors I get during the package tests:

$ ./all.bash

...

ok      runtime 36.204s
ok      runtime/debug   0.068s
--- FAIL: TestTraceStress (4.73s)
        trace_test.go:226: failed to parse trace: p 4 is running before start (offset 322664, time 65700205)
--- FAIL: TestTraceStressStartStop (1.70s)
        trace_test.go:365: failed to parse trace: g 5 is not waiting during syscall exit (offset 190855, time 1924)
--- FAIL: TestTraceFutileWakeup (0.56s)
        trace_test.go:433: failed to parse trace: p 7 is running before start (offset 119705, time 13515283)
FAIL
FAIL    runtime/pprof   13.658s
ok      sort    0.102s
ok      strconv 0.436s
ok      strings 0.170s
ok      sync    0.179s
ok      sync/atomic     0.610s
ok      syscall 0.075s
ok      testing 2.399s
ok      testing/quick   0.044s
ok      text/scanner    0.010s
ok      text/tabwriter  0.016s
ok      text/template   0.055s
ok      text/template/parse     0.018s
ok      time    2.948s
ok      unicode 0.010s
ok      unicode/utf16   0.007s
ok      unicode/utf8    0.008s
ok      cmd/addr2line   2.795s
ok      cmd/api 0.042s
ok      cmd/asm/internal/asm    0.043s
ok      cmd/asm/internal/lex    0.004s
ok      cmd/compile/internal/big        2.936s
ok      cmd/cover       4.232s
ok      cmd/doc 0.028s
ok      cmd/fix 0.021s
ok      cmd/go  108.378s
ok      cmd/gofmt       0.071s
ok      cmd/internal/goobj      0.005s
ok      cmd/internal/obj        0.014s
ok      cmd/internal/obj/x86    0.021s
ok      cmd/internal/rsc.io/arm/armasm  0.010s
ok      cmd/internal/rsc.io/x86/x86asm  0.501s
ok      cmd/newlink     0.021s
ok      cmd/nm  2.267s
ok      cmd/objdump     8.034s
ok      cmd/pack        5.847s
ok      cmd/pprof/internal/profile      0.005s
ok      cmd/vet 11.152s
2015/07/17 14:40:13 Failed: exit status 1

$ go version
go version devel +cc8f544 Fri Jul 17 03:34:11 2015 +0000 linux/amd64
$ linuxinfo
Linux debianhp64 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24)
Zwei AMD Unknown 1000MHz Prozessoren, 3990.06 Bogomips gesamt, 2891 MB RAM
Systembibliothek 2.19.0


Brad Fitzpatrick

unread,
Jul 17, 2015, 12:10:34 PM7/17/15
to HaWe, golang-nuts

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

HaWe

unread,
Jul 17, 2015, 12:17:58 PM7/17/15
to golan...@googlegroups.com
Right. Thanks.

Peter Kleiweg

unread,
Jul 17, 2015, 12:38:42 PM7/17/15
to golan...@googlegroups.com
Op vrijdag 17 juli 2015 06:44:15 UTC+2 schreef Andrew Gerrand:

Hi Go nuts,

We have just released go1.5beta2, a beta version of Go 1.5.
It is cut from the master branch at the revision tagged go1.5beta2.

Rebuilding my packages, I get a lot of this:

    imports C: unrecognized import path "C"


alex...@mosoi.ro

unread,
Jul 20, 2015, 8:11:32 PM7/20/15
to golan...@googlegroups.com
My personal pet project, a chess engine written in go got a nice 11% speedup with go1.5 vs go1.4 (1 CPU). 

$ benchstat go14.txt go15.txt 
name             old time/op  new time/op  delta
PositionFromFEN  32.3µs ± 3%  29.3µs ± 5%   -9.36%  (p=0.000 n=10+10)
StallingFENs     2.58ms ± 4%  2.22ms ± 3%  -13.91%  (p=0.000 n=10+10)
Game             25.9ms ± 2%  23.0ms ± 3%  -11.32%  (p=0.000 n=10+10)
Score             610µs ± 1%   560µs ± 0%   -8.18%   (p=0.000 n=9+10)
SEESlow          37.1µs ± 4%  28.8µs ± 4%  -22.55%  (p=0.000 n=10+10)
SEEFast          2.26µs ± 3%  1.73µs ± 6%  -23.67%  (p=0.000 n=10+10)

There is little garbage collection going on, so it didn't benefit from the GC improvements. It think most of the speedup comes from the transitive inlining https://go-review.googlesource.com/#/c/5952/ since the binary is also 10% larger (3415624 in go1.4 vs 3722112 in go1.5) and many small functions have now disappeared from the profile.

Nate Finch

unread,
Jul 20, 2015, 10:06:34 PM7/20/15
to golan...@googlegroups.com
Building Juju takes me 23s in go 1.4.2 .... now it takes 1m4s in 1.5 ....  I had hoped the slowdown in build times wouldn't be quite so dramatic.  I guess the answer is - use 1.4 for dev builds and 1.5 for release :/

Livio Soares

unread,
Jul 20, 2015, 11:06:17 PM7/20/15
to golan...@googlegroups.com
Hi,

I'm seeing some flakiness with the 1.5 betas, as well as current master/HEAD. I see two issues that may or may not be related, but it sounds like they could be:

1) My application gets quite a few I/O timeouts from socket connections to remote servers. With 1.4.2 things work smoothly. Not sure how to dissect this into a small program so I can share.

2) Keep getting consistent error in the same test (during compilation: ./all.bash). The output of the error is below.

Let me know if I should open an issue,

Thanks,

Livio


panic: test timed out after 3m0s

goroutine 346 [running]:
testing.startAlarm.func1()
/src/go/go.git/src/testing/testing.go:702 +0x132
created by time.goFunc
/src/go/go.git/src/time/sleep.go:129 +0x3a

goroutine 1 [chan receive]:
testing.RunTests(0xaaa620, 0xc57520, 0x7e, 0x7e, 0x1)
/src/go/go.git/src/testing/testing.go:561 +0x8ad
testing.(*M).Run(0xc8205c7ee8, 0x6)
/src/go/go.git/src/testing/testing.go:493 +0x70
cmd/go_test.TestMain(0xc8205c7ee8)
/src/go/go.git/src/cmd/go/go_test.go:89 +0x627
main.main()
cmd/go/_test/_testmain.go:304 +0x113

goroutine 17 [syscall, 1 minutes, locked to thread]:
runtime.goexit()
/src/go/go.git/src/runtime/asm_amd64.s:1696 +0x1

goroutine 5 [syscall, 1 minutes]:
os/signal.loop()
/src/go/go.git/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/src/go/go.git/src/os/signal/signal_unix.go:28 +0x37

goroutine 64 [chan receive, 1 minutes]:
testing.RunTests.func1(0xc820018780, 0xc8201e4e10)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 291 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc82009e2d0)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 35 [chan receive, 1 minutes]:
testing.(*T).Parallel(0xc82009ee10)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc82019c8c0)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestFileLineInErrorMessages(0xc82009ee10)
/src/go/go.git/src/cmd/go/go_test.go:601 +0x6e
testing.tRunner(0xc82009ee10, 0xc575f8)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 36 [chan receive, 1 minutes]:
testing.RunTests.func1(0xc820018780, 0xc82009ee10)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 37 [chan receive, 1 minutes]:
testing.(*T).Parallel(0xc82009eea0)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc82019ca00)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestProgramNameInCrashMessages(0xc82009eea0)
/src/go/go.git/src/cmd/go/go_test.go:615 +0x63
testing.tRunner(0xc82009eea0, 0xc57610)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 38 [chan receive, 1 minutes]:
testing.RunTests.func1(0xc820018780, 0xc82009eea0)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 61 [chan receive, 1 minutes]:
testing.(*T).Parallel(0xc8201e4d80)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc8201d2dc0)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestGoInstallRebuildsStalePackagesInOtherGOPATH(0xc8201e4d80)
/src/go/go.git/src/cmd/go/go_test.go:701 +0x7d
testing.tRunner(0xc8201e4d80, 0xc57688)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 62 [chan receive, 1 minutes]:
testing.RunTests.func1(0xc820018780, 0xc8201e4d80)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 63 [chan receive, 1 minutes]:
testing.(*T).Parallel(0xc8201e4e10)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc8201d2f00)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestGoInstallDetectsRemovedFiles(0xc8201e4e10)
/src/go/go.git/src/cmd/go/go_test.go:731 +0x63
testing.tRunner(0xc8201e4e10, 0xc576a0)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 42 [chan receive, 1 minutes]:
testing.(*T).Parallel(0xc82009f200)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc82019cdc0)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestGoInstallDetectsRemovedFilesInPackageMain(0xc82009f200)
/src/go/go.git/src/cmd/go/go_test.go:773 +0x63
testing.tRunner(0xc82009f200, 0xc576d0)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 160 [chan receive]:
testing.(*T).Parallel(0xc820550000)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc82019c280)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestGoTestWithPackageListedMultipleTimes(0xc820550000)
/src/go/go.git/src/cmd/go/go_test.go:1280 +0x7a
testing.tRunner(0xc820550000, 0xc57a60)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 43 [chan receive, 1 minutes]:
testing.RunTests.func1(0xc820018780, 0xc82009f200)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 241 [chan receive]:
testing.(*T).Parallel(0xc820551a70)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc8200bbb80)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestLdflagsArgumentsWithSpacesIssue3941(0xc820551a70)
/src/go/go.git/src/cmd/go/go_test.go:1413 +0x63
testing.tRunner(0xc820551a70, 0xc57b80)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 161 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc820550000)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 242 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc820551a70)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 249 [chan receive]:
testing.(*T).Parallel(0xc8205722d0)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc820494280)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestGoTestDashCDashOControlsBinaryLocation(0xc8205722d0)
/src/go/go.git/src/cmd/go/go_test.go:1444 +0x63
testing.tRunner(0xc8205722d0, 0xc57bc8)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 251 [chan receive]:
testing.(*T).Parallel(0xc820572360)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc8204943c0)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestGoTestDashOWritesBinary(0xc820572360)
/src/go/go.git/src/cmd/go/go_test.go:1453 +0x63
testing.tRunner(0xc820572360, 0xc57be0)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 250 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc8205722d0)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 252 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc820572360)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 256 [chan receive]:
testing.(*T).Parallel(0xc820572900)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc820494780)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestInstallWithTags(0xc820572900)
/src/go/go.git/src/cmd/go/go_test.go:1483 +0x7a
testing.tRunner(0xc820572900, 0xc57c10)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 257 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc820572900)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 258 [chan receive]:
testing.(*T).Parallel(0xc820572990)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc8204948c0)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestCaseCollisions(0xc820572990)
/src/go/go.git/src/cmd/go/go_test.go:1510 +0x6e
testing.tRunner(0xc820572990, 0xc57c28)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 259 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc820572990)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 112 [chan receive]:
testing.(*T).Parallel(0xc82009e240)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc8203c0280)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestCgoShowsFullPathNames(0xc82009e240)
/src/go/go.git/src/cmd/go/go_test.go:1756 +0x16d
testing.tRunner(0xc82009e240, 0xc57d30)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 290 [chan receive]:
testing.(*T).Parallel(0xc82009e2d0)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc8203c03c0)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestCgoHandlesWlORIGIN(0xc82009e2d0)
/src/go/go.git/src/cmd/go/go_test.go:1773 +0x16d
testing.tRunner(0xc82009e2d0, 0xc57d48)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 113 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc82009e240)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 282 [chan receive]:
testing.(*T).Parallel(0xc820573680)
/src/go/go.git/src/testing/testing.go:421 +0x7c
cmd/go_test.(*testgoData).parallel(0xc820495900)
/src/go/go.git/src/cmd/go/go_test.go:170 +0x4d8
cmd/go_test.TestBuildDashIInstallsDependencies(0xc820573680)
/src/go/go.git/src/cmd/go/go_test.go:1843 +0x63
testing.tRunner(0xc820573680, 0xc57dd8)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 302 [syscall]:
syscall.Syscall6(0x3d, 0x7ba, 0xc82006191c, 0x0, 0xc82009f3b0, 0x0, 0x0, 0xc8200618f0, 0xc8200618f8, 0xc8200618e8)
/src/go/go.git/src/syscall/asm_linux_amd64.s:44 +0x5
syscall.wait4(0x7ba, 0xc82006191c, 0x0, 0xc82009f3b0, 0x90, 0x0, 0x0)
/src/go/go.git/src/syscall/zsyscall_linux_amd64.go:172 +0x72
syscall.Wait4(0x7ba, 0xc820061964, 0x0, 0xc82009f3b0, 0xc8200401f8, 0x0, 0x0)
/src/go/go.git/src/syscall/syscall_linux.go:256 +0x55
os.(*Process).wait(0xc8203e1660, 0x32, 0x0, 0x0)
/src/go/go.git/src/os/exec_unix.go:22 +0x105
os.(*Process).Wait(0xc8203e1660, 0x0, 0x0, 0x0)
/src/go/go.git/src/os/doc.go:45 +0x2d
os/exec.(*Cmd).Wait(0xc8203c0f00, 0x0, 0x0)
/src/go/go.git/src/os/exec/exec.go:379 +0x211
os/exec.(*Cmd).Run(0xc8203c0f00, 0x0, 0x0)
/src/go/go.git/src/os/exec/exec.go:257 +0x64
cmd/go_test.(*testgoData).doRun(0xc8203c0c80, 0xc820574c80, 0x4, 0x4, 0x0, 0x0)
/src/go/go.git/src/cmd/go/go_test.go:255 +0x60e
cmd/go_test.(*testgoData).run(0xc8203c0c80, 0xc820574c80, 0x4, 0x4)
/src/go/go.git/src/cmd/go/go_test.go:270 +0x57
cmd/go_test.TestGoTestRaceInstallCgo(0xc82009f170)
/src/go/go.git/src/cmd/go/go_test.go:2131 +0x47a
testing.tRunner(0xc82009f170, 0xc57fd0)
/src/go/go.git/src/testing/testing.go:455 +0x98
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:560 +0x86d

goroutine 283 [chan receive]:
testing.RunTests.func1(0xc820018780, 0xc820573680)
/src/go/go.git/src/testing/testing.go:564 +0x47
created by testing.RunTests
/src/go/go.git/src/testing/testing.go:565 +0x90e

goroutine 305 [syscall]:
syscall.Syscall(0x0, 0x4, 0xc820204600, 0x600, 0x0, 0x200, 0x0)
/src/go/go.git/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.read(0x4, 0xc820204600, 0x600, 0x600, 0x0, 0x0, 0x0)
/src/go/go.git/src/syscall/zsyscall_linux_amd64.go:783 +0x5f
syscall.Read(0x4, 0xc820204600, 0x600, 0x600, 0x40bf31, 0x0, 0x0)
/src/go/go.git/src/syscall/syscall_unix.go:160 +0x4d
os.(*File).read(0xc8200401d8, 0xc820204600, 0x600, 0x600, 0x0, 0x0, 0x0)
/src/go/go.git/src/os/file_unix.go:211 +0x53
os.(*File).Read(0xc8200401d8, 0xc820204600, 0x600, 0x600, 0x1, 0x0, 0x0)
/src/go/go.git/src/os/file.go:95 +0x8a
bytes.(*Buffer).ReadFrom(0xc8203c0ce0, 0x7f93006e4578, 0xc8200401d8, 0x0, 0x0, 0x0)
/src/go/go.git/src/bytes/buffer.go:173 +0x23f
io.copyBuffer(0x7f92fe69c250, 0xc8203c0ce0, 0x7f93006e4578, 0xc8200401d8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/src/go/go.git/src/io/io.go:375 +0x180
io.Copy(0x7f92fe69c250, 0xc8203c0ce0, 0x7f93006e4578, 0xc8200401d8, 0x0, 0x0, 0x0)
/src/go/go.git/src/io/io.go:351 +0x64
os/exec.(*Cmd).writerDescriptor.func1(0x0, 0x0)
/src/go/go.git/src/os/exec/exec.go:232 +0x80
os/exec.(*Cmd).Start.func1(0xc8203e1340, 0xc8203c0f00)
/src/go/go.git/src/os/exec/exec.go:339 +0x1d
created by os/exec.(*Cmd).Start
/src/go/go.git/src/os/exec/exec.go:340 +0x96d

goroutine 354 [syscall]:
syscall.Syscall(0x0, 0x6, 0xc82020e000, 0x200, 0x0, 0x0, 0x5)
/src/go/go.git/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.read(0x6, 0xc82020e000, 0x200, 0x200, 0xaa9768, 0x0, 0x0)
/src/go/go.git/src/syscall/zsyscall_linux_amd64.go:783 +0x5f
syscall.Read(0x6, 0xc82020e000, 0x200, 0x200, 0x40bf31, 0x0, 0x0)
/src/go/go.git/src/syscall/syscall_unix.go:160 +0x4d
os.(*File).read(0xc8200401f0, 0xc82020e000, 0x200, 0x200, 0xc8203c0c80, 0x0, 0x0)
/src/go/go.git/src/os/file_unix.go:211 +0x53
os.(*File).Read(0xc8200401f0, 0xc82020e000, 0x200, 0x200, 0x0, 0x0, 0x0)
/src/go/go.git/src/os/file.go:95 +0x8a
bytes.(*Buffer).ReadFrom(0xc8203c0d50, 0x7f93006e4578, 0xc8200401f0, 0x0, 0x0, 0x0)
/src/go/go.git/src/bytes/buffer.go:173 +0x23f
io.copyBuffer(0x7f92fe69c250, 0xc8203c0d50, 0x7f93006e4578, 0xc8200401f0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/src/go/go.git/src/io/io.go:375 +0x180
io.Copy(0x7f92fe69c250, 0xc8203c0d50, 0x7f93006e4578, 0xc8200401f0, 0x8, 0x0, 0x0)
/src/go/go.git/src/io/io.go:351 +0x64
os/exec.(*Cmd).writerDescriptor.func1(0x0, 0x0)
/src/go/go.git/src/os/exec/exec.go:232 +0x80
os/exec.(*Cmd).Start.func1(0xc8203e1380, 0xc8203c0f00)
/src/go/go.git/src/os/exec/exec.go:339 +0x1d
created by os/exec.(*Cmd).Start
/src/go/go.git/src/os/exec/exec.go:340 +0x96d
FAIL cmd/go 190.596s


On Friday, July 17, 2015 at 12:44:15 AM UTC-4, Andrew Gerrand wrote:

Ian Lance Taylor

unread,
Jul 21, 2015, 12:03:49 AM7/21/15
to Livio Soares, golang-nuts
2015-07-20 18:53 GMT-07:00 Livio Soares <liv...@gmail.com>:
>
> 1) My application gets quite a few I/O timeouts from socket connections to
> remote servers. With 1.4.2 things work smoothly. Not sure how to dissect
> this into a small program so I can share.

If you can identify the problem more clearly, please do open an
issue.


> 2) Keep getting consistent error in the same test (during compilation:
> ./all.bash). The output of the error is below.

...

> panic: test timed out after 3m0s

...

> FAIL cmd/go 190.596s

This is https://golang.org/issue/11779 , which I hope is now fixed.
If you are still seeing after the changes committed today, please
reopen that issue and see the request in there for how to run the test
to get more information. It's not a serious bug, just a long running
testsuite.

Ian

Livio Soares

unread,
Jul 21, 2015, 10:15:50 PM7/21/15
to golang-nuts
Hi Ian,

Thanks for the reply,

On Tuesday, July 21, 2015 at 12:03:49 AM UTC-4, Ian Lance Taylor wrote:
2015-07-20 18:53 GMT-07:00 Livio Soares <liv...@gmail.com>:
 
[...]

> 2) Keep getting consistent error in the same test (during compilation:
> ./all.bash). The output of the error is below.

...

> panic: test timed out after 3m0s

...

> FAIL cmd/go 190.596s

This is https://golang.org/issue/11779 , which I hope is now fixed.
If you are still seeing after the changes committed today, please
reopen that issue and see the request in there for how to run the test
to get more information.  It's not a serious bug, just a long running
testsuite.

Interesting. 180 seconds was not enough, and I increased the timeout to 300 seconds. After which, I observed that the 'cmd/go' test indeed passed after 207 seconds. And I'm not running this on a Raspberry Pi; this is a 8-core Intel Xeon E5-2650.

Ok, looks like an innocuous issue, as you say. Will go back to trying to reproduce a small example of my application getting network timeouts.

Livio 

hemant.c...@gmail.com

unread,
Jul 23, 2015, 11:58:07 AM7/23/15
to golang-nuts, a...@golang.org
Hi,
I used win64 binaries and compiled my project & got the following errors:

c:\go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1

c:/mingw/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lRFA_x64

collect2.exe: error: ld returned 1 exit status


After this when I switched back my binaries to go1.4.2 it doesnt work either. It throws following error. 

.\msf.go:5: import C:\Projects\MSF2\msf2svn\pkg\windows_amd64/alerting/server.a: object is [windows amd64 go1.5beta2 X:none] expected [windows amd64 go1.4.2 X:precisestack]

I did clean all but it didn't help.

zhuxues...@gmail.com

unread,
Jul 23, 2015, 12:14:19 PM7/23/15
to golang-nuts, a...@golang.org
hi,

I'm testing go1.5beta2, and it reported the following error on:

func main() {
    var s uint
    s = 2
    t := float32(1<<s)
    fmt.Println(t)
}

# command-line-arguments
.\hello.go:15: invalid operation: 1 << s (shift of type float32)

But fmt.Println(1<<2) is ok.

If I test this on http://golang.org/, Try go sandbox (go 1.4.2)
Similar error is reported:
# command-line-arguments
/tmp/sandbox544236803/main.go:10: invalid operation: 1 << s (shift of type float32)

I don't know if it is a error, or designed like so.

Thanks.

alb.do...@gmail.com

unread,
Jul 23, 2015, 1:39:35 PM7/23/15
to golang-nuts, a...@golang.org, zhuxues...@gmail.com
This is expected. Spec:

"If the left operand of a non-constant shift expression is an untyped constant,
the type of the constant is what it would be if the shift expression were replaced
by its left operand alone."

var v float32 = 1<<s   // illegal: 1 has type float32, cannot shift

Ian Lance Taylor

unread,
Jul 23, 2015, 1:55:31 PM7/23/15
to zhuxues...@gmail.com, golang-nuts, Andrew Gerrand
On Thu, Jul 23, 2015 at 4:46 AM, <zhuxues...@gmail.com> wrote:
>
> I'm testing go1.5beta2, and it reported the following error on:
>
> func main() {
> var s uint
> s = 2
> t := float32(1<<s)
> fmt.Println(t)
> }
>
> # command-line-arguments
> .\hello.go:15: invalid operation: 1 << s (shift of type float32)
>
> But fmt.Println(1<<2) is ok.
>
> If I test this on http://golang.org/, Try go sandbox (go 1.4.2)
> Similar error is reported:
>
> # command-line-arguments
> /tmp/sandbox544236803/main.go:10: invalid operation: 1 << s (shift of type
> float32)
>
>
> I don't know if it is a error, or designed like so.

This is how shift expressions of untyped constants work. It is
unchanged from Go 1.4.

Yes, it can be confusing.

Given a shift of an untyped constant, where the right hand side of the
shift is not a constant, the question is: what should the type of the
constant be? The answer is: pretend that the untyped constant were
used without a shift. That is the type. Then add the shift back in.

So, in
t := float32(1<<s)
what is the type of the untyped constant 1? Pretend that the
statement was
t := float32(1)
In that case, the type of the untyped constant 1 would be float32.
Then restore the original statement, but this time use a type:
t := float32(float32(1) << s)
Now you get an error.

The solution is to use a type yourself, as in
t := float32(int(1) << s)

Ian

zhuxues...@gmail.com

unread,
Jul 26, 2015, 9:19:23 PM7/26/15
to golang-nuts, a...@golang.org, ia...@golang.org
Thanks for your detailed explanation, Ian and Autres.
Reply all
Reply to author
Forward
0 new messages