seaweedfs/weed
Chris Lu f177cec509 avoid slice out of bounds
avoid this problem

2018/09/04 16:27:14 fuse: panic in handler for Write [ID=0x27c0d Node=0x2 Uid=0 Gid=0 Pid=0] 0x1 131072 @10607788032 fl=WriteCache lock=0 ffl=OpenReadOnly: runtime error: slice bounds out of range
goroutine 211141 [running]:
bazil.org/fuse/fs.(*Server).serve.func2(0x10d3e60, 0xc00014be30, 0xc00052fef8, 0xc00052fe77)
	/home/travis/gopath/src/bazil.org/fuse/fs/serve.go:857 +0x1ac
panic(0xe2d080, 0x17f62b0)
	/home/travis/.gimme/versions/go/src/runtime/panic.go:513 +0x1b9
github.com/chrislusf/seaweedfs/weed/filesys.(*ContinuousDirtyPages).saveToStorage(0xc0000aca80, 0x10d7ba0, 0xc0003fcc00, 0xc0005dc000, 0x20000, 0x1000000, 0x276720000, 0xc0003feaa0, 0x0, 0x0)
	/home/travis/gopath/src/github.com/chrislusf/seaweedfs/weed/filesys/dirty_page.go:142 +0x8ec
github.com/chrislusf/seaweedfs/weed/filesys.(*ContinuousDirtyPages).saveExistingPagesToStorage(0xc0000aca80, 0x10d7ba0, 0xc0003fcc00, 0x0, 0x0, 0x0)
	/home/travis/gopath/src/github.com/chrislusf/seaweedfs/weed/filesys/dirty_page.go:107 +0x6c
github.com/chrislusf/seaweedfs/weed/filesys.(*ContinuousDirtyPages).AddPage(0xc0000aca80, 0x10d7ba0, 0xc0003fcc00, 0x278460000, 0xc011966050, 0x20000, 0x20fb0, 0x6fc23ac00, 0x4a817c800, 0x0, ...)
	/home/travis/gopath/src/github.com/chrislusf/seaweedfs/weed/filesys/dirty_page.go:70 +0x8f
github.com/chrislusf/seaweedfs/weed/filesys.(*FileHandle).Write(0xc000548410, 0x10d7ba0, 0xc0003fcc00, 0xc00014be30, 0xc011946af8, 0x47fa01, 0x0)
	/home/travis/gopath/src/github.com/chrislusf/seaweedfs/weed/filesys/filehandle.go:141 +0x245
bazil.org/fuse/fs.(*Server).handleRequest(0xc0002cc0c0, 0x10d7ba0, 0xc0003fcc00, 0x10cb020, 0xc000394140, 0xc0000acac0, 0x10d3e60, 0xc00014be30, 0xc00052fef8, 0x10ca6a0, ...)
	/home/travis/gopath/src/bazil.org/fuse/fs/serve.go:1265 +0x1599
bazil.org/fuse/fs.(*Server).serve(0xc0002cc0c0, 0x10d3e60, 0xc00014be30)
	/home/travis/gopath/src/bazil.org/fuse/fs/serve.go:878 +0x410
bazil.org/fuse/fs.(*Server).Serve.func1(0xc0002cc0c0, 0x10d3e60, 0xc00014be30)
	/home/travis/gopath/src/bazil.org/fuse/fs/serve.go:425 +0x6e
created by bazil.org/fuse/fs.(*Server).Serve
	/home/travis/gopath/src/bazil.org/fuse/fs/serve.go:423 +0x321
2018-09-05 02:17:04 -07:00
..
command go fmt 2018-09-03 16:47:00 -07:00
filer2 fix a bug on error reporting 2018-08-22 18:19:26 -07:00
filesys avoid slice out of bounds 2018-09-05 02:17:04 -07:00
glog directory structure change to work with glide 2016-06-02 18:09:14 -07:00
images go fmt 2018-07-23 01:16:17 -07:00
msgqueue fix nil bug with filer.toml 2018-08-22 23:54:00 -07:00
operation fix compilation error 2018-07-28 18:34:15 -07:00
pb preparing to support S3 multipart uploads 2018-09-04 00:42:44 -07:00
s3api fix compilation error 2018-09-04 00:43:46 -07:00
security Revert "Adding HTTP verb whitelisting options." 2016-08-05 15:45:48 -06:00
sequence directory structure change to work with glide 2016-06-02 18:09:14 -07:00
server Update volume_server_handlers_read.go 2018-09-03 11:01:35 +08:00
stats directory structure change to work with glide 2016-06-02 18:09:14 -07:00
storage instant notification of new volumes added or deleted 2018-08-24 01:26:56 -07:00
tools fix all tests 2018-07-08 02:39:04 -07:00
topology send initial list of volume location 2018-07-28 01:17:35 -07:00
util prepare for 0.95 2018-09-03 20:52:52 -07:00
wdclient instant notification of new volumes added or deleted 2018-08-24 01:26:56 -07:00
glide.lock upgrading dependencies to latest versions 2018-06-28 22:03:47 -07:00
glide.yaml similar changes as master 2018-05-23 03:23:47 -07:00
weed.go fix compilation for go tip 2018-06-12 00:58:43 -07:00