Author Topic: sbhttpd fault  (Read 21951 times)

RONB

  • Guest
sbhttpd fault
« on: April 27, 2014, 06:08:56 PM »
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: 19
    • View Profile
Re: sbhttpd fault
« Reply #1 on: April 27, 2014, 06:26:07 PM »
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 27, 2014, 06:27:51 PM by support »

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: sbhttpd fault
« Reply #2 on: April 28, 2014, 08:28:04 AM »
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: 19
    • View Profile
Re: sbhttpd fault
« Reply #3 on: April 28, 2014, 10:04:59 AM »
What do the sbhttpd logs say the problem is?

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: sbhttpd fault
« Reply #4 on: April 28, 2014, 10:21:37 AM »
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, 12:04:50 PM by support »

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: sbhttpd fault
« Reply #5 on: April 29, 2014, 12: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, 12:31:06 PM by support »

Support

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

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: sbhttpd fault
« Reply #7 on: April 30, 2014, 08:09:23 PM »
Sitting on the edge of my chair with fingers crossed.  ;)

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: sbhttpd fault
« Reply #8 on: April 30, 2014, 10:02:41 PM »
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: April 30, 2014, 10:04:38 PM by support »

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: sbhttpd fault
« Reply #9 on: May 01, 2014, 08:14:03 AM »
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: 19
    • View Profile
Re: sbhttpd fault
« Reply #10 on: May 01, 2014, 07:03:21 PM »
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 01, 2014, 08:46:02 PM by support »