[AWS] status page segmentation error

Darren Ingram dazatrustsno1@hotmail.com
Thu, 17 Apr 2003 11:59:05 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C304D8.BED0AE20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I am trying to use a status page within AWS1.2
I have the following code to start the server
AWS.Server.Start (Web_Server =3D> WS,

Name =3D> "Status Test",
Port =3D> Port, --from command line
Max_Connection =3D> 10,
Admin_URI =3D> "/Admin-Page",
Callback =3D> status_cb'Access); --call back function

The callback function simply returns either index.html, the requested =
resource or a S404.
I have 'aws_status.thtml' and the aws .png's all in the same directory =
as the main program.

It works as expected until i request /Admin-Page, then the program has a =
segmentation error.  I have used GDB and got the following when the =
segmentation occurs.  Any ideas what this means and how i can avoid it?

Starting program: /eas/d202/ingramd/awstest/status/status 20000
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]
[New LWP 6]
[New LWP 7]
[New LWP 8]
[New LWP 9]
[New LWP 10]
[New LWP 11]
[New LWP 12]
[New LWP 13]
[New LWP 14]
[New LWP 15]
[New LWP 16]
Status Test Server.
AWS 1.2 running on port  20000
Press 'q' at anytime to shut down the server.

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 5]
0x66858 in templates_parser__filter_mode___clean.52 () =20


Many Thanks
Darren

------=_NextPart_000_000B_01C304D8.BED0AE20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,<BR>I am trying to use a status page =
within=20
AWS1.2<BR>I have the following code to start the =
server<BR>AWS.Server.Start=20
(Web_Server =3D&gt; WS,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Name =3D&gt; "Status =
Test",</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Port =3D&gt; Port, --from command =
line</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Max_Connection =3D&gt; 10,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Admin_URI =3D&gt; =
"/Admin-Page",</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Callback =3D&gt; status_cb'Access); =
--call back=20
function</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The callback function simply returns =
either=20
index.html, the requested resource or a S404.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have 'aws_status.thtml' and the aws =
.png's all in=20
the same directory as the main program.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It works as expected until i request =
/Admin-Page,=20
then the program has a segmentation error.&nbsp; I have used GDB and got =
the=20
following when the segmentation occurs.&nbsp; Any ideas what this means =
and how=20
i can avoid it?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>Starting program:=20
/eas/d202/ingramd/awstest/status/status 20000<BR>[New LWP 1]<BR>[New LWP =

2]<BR>[New LWP 3]<BR>[New LWP 4]<BR>[New LWP 5]<BR>[New LWP 6]<BR>[New =
LWP=20
7]<BR>[New LWP 8]<BR>[New LWP 9]<BR>[New LWP 10]<BR>[New LWP 11]<BR>[New =
LWP=20
12]<BR>[New LWP 13]<BR>[New LWP 14]<BR>[New LWP 15]<BR>[New LWP =
16]<BR>Status=20
Test Server.<BR>AWS 1.2 running on port&nbsp; 20000<BR>Press 'q' at =
anytime to=20
shut down the server.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Program received signal SIGSEGV, Segmentation fault.<BR>[Switching =
to LWP=20
5]<BR>0x66858 in templates_parser__filter_mode___clean.52 ()&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Many Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Darren</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_000B_01C304D8.BED0AE20--