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

Segmentation fault #7

Closed
mreinhardt opened this issue Feb 19, 2014 · 6 comments
Closed

Segmentation fault #7

mreinhardt opened this issue Feb 19, 2014 · 6 comments

Comments

@mreinhardt
Copy link

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
@laurent22
Copy link
Owner

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

@mreinhardt
Copy link
Author

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

@laurent22
Copy link
Owner

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?

@mreinhardt
Copy link
Author

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/.

@mreinhardt
Copy link
Author

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

@laurent22
Copy link
Owner

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

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