Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log/syslog: send on closed chan #4832

Closed
dvyukov opened this issue Feb 17, 2013 · 3 comments
Closed

log/syslog: send on closed chan #4832

dvyukov opened this issue Feb 17, 2013 · 3 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Feb 17, 2013

parent: 15771:0adf91947752 tip
darwin/amd64

$ while ./syslog.test -test.v -test.cpu=1,2,3,4,5,11,97; do true; done;

eventually crashes with:
=== RUN TestConcurrentReconnect-97
panic: runtime error: send on closed channel

goroutine 368 [running]:
log/syslog.func·001(0xc2000ef180, 0xc2000ef188, 0xc200081c60, 0xc200075928, 0x0, ...)
        /Users/dvyukov/src/go2/src/pkg/log/syslog/syslog_test.go:67 +0x162
created by log/syslog.runStreamSyslog
        /Users/dvyukov/src/go2/src/pkg/log/syslog/syslog_test.go:70 +0x164

I've attached the full dump.

Attachments:

  1. bug.txt (44179 bytes)
@ianlancetaylor
Copy link
Contributor

Comment 1:

I just saw this as well.
panic: runtime error: send on closed channel
goroutine 48 [running]:
log/syslog.func·001(0xc2000d0060, 0xc20008ff08)
    /home/iant/go/src/pkg/log/syslog/syslog_test.go:67 +0x16e
created by log/syslog.runStreamSyslog
    /home/iant/go/src/pkg/log/syslog/syslog_test.go:70 +0x17b

Labels changed: added priority-soon, go1.1, packagebug, removed priority-triage, go1.1maybe.

Attachments:

  1. foo.txt (8323 bytes)

@ianlancetaylor
Copy link
Contributor

Comment 2:

In my case revision 15935:2bf8d07c14c1 on amd64 GNU/Linux.

@adg
Copy link
Contributor

adg commented Feb 27, 2013

Comment 3:

Status changed to Duplicate.

Merged into issue #4769.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants