Skip to content

panic: runtime error: slice bounds out of range [:23814] with capacity 8192 #37

Description

@eMPee584

Doing recursive diffs on f.e. on two different tags does not end well:

Mounting filesystem...                                                                                                      
Filesystem successfully mounted into directory: ranger.mnt                                                                  
panic: runtime error: slice bounds out of range [:23814] with capacity 8192                                                 
                                                                                                                            
goroutine 167 [running]:                                                                                                    
github.com/dsxack/gitfs/nodes.FileHandler.Read({{0x7f139d370dc8?, 0xc001c5e510?}, 0xc002e86730?}, {0xc001541c38?, 0x40e50c?}
, {0xc00161a000, 0x2000, 0x2000}, 0x4000)                                                                                   
        /home/runner/work/gitfs/gitfs/nodes/file.go:100 +0x6fd                                                              
github.com/hanwen/go-fuse/v2/fs.(*rawBridge).Read(0x1?, 0xc002f221e0, 0xc000246d80, {0xc00161a000, 0x2000, 0x2000})         
        /home/runner/go/pkg/mod/github.com/hanwen/go-fuse/v2@v2.6.4/fs/bridge.go:859 +0x114                                 
github.com/hanwen/go-fuse/v2/fuse.doRead(0xc0001a0000?, 0xc000246c00)                                                       
        /home/runner/go/pkg/mod/github.com/hanwen/go-fuse/v2@v2.6.4/fuse/opcode.go:369 +0x4a                                
github.com/hanwen/go-fuse/v2/fuse.(*protocolServer).handleRequest(0xc0001a0000, 0xc000036ba0, 0xc000246c00)                 
        /home/runner/go/pkg/mod/github.com/hanwen/go-fuse/v2@v2.6.4/fuse/protocol-server.go:46 +0x262                       
github.com/hanwen/go-fuse/v2/fuse.(*Server).handleRequest(0xc0001a0000, 0xc000246c00)                                       
        /home/runner/go/pkg/mod/github.com/hanwen/go-fuse/v2@v2.6.4/fuse/server.go:558 +0x2a5                      
github.com/hanwen/go-fuse/v2/fuse.(*Server).loop(0xc0001a0000, 0x0?)
        /home/runner/go/pkg/mod/github.com/hanwen/go-fuse/v2@v2.6.4/fuse/server.go:533 +0x110
created by github.com/hanwen/go-fuse/v2/fuse.(*Server).readRequest in goroutine 166
        /home/runner/go/pkg/mod/github.com/hanwen/go-fuse/v2@v2.6.4/fuse/server.go:372 +0x47f

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions