Author Topic: sbhttpd fault  (Read 16946 times)

RONB

  • Guest
sbhttpd fault
« on: April 28, 2014, 01:08:56 am »
Updated to Debian 7.5 today. sbhttpd stopped working, using sb2.2 Debian64 beta
error notice
segmentation fault

It has been working fine up till now.

ScriptBasic v2.2
Variation >>Debian64<< build 2
Magic value 859009844
Node size is 24
Extension interface version is 11
Compilation: Oct 14 2013 07:49:58


Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #1 on: April 28, 2014, 01:26:07 am »
Is scriba having any problems? I assume you did a reboot after the upgrade and there were no changes to proxy SBHTTPD in the httpd.conf file?

I can't remember what version of Debian 64 I compiled SB 2.2 for. I'm having doubts that this is a Script BASIC SBHTTPD issue when it worked fine before. Is the GD module or MySQL having issues?



« Last Edit: April 28, 2014, 01:27:51 am by support »

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #2 on: April 28, 2014, 03:28:04 pm »
Are/were you using sbhttpd as a proxy server behind Apache or using sbhttpd directly?

sbhttpd should be started with sudo (root) privileges as it is a OS service.

 

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #3 on: April 28, 2014, 05:04:59 pm »
What do the sbhttpd logs say the problem is?

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #4 on: April 28, 2014, 05:21:37 pm »
I just apt-get update/upgrade my Debian 64 bit 7.1 system. As it was going through the upgrade part I noticed about 12 of these warning messages being displayed.

Setting up initscripts (2.88dsf-41+deb7u1) ...
insserv: warning: script 'sbhttpd' missing LSB tags and overrides
insserv: warning: script 'sbhttpd' missing LSB tags and overrides

Known Bug

Attached is Script BASIC 2.2 Debian 7.5 64 bit. (Build 3) Let me know if this works better for you.
« Last Edit: April 28, 2014, 07:04:50 pm by support »

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #5 on: April 29, 2014, 07:24:46 pm »
Quote
I wonder if gd needs supporting libraries to work?

Wonder no further as the Script BASIC GD extension module is an interface to the libpng.so, libgd.so and libz.so libraries.
« Last Edit: April 29, 2014, 07:31:06 pm by support »

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #6 on: April 30, 2014, 03:33:48 pm »
Curious. Did you ever get the GFX (SDL_gfx) extension module working on your box?

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #7 on: May 01, 2014, 03:09:23 am »
Sitting on the edge of my chair with fingers crossed.  ;)

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #8 on: May 01, 2014, 05:02:41 am »
Quote
Where do libSDL.so and libSDL_gfx.so go?

On my system, /usr/lib.

gfx.so goes in the SB modules directory and gfx.inc goes in the SB include directory.

« Last Edit: May 01, 2014, 05:04:38 am by support »

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #9 on: May 01, 2014, 03:14:03 pm »
I wish you would have went with your original plans and gone the Ubuntu route.  :-\

I'll see if I can recompile a Debian version of this for you. I have no way to test it though.

Support

  • Administrator
  • *****
  • Posts: 1
    • View Profile
Re: sbhttpd fault
« Reply #10 on: May 02, 2014, 02:03:21 am »
Attached is the Script BASIC GFX extension module, libSDL.so and libSDL_gfx.so for Debian 7.5 64 bit.

You will not be able to use the GFX frame rate control functions as Debian throws one of its classic no info errors.

Code: [Select]
gcc -w -fPIC -static -m64 -c -I/usr/include/SDL -o ../../bin/mod/obj/gfx/s_interface.o interface.c
interface.c: In function ‘gfx_SDL_framerateDelay’:
interface.c:2241:15: error: void value not ignored as it ought to be
make: *** [../../bin/mod/obj/gfx/s_interface.o] Error 1
admin@ip-10-168-133-91:~/sb22/source/extensions/gfx$

You may need to remark the gfx_SDL_framerateDelay reference in your gfx.inc file.


« Last Edit: May 02, 2014, 03:46:02 am by support »