Issues

Issue #62 resolved

Mounting problem

tapu
created an issue
tapu@tapu-server:~/tmsu/tmsu$ tmsu version
TMSU 0.3.0 (52888259a15a tip)

Copyright © 2011-2013 Paul Ruane.

This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
See the accompanying COPYING file for further details.
tapu@tapu-server:~/tmsu/tmsu$ tmsu mount /media/disk2Hitachi2TB/testTags/
tmsu: could not mount database at '/media/disk2Hitachi2TB/testTags/': virtual filesystem mount failed: panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x70 pc=0x4a5d61]

goroutine 1 [running]:
tmsu/vfs.(*FuseVfs).OnMount(0xc20008e660, 0xc2000a7910)
        /home/tapu/tmsu/tmsu/src/tmsu/vfs/fusevfs.go:0 +0x31
github.com/hanwen/go-fuse/fuse/pathfs.(*PathNodeFs).OnMount(0xc2000a7910, 0xc20006b7c0)
        /home/tapu/gopath/src/github.com/hanwen/go-fuse/fuse/pathfs/pathfs.go:112 +0x3c
github.com/hanwen/go-fuse/fuse/nodefs.(*FileSystemConnector).mountRoot(0xc20006b7c0, 0xc2000a7960, 0xc2000a7910, 0xc20008e690)
        /home/tapu/gopath/src/github.com/hanwen/go-fuse/fuse/nodefs/fsconnector.go:255 +0x71
github.com/hanwen/go-fuse/fuse/nodefs.NewFileSystemConnector(0xc2000a7960, 0xc2000a7910, 0xc20008e690, 0xc20006b7c0)
        /home/tapu/gopath/src/github.com/hanwen/go-fuse/fuse/nodefs/fsconnector.go:69 +0x12d
tmsu/vfs.MountVfs(0x7fffe107485b, 0x1b, 0x7fffe1074877, 0x20, 0x0, ...)
        /home/tapu/tmsu/tmsu/src/tmsu/vfs/fusevfs.go:46 +0xdc
tmsu/cli/commands.VfsCommand.Exec(0x922e88, 0x0, 0x0, 0xc20009

Comments (4)

  1. Paul Ruane repo owner

    This is resolved changeset 281f50c and future proofed in changeset 1543aa6.

    There have been some changes to the go-fuse API with the addition of a String method. Normally it's enough for TMSU to implement just the methods it cares about but for some reason not implementing this new String method causes a runtime error (possibly a go-fuse bug).

    I have changed TMSU such that it now explicitly implements all of the go-fuse API. This means that any further changes to the go-fuse API will cause a TMSU compilation error which will obviously be more noticeable than a runtime error.

  2. Log in to comment