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

Segfault when logging into Google on Fedora #3

Closed
squizzi opened this issue Jan 12, 2015 · 5 comments
Closed

Segfault when logging into Google on Fedora #3

squizzi opened this issue Jan 12, 2015 · 5 comments

Comments

@squizzi
Copy link
Contributor

squizzi commented Jan 12, 2015

I installed on Fedora using these instructions:

sudo rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(grep -o [0-9]* /etc/fedora-release).noarch.rpm
sudo yum update
sudo yum -y install python-pip python-devel libffi-devel libspotify-devel
sudo pip install pyportify

But that was short-lived, I get segfaults when trying to login to my Google account. I can't get much info from it since I can't get debuginfo for libspotify but it seems to be the culprit:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdbfff700 (LWP 29590)]
0x00007fffb5a0db9e in ?? () from /lib64/libspotify.so.12

I thought that maybe the libspotify provided by rpmfusion non-free is out of date/different then the one from the spotify site.

$ rpm -qa | grep libspotify
libspotify-12.1.51-4.fc21.x86_64
libspotify-devel-12.1.51-4.fc21.x86_64

So I grabbed the libspotify from here: https://developer.spotify.com/download/libspotify/libspotify-12.1.51-Linux-x86_64-release.tar.gz and made sure that we were loading the correct library and I still get a segfault.

I thought maybe the issue was 2-Factor Auth on Google but I setup an auth password and still encountered the segfault.

I'm not too good at troubleshooting python but will be happy to help.

@rckclmbr
Copy link
Owner

Can you get a core dump? See http://jodal.no/post/5779178001/log-from-the-debugging-of-a-segfault/ for how to get one.

Also, if you run pyportify-copyall, does it segfault immediately?

@rckclmbr
Copy link
Owner

I was reading jodal/pyspotify#150 and you may have run into this. Can you copy spotify_appkey.key (so we can send it to them if it actually is the problem), uninstall pyportify (pip uninstall pyportify) and install it again?

@heroheman
Copy link

Not Linux related, had the same on osx
bildschirmfoto 2015-01-13 um 12 49 20

Reinstalling did not help.

@squizzi
Copy link
Contributor Author

squizzi commented Jan 13, 2015

Yep, that's the problem, it's the spotify_appkey.key. I moved it and reinstalled pyportify and it's working now. I can get you a core file in a little while, its going to take a bit to upload.

Problem is I can't login with spotify creds now, and that's most likely because I don't have premium anymore.

Weirdest part of it all, the appkey is actually identical when diffing them:

# diff ./home/ksquizza/spotify_appkey.key ./usr/lib/python2.7/site-packages/pyportify/spotify_appkey.key 
<nothing> 
# md5sum ./usr/lib/python2.7/site-packages/pyportify/spotify_appkey.key ./home/ksquizza/spotify_appkey.key 
7851bafa64c4aeadf2d718760f85b0b3  ./usr/lib/python2.7/site-packages/pyportify/spotify_appkey.key
7851bafa64c4aeadf2d718760f85b0b3  ./home/ksquizza/spotify_appkey.key

@leadfeet123
Copy link

Getting the same error, what was the solution again? I tried removing spotify_appkey.key and uninstalling and reinstalling pyportify to no avail

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

4 participants