LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   nicotine-plus: segmentation fault (https://www.linuxquestions.org/questions/slackware-14/nicotine-plus-segmentation-fault-537132/)

tramni1980 03-13-2007 01:25 PM

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

bulliver 03-14-2007 02:19 PM

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.

tramni1980 03-15-2007 09:33 AM

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

piete 03-15-2007 10:48 AM

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.

bulliver 03-15-2007 12:29 PM

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

tramni1980 03-15-2007 04:00 PM

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.

bulliver 03-15-2007 04:14 PM

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

tramni1980 03-16-2007 03:39 AM

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


All times are GMT -5. The time now is 01:58 PM.