LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-13-2007, 01:25 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Rep: Reputation: 37
Question nicotine-plus: segmentation fault


Hello!
I could not run nicotine-plus . I am running Slackware Linux 11.0 with kernel test26.s.
I downloaded and installed: pygtk-2.10.4,pycairo-1.0.2,pygobject2.12.3,pyogg-1.3,pyvorbis-1.4, psyco-1.5.2 and nicotine+-1.2.6. Everything compiled and installed correctly, however when I type "nicotine" in the console, all I get is the notorious message "segmentation fault". When I installed nicotine+-1.2.7.1, I got the same message. I used the slackbuild script from slackbuilds.org to compile nicotine. Has someone managed to install nicotine on slack 11, and if so, how?

Any suggestions will be appreciated.

Regards,
Martin
 
Old 03-14-2007, 02:19 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
nicotine plus is a python app, there is nothing to compile.
I would be looking at your Python installation as a source of problems, and perhaps Psyco.

Have you tried just downloading the source and running that directly? Should be fine as long as the deps are satisfied.
 
Old 03-15-2007, 09:33 AM   #3
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Question gtk+ or gtk+2? will upgrade cause trouble?

Quote:
Originally Posted by bulliver
nicotine plus is a python app, there is nothing to compile.
I would be looking at your Python installation as a source of problems, and perhaps Psyco.

Have you tried just downloading the source and running that directly? Should be fine as long as the deps are satisfied.
Yes, I have tried running it directly from the untarred sources, but I again get segmentation fault. I notice that in nicotine's site they say it requires GTK+-2.0 or newer (GTK+-2.2 recommended), while in my Slackware 11.0 system I have:
/var/adm/packages/gtk+-1.2.10-i386-3
/var/adm/packages/gtk+2-2.8.20-i486-1

Which of the two packages do I have to upgrade? What is actually the dofference between gtk+2 and gtk+ ?
It seems to me that I have to upgrade gtk+-1.2.10-i386-3 to gtk+-2.2, but won't it cause trouble to my system?

Regards,
Martin
 
Old 03-15-2007, 10:48 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
gtk+-1.2.10-i386-3 is a legacy library that's around for compatibility, don't try and upgrade it to 2.

gtk+2-2.8.20-i486-1 is the requirement you're comparing with, and i'd say 2.8 > 2.2, so GTK looks ok.

Quote:
When I installed nicotine+-1.2.7.1, I got the same message.
SegFault on install is bad, and naturally, i would not consider running an app that failed to install properly. I would do as bulliver suggested and establish the stability of your python install before you try and debug this app. Find some simple test scripts and run them, see what happens.

Also consider installing "by hand" and running the commands for configure/build/install one by one, see which one actually throws the paddy.

- Piete.
 
Old 03-15-2007, 12:29 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
tramni1980:

I am running version 1.2.7.1, downloaded direct from http://nicotine-plus.sourceforge.net/ and it is working fine. If the same source is segfaulting for you I would definitely start with Python and work your way through the deps to see what is causing the segfault. 'strace' can be a big help with this....
 
Old 03-15-2007, 04:00 PM   #6
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Question

Quote:
Originally Posted by bulliver
tramni1980:

I am running version 1.2.7.1, downloaded direct from http://nicotine-plus.sourceforge.net/ and it is working fine. If the same source is segfaulting for you I would definitely start with Python and work your way through the deps to see what is causing the segfault. 'strace' can be a big help with this....
So I ran:
strace -f /usr/bin/nicotine 1 > nicotine.log 2>&1

and I got an enormous file. I could send it to you, if you can figure something out of it. I only noticed that there are a lot of messages like "no such file or directory". The program was looking for some python libraries at some places specified in my LD_LIBRARY_PATH environmental variable. So I unset that variable and then ran
strace -f /usr/bin/nicotine 1 > nicotine.log 2>&1

again. The "no such file or directory" messages were less, but still I get segmentation fault.

I am really at a loss now.

My system is:
/var/adm/packages/nicotine+-1.2.7.1-i486-2_SBo
/var/adm/packages/gtk+-1.2.10-i386-3*
/var/adm/packages/gtk+2-2.8.20-i486-1
var/adm/packages/pycairo-1.0.2-i486-1_SBo /var/adm/packages/pygtk-2.10.3-i486-2_SBo
/var/adm/packages/pycrypto-2.0.1-noarch-2sl* /var/adm/packages/python-2.4.3-i486-4
/var/adm/packages/pygobject-2.12.3-i486-2_SBo

I also installed pyvorbis-1.4/, psyco-1.5.2/ and pyogg-1.3/ following the instructions in their READMEs. Do you think this could cause the problem? These packages have no configure scripts, so I had to install them running python as root. Maybe I have messed something up ...

I as well tried with other versions of pygtk, precompiled in slacky.it or develia.org. Again segmentation fault.

I am really at a loss now.

Regards, Martin.
 
Old 03-15-2007, 04:14 PM   #7
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Martin,

what you want to do with strace is see what call was made right before the segfault. Should help isolate what is causing it.

Perhaps post the _last_ 50-75 lines of your strace output here...
 
Old 03-16-2007, 03:39 AM   #8
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Question

Quote:
Originally Posted by bulliver
Martin,

what you want to do with strace is see what call was made right before the segfault. Should help isolate what is causing it.

Perhaps post the _last_ 50-75 lines of your strace output here...
Problem solved. There is a bug of nicotine with psyco. All I did is remove psyco and now everything is ok.

Thank you for your attention.

Regards,
Martin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika Suse/Novell 2 12-02-2005 09:34 AM
segmentation fault ice99 Linux - Software 1 08-19-2005 11:33 AM
Segmentation fault velda.ebel Linux - Security 1 08-08-2005 07:23 PM
Segmentation Fault OGreenOLeaf Slackware 7 01-03-2004 08:57 PM
segmentation fault sqn Slackware 3 03-21-2003 05:26 AM


All times are GMT -5. The time now is 10:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration