I installed the latest version and still I am getting:

[Wed Nov  7 12:36:47 2001] [notice] child pid 21873 exit signal Segmentation
fault (11)

wasn't it fixed?


Yahalom Emet
Software Developer
Xor Technologies Ltd.
----- Original Message -----
From: "David N. Welton" <[EMAIL PROTECTED]>
To: "yahalom emet" <[EMAIL PROTECTED]>
Cc: "Mod_dtcl" <[email protected]>
Sent: Tuesday, October 30, 2001 6:16 PM
Subject: Re: content-type problem


> "yahalom emet" <[EMAIL PROTECTED]> writes:
>
> > I'm tring to use the ttml module as an xml Server. when I send xml
> > data to the ttml from tcl using http package I get an xml reply as
> > expected.
>
> Good...
>
> > when I use microsoft XMLHTTPRequest object to connect to the ttml
> > file I see in the apache error_log:
>
> > [Tue Oct 30 09:56:20 2001] [error] [client 192.116.217.98]
> > [libapreq] unknown content-type: `(null)'
>
> It figures that they are doing something stupid.
>
> The relevant code is this:
>
>     if (r->method_number == M_POST) {
> const char *ct = ap_table_get(r->headers_in, "Content-type");
> if (ct && strncaseEQ(ct, DEFAULT_ENCTYPE, DEFAULT_ENCTYPE_LENGTH)) {
>     result = ApacheRequest_parse_urlencoded(req);
> }
> else if (ct && strncaseEQ(ct, MULTIPART_ENCTYPE,
MULTIPART_ENCTYPE_LENGTH)) {
>    result = ApacheRequest_parse_multipart(req);
> }
> else {
>     ap_log_rerror(REQ_ERROR,
>   "[libapreq] unknown content-type: `%s'", ct);
>     result = HTTP_INTERNAL_SERVER_ERROR;
> }
>     }
>
> Basically, it's not being sent as
>
> #define DEFAULT_ENCTYPE "application/x-www-form-urlencoded"
>
> or
>
> #define MULTIPART_ENCTYPE "multipart/form-data"
>
> and they are sending it as 'none'.  That sucks.
>
> I would be very interested to see an strace (system call) of the
> transaction with your server..
>
> strace -o /tmp/outputfile -s 5000 apache -X
>
> > [Tue Oct 30 09:56:21 2001] [notice] child pid 5749 exit signal
Segmentation fault (11)
>
> This is my fault.  I have fixed and committed to CVS.
>
> > I changed in the XMLHTTPRequest object the content-type to different
> > setting but nothing change (only the unknown content-type in the
> > error_log)
>
> > when I run the xmlServer as a cgi script it works fine.
>
> I'm not sure about this... I mean, if it doesn't tell you how it's
> supposed to be parsed, then there isn't a lot to be done.
>
> --
> David N. Welton
>    Consulting: http://www.dedasys.com/
> Free Software: http://people.debian.org/~davidw/
>    Apache Tcl: http://tcl.apache.org/
>      Personal: http://www.efn.org/~davidw/

Reply via email to