-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
btw |
@rade ok, I filed iovisor/gobpf#69 for this. |
I agree with @rade . I think it's worth fixing it now, but I am fine with fixing it later if you prefer. |
idiomatic close in gobpf PR iovisor/gobpf#70 I'll update this PR shortly. |
PerfMap's PollStop() documentation says the channel should be closed after calling PollStop(): https://github.com/iovisor/gobpf/blob/d0a3e1b/elf/perf.go#L241-L242 This is solving a leaking go routine issue in Scope: weaveworks/scope#2735 (comment)
Includes all gobpf changes up to iovisor/gobpf#70
3b3922b
to
b217e27
Compare
This includes: - weaveworks/tcptracer-bpf#49 tracer: close channels on Stop() - iovisor/gobpf#70 perf: close go channels idiomatically
I updated the gobpf vendoring. I needed to change the It was working fine for a while but now I got another panic:
I am checking this... |
This PR should be rethought.. |
@alban you beat me to quoting that :) |
Waiting for iovisor/gobpf#71 |
Closing in favor of #50 |
PerfMap's PollStop() documentation says the channel should be closed
after calling PollStop():
https://github.com/iovisor/gobpf/blob/d0a3e1b/elf/perf.go#L241-L242
This is solving a leaking go routine issue in Scope:
weaveworks/scope#2735 (comment)
/cc @iaguis @2opremio @schu