Segmentation fault - dd-wrt and SABnzbdplus

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
alfi99
Newbie
Newbie
Posts: 4
Joined: September 6th, 2010, 7:17 am

Segmentation fault - dd-wrt and SABnzbdplus

Post by alfi99 »

I get a segmentation fault, when I try to use a web browser from the WAN over the Internet to access SABnzbd.

My set up is:
Firmware: DD-WRT v24-sp2 (07/21/09) mega

root@DD-WRT:/# ipkg status sabnzbdplus
Package: sabnzbdplus
Version: 0.5.3-1
Depends: py25-cheetah, py25-yenc, par2cmdline
Conflicts: py24-sabnzbd, py25-sabnzbd
Status: install user installed
Architecture: mipsel
Installed-Time: 1283718642

I use optware installed on a connected USB drive.

Yesterday I managed to access from the LAN side, and got the wizard. However when trying to connect from the WAN I get the segmentation fault and SABnzbd shuts down.

I have edited the .ini file to listen on port 8082 and added this port to the iptables.

Then just for the fun of it I tried to use the this "http://HOSTADDRESS:PORT/sabnzbd/api?mode=shutdown&ma_username=USER&ma_password=PASSWORD&apikey=ENTERAPIKEYHERE"
and managed to shut it down.

This would indicate that there is some sort of contact, which the segmentation fault also indicates.

I have looked at the logs, but the sabnzbd.error.log is empty and the sabnzbd.log is only showing startup and shutdown.

HELP!  :)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Segmentation fault - dd-wrt and SABnzbdplus

Post by shypike »

I'm sorry, there's no way we can support this.
SABnzbd is pure Python, so any segmentation fault is likely the result
of problems in the run-time libraries.
Do keep in mind that SABnzbd does use quite a bit of memory.
Anything below 256M (total system memory) is a challenge.
alfi99
Newbie
Newbie
Posts: 4
Joined: September 6th, 2010, 7:17 am

Re: Segmentation fault - dd-wrt and SABnzbdplus

Post by alfi99 »

Well I like challenges, so any suggestions?

I have been able to replicate the error, numerous times.

I go through the Wizard and then next time I try to log in through the web browser I get the segmentation fault.
I can then delete the .ini file that was updated during the Wizard and then I can again go through the Wizard.

I know too little about SABnzbd to know which settings could cause this, but I am willing to try and update the .ini file without the Wizard and see if that will help.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Segmentation fault - dd-wrt and SABnzbdplus

Post by shypike »

Did you select SSL anywhere (either https for the internal webserver or SSL for the Usenet connection)?
It's the prime candidate.
Normally I would suspect yEnc., but at the the point it crashes on your box it isn't active yet.
alfi99
Newbie
Newbie
Posts: 4
Joined: September 6th, 2010, 7:17 am

Re: Segmentation fault - dd-wrt and SABnzbdplus

Post by alfi99 »

I did not choose SSL, I wanted to on my news provider, however when testing the connection with SSL active, it timed out.

I then set it to "normal" 119.

I only use the normal HTTP.

How about the runtime libraries, which you mentioned in your first post, should I try and reinstall the python libs?
alfi99
Newbie
Newbie
Posts: 4
Joined: September 6th, 2010, 7:17 am

Re: Segmentation fault - dd-wrt and SABnzbdplus

Post by alfi99 »

Should I try and go with the "normal" sabnzbd, instead of the sabnzbdplus?

I have 2 versions, py24-sabnzbd 0.2.5.2 and py25 sabnzbd 0.2.5.2?

Are they older versions or what is the main difference between these and the sabnzbdplus 0.5.3.1?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Segmentation fault - dd-wrt and SABnzbdplus

Post by shypike »

0.2.5 is ancient.
Few features, large amount of annoying bugs, difficult to set up.
Post Reply