laurent22/massren

Segmentation fault

mreinhardt opened this issue · 6 comments

Mac Book Pro
OSX 10.7.5
zsh

$ curl -O https://raw.github.com/laurent22/massren/master/install/install.osx.sh
$ chmod 755 install.osx.sh
$ sudo ./install.osx.sh
Saving to: `massren.osx.tar.gz'
2014-02-18 17:29:45 (1.44 MB/s) - `massren.osx.tar.gz' saved [1149999/1149999]
x massren
$ massren --config editor subl
[1]    26970 segmentation fault  massren --config editor subl
$ massren
[1]    27013 segmentation fault  massren

Hmm, unfortunately the error message doesn't help much. If you open the Console application and search for "massren", is there any additional information there?

Also, if you have Go installed, is there any chance you could try to compile the project, to see if there's any additional error message? The command line should just be:

go get github.com/laurent22/massren
cd $GOPATH/src/massren
go build

Nothing on Console other than the sudo install

$ go get github.com/laurent22/massren
# github.com/laurent22/massren
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol close$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol access
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol getcwd
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol stat$INODE64
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol fstat$INODE64
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol ftruncate
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol fcntl$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol read$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol pread$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol write$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol pwrite$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol fchmod$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol unlink
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol mkdir
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol rmdir
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol mmap$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol munmap$UNIX2003
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for close$UNIX2003 (type 32 rtype 76)
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for access (type 32 rtype 76)
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for getcwd (type 32 rtype 76)
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for stat$INODE64 (type 32 rtype 76)
too many errors

It looks like it's related to this go-sqlite3 issue. Could you try with go get -x -ldflags -linkmode=external github.com/laurent22/massren?

Got it to work!

Here are the full steps we took:

# Extra options here
$ go get -x -ldflags -linkmode=external github.com/laurent22/massren
...successful output...

# Different path here
$ cd $GOPATH/src/github.com/laurent22/massren

# Extra options required here as well
$ go build -x -ldflags -linkmode=external
...successful output...

# Move file to bin dir in PATH (note: symlinking resulted in permission denied)
$ mv massren ~/bin/.

Awesome tool btw, thanks for helping me to get it to work!

Great, nice to hear it's working now. I'm going to add this to the readme as that might help someone else.