Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid memory address or nil pointer dereference #40

Closed
usineur opened this issue Jun 26, 2013 · 2 comments
Closed

invalid memory address or nil pointer dereference #40

usineur opened this issue Jun 26, 2013 · 2 comments

Comments

@usineur
Copy link

usineur commented Jun 26, 2013

hi, i have this output with lastest changes in go-mtpfs/go-fuse while trying to read my Nexus 4:

[signal 0xb code=0x1 addr=0x1 pc=0x809090e]

goroutine 1 [running]:
github.com/hanwen/go-mtpfs/fs.(*folderNode).SetInode(0x1838e980, 0x1836f380)
/home/matthieu/.go/src/github.com/hanwen/go-mtpfs/fs/android.go:0 +0x2e

github.com/hanwen/go-fuse/fuse/nodefs.newInode(0x8051801, 0x18338ea0, 0x1838e980, 0x0)
/home/matthieu/.go/src/github.com/hanwen/go-fuse/fuse/nodefs/inode.go:45 +0x7c

github.com/hanwen/go-fuse/fuse/nodefs.(*Inode).New(0x1836f2c0, 0x8172d01, 0x18338ea0, 0x1838e980, 0x0, ...)
/home/matthieu/.go/src/github.com/hanwen/go-fuse/fuse/nodefs/inode.go:112 +0x37

github.com/hanwen/go-mtpfs/fs.(*DeviceFs).OnMount(0x1836a000, 0x18375690)
/home/matthieu/.go/src/github.com/hanwen/go-mtpfs/fs/fs.go:147 +0x283

github.com/hanwen/go-fuse/fuse/nodefs.(*FileSystemConnector).MountRoot(0x18375690, 0x18375660, 0x1836a000, 0x1838e7e0)
/home/matthieu/.go/src/github.com/hanwen/go-fuse/fuse/nodefs/fsconnector.go:249 +0x62

github.com/hanwen/go-fuse/fuse/nodefs.NewFileSystemConnector(0x18375660, 0x1836a000, 0x1838e7e0, 0x18375690)
/home/matthieu/.go/src/github.com/hanwen/go-fuse/fuse/nodefs/fsconnector.go:72 +0x141

main.main()
/home/matthieu/.go/src/github.com/hanwen/go-mtpfs/main.go:64 +0x77b

@hanwen
Copy link
Owner

hanwen commented Jun 27, 2013

Just pushed:

commit 6b55d1f
Author: Han-Wen Nienhuys hanwen@google.com
Date: Thu Jun 27 12:32:16 2013 +0200

fs: fix DefaultFile/Node snafu.

can you see if that fixes things?

On Wed, Jun 26, 2013 at 10:39 PM, Matthieu Milan
notifications@github.comwrote:

hi, i have this output with lastest changes in go-mtpfs/go-fuse:

[signal 0xb code=0x1 addr=0x1 pc=0x809090e]

goroutine 1 [running]:
github.com/hanwen/go-mtpfs/fs.(_folderNode).SetInode(0x1838e980,
0x1836f380)
/home/matthieu/.go/src/github.com/hanwen/go-mtpfs/fs/android.go:0 +0x2e
github.com/hanwen/go-fuse/fuse/nodefs.newInode(0x8051801, 0x18338ea0,
0x1838e980, 0x0)
/home/matthieu/.go/src/github.com/hanwen/go-fuse/fuse/nodefs/inode.go:45+0x7c
github.com/hanwen/go-fuse/fuse/nodefs.(_Inode).New(0x1836f2c0, 0x8172d01,
0x18338ea0, 0x1838e980, 0x0, ...)
/home/matthieu/.go/src/github.com/hanwen/go-fuse/fuse/nodefs/inode.go:112+0x37
github.com/hanwen/go-mtpfs/fs.(*DeviceFs).OnMount(0x1836a000, 0x18375690)
/home/matthieu/.go/src/github.com/hanwen/go-mtpfs/fs/fs.go:147 +0x283

github.com/hanwen/go-fuse/fuse/nodefs.(*FileSystemConnector).MountRoot(0x18375690,
0x18375660, 0x1836a000, 0x1838e7e0)
/home/matthieu/.go/src/
github.com/hanwen/go-fuse/fuse/nodefs/fsconnector.go:249 +0x62
github.com/hanwen/go-fuse/fuse/nodefs.NewFileSystemConnector(0x18375660,
0x1836a000, 0x1838e7e0, 0x18375690)
/home/matthieu/.go/src/
github.com/hanwen/go-fuse/fuse/nodefs/fsconnector.go:72 +0x141
main.main()
/home/matthieu/.go/src/github.com/hanwen/go-mtpfs/main.go:64 +0x77b


Reply to this email directly or view it on GitHubhttps://github.com//issues/40
.

Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen

@usineur
Copy link
Author

usineur commented Jun 28, 2013

Hi, i can confirm that it's now ok. Thank you. :)

@usineur usineur closed this as completed Jun 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants