You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Martin Gerdes <ma...@googlemail.com> on 2009/10/29 15:00:15 UTC

Re: [users@httpd] using ProxyHTMLEnable On, mod_proxy_html or xml2enc segfaults

Allright, I will try.

Stuff I can tell you immediately:

The packet that causes the crash looks like this (sniffed with tcpdump):

HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location:
http://localhost:50100/dwhfe/app/start/StartPageSelector.htm;jsessionid=B6B4331C1C0C14A7BE964B89E1E76150
Content-Language: de-DE
Content-Length: 0
Date: Thu, 29 Oct 2009 13:47:48 GMT

That packet goes into the apache proxy, and does not come out of it, with
the apache error log reporting the segfault.
No entries immediately prior to the segfault in the log file, with verbose
logging turned on, and loglevel info.

Will now test whether I can put the same content into a static website
getting the same crash...

2009/10/29 Nick Kew <ni...@webthing.com>

> Martin Gerdes wrote:
>
>  I can load the login page of the webapp, though it is returned in utf8.
>> Once I send of the login data, it segfaults. It did NOT do that when I
>> used SetOutputFilter instead of ProxyHTMLEnable, so I assume that xml2enc
>> crashes, though that is only conjecture.
>>
>> Line in apache error log:
>> "[Thu Oct 29 14:18:22 2009] [notice] child pid 29443 exit signal
>> Segmentation fault (11)"
>>
>
> In that case, we're back to step one.  Construct a minimal test case
> that reproduces the fault, so I can get a handle on it.
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] using ProxyHTMLEnable On, mod_proxy_html or xml2enc segfaults

Posted by Martin Gerdes <ma...@googlemail.com>.
You solved it! :-)

We have still to test the webapp in its entirety, but it doesn't crash where
it crashed before, AND correctly translates encodings :-)

Thanks a lot for your helpfulness, and the new version!

2009/10/30 Nick Kew <ni...@webthing.com>

> Martin Gerdes wrote:
>
>> Cool. Then I'll cease trying to build a test case for now. That would
>> probably have cost me another day...
>>
>
> I think I've solved it.  Well, I've found and fixed a bug that
> your response would be likely to provoke.  I hope that fixes it!
>
> http://bahumbug.wordpress.com/2009/10/29/another-module-update/
>
> (anyone using my modules should probably subscribe to the
> blog - at least to category "apache" - for updates).
>
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] using ProxyHTMLEnable On, mod_proxy_html or xml2enc segfaults

Posted by Nick Kew <ni...@webthing.com>.
Martin Gerdes wrote:
> Cool. Then I'll cease trying to build a test case for now. That would 
> probably have cost me another day...

I think I've solved it.  Well, I've found and fixed a bug that
your response would be likely to provoke.  I hope that fixes it!

http://bahumbug.wordpress.com/2009/10/29/another-module-update/

(anyone using my modules should probably subscribe to the
blog - at least to category "apache" - for updates).

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] using ProxyHTMLEnable On, mod_proxy_html or xml2enc segfaults

Posted by Martin Gerdes <ma...@googlemail.com>.
Cool. Then I'll cease trying to build a test case for now. That would
probably have cost me another day...
Small correction of the problem description: I mistakingly wrote that the
login page was served in utf8. This is incorrect: It was correctly
translated to ISO-8859-1 :-). So if you manage to fix the segfault, I'll
have a working solution. *yippie*

A scheduling info:
I won't be in the company during the next week, so I'll be unable to test
out solutions during that time.
I will still be able to respond to emails / messages to the list, though.

2009/10/29 Nick Kew <ni...@webthing.com>

>
> On 29 Oct 2009, at 14:00, Martin Gerdes wrote:
>
>  Allright, I will try.
>>
>> Stuff I can tell you immediately:
>>
>> The packet that causes the crash looks like this (sniffed with tcpdump):
>>
>> HTTP/1.1 302 Moved Temporarily
>> Server: Apache-Coyote/1.1
>> Location:
>> http://localhost:50100/dwhfe/app/start/StartPageSelector.htm;jsessionid=B6B4331C1C0C14A7BE964B89E1E76150
>> Content-Language: de-DE
>> Content-Length: 0
>> Date: Thu, 29 Oct 2009 13:47:48 GMT
>>
>
> That's just given me an idea.  I don't have time to follow up on it just
> now,
> but bug me if I haven't replied again by about Sunday.
>
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] using ProxyHTMLEnable On, mod_proxy_html or xml2enc segfaults

Posted by Nick Kew <ni...@webthing.com>.
On 29 Oct 2009, at 14:00, Martin Gerdes wrote:

> Allright, I will try.
>
> Stuff I can tell you immediately:
>
> The packet that causes the crash looks like this (sniffed with  
> tcpdump):
>
> HTTP/1.1 302 Moved Temporarily
> Server: Apache-Coyote/1.1
> Location: http://localhost:50100/dwhfe/app/start/StartPageSelector.htm;jsessionid=B6B4331C1C0C14A7BE964B89E1E76150
> Content-Language: de-DE
> Content-Length: 0
> Date: Thu, 29 Oct 2009 13:47:48 GMT

That's just given me an idea.  I don't have time to follow up on it  
just now,
but bug me if I haven't replied again by about Sunday.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] using ProxyHTMLEnable On, mod_proxy_html or xml2enc segfaults

Posted by Martin Gerdes <ma...@googlemail.com>.
Still have not managed to simplify it. I have managed to set up a simple
proxy using a virtual host, but I have yet to figure out how to fake those
http options.
Interestingly, I could get a simple sample page translated back into
ISO-8859-1 in this setup. This at least tells me that my self build package
works _in principle_.

Thought I'd send you the output of the crash with Loglevel debug. Maybe that
already tells you something:

[Thu Oct 29 16:07:14 2009] [debug] mod_proxy_http.c(60): proxy: HTTP:
canonicalising URL
//localhost:50100/dwhfe/pub/Authentication.htm;jsessionid=19D1CEB65AF823413A8D2885D4CFA2F7
[Thu Oct 29 16:07:14 2009] [debug] proxy_util.c(1488): [client 192.168.0.9]
proxy: http: found worker http://localhost:50100/dwhfe/ for
http://localhost:50100/dwhfe/pub/Authentication.htm;jsessionid=19D1CEB65AF823413A8D2885D4CFA2F7,
referer:
http://192.168.0.100:443/testdwh/pub/Authentication.htm;jsessionid=19D1CEB65AF823413A8D2885D4CFA2F7
[Thu Oct 29 16:07:14 2009] [debug] mod_proxy.c(966): Running scheme http
handler (attempt 0)
[Thu Oct 29 16:07:14 2009] [debug] mod_proxy_http.c(1937): proxy: HTTP:
serving URL
http://localhost:50100/dwhfe/pub/Authentication.htm;jsessionid=19D1CEB65AF823413A8D2885D4CFA2F7
[Thu Oct 29 16:07:14 2009] [debug] proxy_util.c(1990): proxy: HTTP: has
acquired connection for (localhost)
[Thu Oct 29 16:07:14 2009] [debug] proxy_util.c(2046): proxy: connecting
http://localhost:50100/dwhfe/pub/Authentication.htm;jsessionid=19D1CEB65AF823413A8D2885D4CFA2F7to
localhost:50100
[Thu Oct 29 16:07:14 2009] [debug] proxy_util.c(2139): proxy: connected
/dwhfe/pub/Authentication.htm;jsessionid=19D1CEB65AF823413A8D2885D4CFA2F7 to
localhost:50100
[Thu Oct 29 16:07:14 2009] [debug] proxy_util.c(2291): proxy: HTTP: fam 2
socket created to connect to localhost
[Thu Oct 29 16:07:14 2009] [debug] proxy_util.c(2386): proxy: HTTP:
connection complete to 127.0.0.1:50100 (localhost)
[Thu Oct 29 16:07:15 2009] [debug] proxy_util.c(1071): ppr: real:
http://localhost:50100/dwhfe/
[Thu Oct 29 16:07:15 2009] [debug] mod_proxy_http.c(1710): proxy: start body
send
[Thu Oct 29 16:07:15 2009] [notice] child pid 4210 exit signal Segmentation
fault (11)

I'll continue to try to build a simple test case, but I have to figure a bit
more stuff out for that...

2009/10/29 Martin Gerdes <ma...@googlemail.com>

> Allright, I will try.
>
> Stuff I can tell you immediately:
>
> The packet that causes the crash looks like this (sniffed with tcpdump):
>
> HTTP/1.1 302 Moved Temporarily
> Server: Apache-Coyote/1.1
> Location:
> http://localhost:50100/dwhfe/app/start/StartPageSelector.htm;jsessionid=B6B4331C1C0C14A7BE964B89E1E76150
> Content-Language: de-DE
> Content-Length: 0
> Date: Thu, 29 Oct 2009 13:47:48 GMT
>
> That packet goes into the apache proxy, and does not come out of it, with
> the apache error log reporting the segfault.
> No entries immediately prior to the segfault in the log file, with verbose
> logging turned on, and loglevel info.
>
> Will now test whether I can put the same content into a static website
> getting the same crash...
>
> 2009/10/29 Nick Kew <ni...@webthing.com>
>
>> Martin Gerdes wrote:
>>
>>
>>  I can load the login page of the webapp, though it is returned in utf8.
>>> Once I send of the login data, it segfaults. It did NOT do that when I
>>> used SetOutputFilter instead of ProxyHTMLEnable, so I assume that xml2enc
>>> crashes, though that is only conjecture.
>>>
>>> Line in apache error log:
>>> "[Thu Oct 29 14:18:22 2009] [notice] child pid 29443 exit signal
>>> Segmentation fault (11)"
>>>
>>
>> In that case, we're back to step one.  Construct a minimal test case
>> that reproduces the fault, so I can get a handle on it.
>>
>> --
>> Nick Kew
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>