Skip to content

Instantly share code, notes, and snippets.

@alxschwarz
Created December 12, 2017 14:07
Show Gist options
  • Save alxschwarz/4bd2ab4961b06661bebf5d3d318af2bb to your computer and use it in GitHub Desktop.
Save alxschwarz/4bd2ab4961b06661bebf5d3d318af2bb to your computer and use it in GitHub Desktop.
goofys crash
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x85d42b]
goroutine 4202366 [running]:
github.com/kahing/goofys/internal.(*Buffer).readFromStream(0xc420be9640, 0xc420660018, 0x20000, 0x20000, 0x0, 0x0, 0xc4200140a0)
#011/home/khc/Code/go/src/github.com/kahing/goofys/internal/buffer_pool.go:360 +0xcb
github.com/kahing/goofys/internal.(*Buffer).Read(0xc420be9640, 0xc420660018, 0x20000, 0x20000, 0x0, 0xc57020, 0xc4200140a0)
#011/home/khc/Code/go/src/github.com/kahing/goofys/internal/buffer_pool.go:392 +0x426
io.ReadAtLeast(0xc570e0, 0xc420be9640, 0xc420660018, 0x20000, 0x20000, 0x20000, 0xc42014fc80, 0xc430c4c000, 0xd)
#011/usr/local/go/src/io/io.go:307 +0xa9
io.ReadFull(0xc570e0, 0xc420be9640, 0xc420660018, 0x20000, 0x20000, 0xc42001ed58, 0x657708, 0xc420d0a740)
#011/usr/local/go/src/io/io.go:325 +0x58
github.com/kahing/goofys/internal.(*S3ReadBuffer).Read(0xc50f6a4bc0, 0x281c000, 0xc420660018, 0x20000, 0x20000, 0x29fec77, 0xc42001ee20, 0x18)
#011/home/khc/Code/go/src/github.com/kahing/goofys/internal/file.go:304 +0x8c
github.com/kahing/goofys/internal.(*FileHandle).readFromReadAhead(0xc470dbe0d0, 0x281c000, 0xc420660018, 0x20000, 0x20000, 0xc42001eed8, 0xc42001ee88, 0x42966e)
#011/home/khc/Code/go/src/github.com/kahing/goofys/internal/file.go:328 +0xa2
github.com/kahing/goofys/internal.(*FileHandle).readFile(0xc470dbe0d0, 0x281c000, 0xc420660018, 0x20000, 0x20000, 0x0, 0x0, 0x0)
#011/home/khc/Code/go/src/github.com/kahing/goofys/internal/file.go:483 +0x334
github.com/kahing/goofys/internal.(*FileHandle).ReadFile(0xc470dbe0d0, 0x281c000, 0xc420660018, 0x20000, 0x20000, 0x0, 0x0, 0x0)
#011/home/khc/Code/go/src/github.com/kahing/goofys/internal/file.go:415 +0x256
github.com/kahing/goofys/internal.(*Goofys).ReadFile(0xc42011a9c0, 0x7f6a734b1d00, 0xc42cb47e30, 0xc422ee2e80, 0x0, 0x0)
#011/home/khc/Code/go/src/github.com/kahing/goofys/internal/goofys.go:890 +0xc5Dec 11 02:17:23 qa-pl-1 goofys[19574]: github.com/jacobsa/fuse/fuseutil.(*fileSystemServer).handleOp(0xc420198fe0, 0xc4201ba300, 0x7f6a734b1d00, 0xc42cb47e30, 0x8c6da0, 0xc422ee2e80)
#011/home/khc/Code/go/src/github.com/jacobsa/fuse/fuseutil/file_system.go:187 +0xadc
created by github.com/jacobsa/fuse/fuseutil.(*fileSystemServer).ServeOps
#011/home/khc/Code/go/src/github.com/jacobsa/fuse/fuseutil/file_system.go:121 +0x180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment