[go-nuts] Re: runtime: found bad pointer in Go heap when not using CGO and -race reveals nothing

2024-07-22 Thread Kalen Krempely
Thanks Jason! After more head banging in trying to narrow things down and taking yet another look through the existing issue reports you linked to I was able to find the fix. We were using a struct which had a field with type `strings.Builder`. The strings.Builder docs

[go-nuts] runtime: found bad pointer in Go heap when not using CGO and -race reveals nothing

2024-07-18 Thread Kalen Krempely
My go program does not use any CGO, but is failing rather consistently with the following error. Disabling the garbage collector with `debug.SetGCPercent(-1)` "fixes" the issue. The main dependencies used are [bubbletea](https://github.com/charmbracelet/bubbletea) and [pgx](https://github.com

Re: [go-nuts] fstest.MapFS ReadDir does not set name field for entry.Name()

2022-04-02 Thread Kalen Krempely
ay to get the path from fs.FS. Is this common? Or am I miss understanding something? On Wednesday, March 23, 2022 at 2:12:24 PM UTC-7 Ian Lance Taylor wrote: > On Wed, Mar 23, 2022 at 2:01 PM Kalen Krempely wrote: > > > > I am trying to use fstest.MapFS to help with testing, but I noticed

[go-nuts] fstest.MapFS ReadDir does not set name field for entry.Name()

2022-03-23 Thread Kalen Krempely
I am trying to use fstest.MapFS to help with testing, but I noticed the mapfs implementation of ReadDir does not set the name field which is quite problematic as I rely on that in my code.