I am trying to loop through a very large directory and build a list of 
files from Palantir using a simple go filepath.Walk(). Thats it really. 
Nothing complex... but it seems we have a memory leak or something?

Any ideas why this might be happening?

fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x8a781e0 pc=0xad315]

runtime stack:
runtime/internal/atomic.Load64(0x8a781e0, 0x8a781e3b25e)
    /usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:26 +0x5

goroutine 1 [running]:
runtime.systemstack_switch()
    /usr/local/go/src/runtime/asm_amd64.s:245 fp=0xc82003f4a8 
sp=0xc82003f4a0
runtime.gcAssistAlloc(0xc820000180)
    /usr/local/go/src/runtime/mgcmark.go:425 +0x180 fp=0xc82003f528 
sp=0xc82003f4a8
runtime.mallocgc(0x85, 0xfad20, 0x1, 0x0)
    /usr/local/go/src/runtime/malloc.go:537 +0x184 fp=0xc82003f600 
sp=0xc82003f528
runtime.newarray(0xfad20, 0x85, 0x186187)
    /usr/local/go/src/runtime/malloc.go:798 +0xc9 fp=0xc82003f640 
sp=0xc82003f600
runtime.makeslice(0xf3dc0, 0x85, 0x85, 0x0, 0x0, 0x0)
    /usr/local/go/src/runtime/slice.go:32 +0x165 fp=0xc82003f690 
sp=0xc82003f640
syscall.ByteSliceFromString(0xc8248c63f0, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:53 +0x126 fp=0xc82003f718 
sp=0xc82003f690
syscall.BytePtrFromString(0xc8248c63f0, 0x84, 0x84, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:69 +0x3b fp=0xc82003f758 
sp=0xc82003f718
syscall.Lstat(0xc8248c63f0, 0x84, 0xc8248bf7c8, 0x0, 0x0)
    /usr/local/go/src/syscall/zsyscall_darwin_amd64.go:767 +0x40 
fp=0xc82003f7b8 sp=0xc82003f758
os.Lstat(0xc8248c63f0, 0x84, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/file_unix.go:183 +0x6f fp=0xc82003f810 
sp=0xc82003f7b8
path/filepath.walk(0xc8248a0000, 0x63, 0x2d8140, 0xc82489d6c0, 
0xc820062180, 0x0, 0x0)
    /usr/local/go/src/path/filepath/path.go:368 +0x3a3 fp=0xc82003f948 
sp=0xc82003f810
path/filepath.walk(0xc8244ff8f0, 0x61, 0x2d8140, 0xc8247f35f0, 
0xc820062180, 0x0, 0x0)
    /usr/local/go/src/path/filepath/path.go:374 +0x4fc fp=0xc82003fa80 
sp=0xc82003f948
path/filepath.walk(0xc8200b00c0, 0x5f, 0x2d8140, 0xc823bcbe10, 
0xc820062180, 0x0, 0x0)
    /usr/local/go/src/path/filepath/path.go:374 +0x4fc fp=0xc82003fbb8 
sp=0xc82003fa80
path/filepath.walk(0xc8200b0060, 0x5d, 0x2d8140, 0xc820068dd0, 
0xc820062180, 0x0, 0x0)
    /usr/local/go/src/path/filepath/path.go:374 +0x4fc fp=0xc82003fcf0 
sp=0xc82003fbb8
path/filepath.Walk(0xc8200b0060, 0x5d, 0xc820062180, 0x0, 0x0)
    /usr/local/go/src/path/filepath/path.go:396 +0xe1 fp=0xc82003fd58 
sp=0xc82003fcf0
main.main()
    
/Users/matt/Desktop/projects/javelin/critical-threats/critical-threats-configurations/palantir/run.go:49
 
+0x414 fp=0xc82003ff50 sp=0xc82003fd58
runtime.main()
    /usr/local/go/src/runtime/proc.go:188 +0x2b0 fp=0xc82003ffa0 
sp=0xc82003ff50
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82003ffa8 
sp=0xc82003ffa0
exit status 2

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to