Re: [go-nuts] Re: Checking if two map variables refer to the same map

2020-03-13 Thread dtracers
I have a use for this that is not covered it seems. So basically I am runnning a code that may or may not create a map depending on if it needs to fill it with items. However I always need a map that is initialized in future downpath code. ( i use it in a range statement that just noops if it i

[go-nuts] Re: go tip: random high CPU usage on VirtualBox

2020-03-13 Thread Ian Lance Taylor
On Fri, Mar 13, 2020 at 1:05 AM Mhd Shulhan wrote: > > > > > On 12 Mar 2020, at 13.13, Mhd Shulhan wrote: > > > > > >> My question is any one have idea how to debug this so I can provide more > >> detailed report? > >> > >> Thank you in advance. > > > > So, I try to debug with gdb 9.1. Here is t

Re: [go-nuts] Re: McAfee and the module cache on WSL: rename : permission denied

2020-03-13 Thread Chris Burkert
Hello Alex, this describes exactly my issue. I am going to test if the workarounds in tip solve my case and also ask my companies IT department to exclude %LOCALAPPDATA%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc from the scanning. Hello Jonathan, thanks for the links. I learned

[go-nuts] Re: McAfee and the module cache on WSL: rename : permission denied

2020-03-13 Thread brainman
On Friday, 13 March 2020 08:58:24 UTC+11, Chris Burkert wrote: > > Dear all, > > besides other environments I have a company laptop running Windows 10 > Enterprise with WSL and Ubuntu. In Ubuntu I installed Go 1.14 and wanted to > play around with Gio for fun. However it seems that McAfee doesn't

Re: [go-nuts] SFTPGo: a Golang performance story and some questions

2020-03-13 Thread Jesper Louis Andersen
On Thu, Mar 12, 2020 at 12:45 AM Nicola Murino wrote: > > what I understand reading that issue is that sync.Pool is not the best > choice to store variable-length buffers and my first allocator > implementation accepts buffers of any size, each received packet can > have different sizes (between

Re: [go-nuts] Re: Where is the version number for a golang module declared?

2020-03-13 Thread Wojciech S. Czarnecki
Dnia 2020-03-12, o godz. 19:11:48 Nick napisaƂ(a): > Forgive my ignorance, but why aren't gohack and > in the go.mod file perfectly good replacements for these use cases? > I get the feeling I'm missing something... > why aren't gohack Gohack is an invaluable tool to hack around without ne

Re: [go-nuts] Re: Mem-Leak in Go method

2020-03-13 Thread Michael Jones
hi. get the time at the start, check the elapsed time in your infinite loop, and trigger the write/exit after a minute, 10 minutes, 100 minutes, ... On Fri, Mar 13, 2020 at 5:45 AM Nitish Saboo wrote: > Hi Michael, > > Thanks for your response. > > That code looks wrong. I see the end but not th

Re: [go-nuts] Re: Mem-Leak in Go method

2020-03-13 Thread Nitish Saboo
Hi Michael, Thanks for your response. That code looks wrong. I see the end but not the start. Look here and copy carefully: >>Since I did not want cpu profiling I omitted the start of the code and just added memory profiling part. Call at end, on way out. >>Oh yes, I missed that.I have to call

[go-nuts] Re: Could not attach to pid:#### this could be caused by a kernel security setting, try writing "0" to /proc/sys/kernel/yama/ptrace_scope

2020-03-13 Thread Brian Candler
On Friday, 13 March 2020 07:45:57 UTC, Anjana Prabhakar wrote: > > Can someone help me out how to proceed further. > > Erm, why don't you try writing "0" to /proc/sys/kernel/yama/ptrace_scope ? echo "0" >/proc/sys/kernel/yama/ptrace_scope -- You received this message because you are subscribed t

Re: [go-nuts] An important proposal will fail without your support

2020-03-13 Thread 'Axel Wagner' via golang-nuts
On Fri, Mar 13, 2020 at 5:48 AM Jon Perryman wrote: > This comment is from the proposal. Not one person has disagreed with "very > powerful". If you disagree, please say why? How is this not far more > powerful than GO GENERATE, pre-processors and macro's? > No one is disagreeing with that, beca

[go-nuts] Re: go tip: random high CPU usage on VirtualBox

2020-03-13 Thread Mhd Shulhan
> On 12 Mar 2020, at 13.13, Mhd Shulhan wrote: > > >> My question is any one have idea how to debug this so I can provide more >> detailed report? >> >> Thank you in advance. > > So, I try to debug with gdb 9.1. Here is the sample of stack when the CPU > got high, > > ... > [New LWP 1885

[go-nuts] Could not attach to pid:#### this could be caused by a kernel security setting, try writing "0" to /proc/sys/kernel/yama/ptrace_scope

2020-03-13 Thread Anjana Prabhakar
Hi All, I am trying to use the debug with attach option of VSCode using Go extension. The application based on go that is running is the tendermint blockchain network. on using the run and debug with attach option, I get the following error " Could not attach to pid: this could be caused by