Received: (qmail 61706 invoked by uid 501); 24 Feb 2001 03:48:35 -0000 Message-Id: <20010224034835.61705.qmail@apache.org> Date: 24 Feb 2001 03:48:35 -0000 From: Bill Barker Reply-To: william.barker@wilshire.com To: submit@bugz.apache.org Subject: SEGV when doing ftp proxy X-Send-Pr-Version: 3.110 >Number: 7310 >Category: mod_proxy >Synopsis: SEGV when doing ftp proxy >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Feb 23 19:50:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: william.barker@wilshire.com >Release: 1.13.17 >Organization: apache >Environment: SunOS mymachine 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-Enterprise >Description: I have a: ProxyPass /ftp/ ftp://ftp.wilshire.com/ inside of a . Apache is also running on a non-standard port. Any attempt at http:/mymachine:8880/ftp/ does a SEGV (dbx) where =>[1] inet_addr(0x0, 0xef397670, 0xef397648, 0x0, 0x0, 0xc1488), at 0xef6991ac [2] ap_proxy_ftp_handler(0xbf8f0, 0xc1420, 0xc13fe, 0x0, 0xef60f02c, 0x0), at 0xef38d5f0 [3] proxy_handler(0xbf8f0, 0xef3845c4, 0x0, 0x0, 0x72766572, 0x72766572), at 0xef384e20 [4] ap_invoke_handler(0xbf8f0, 0x0, 0x60000, 0x65, 0xef60f02c, 0x65), at 0x1eb7c [5] process_request_internal(0xbf8f0, 0x0, 0x8, 0x0, 0xeffffc00, 0x1), at 0x3c1f0 [6] ap_process_request(0xbf8f0, 0xc8, 0xbf8f0, 0xeffff5f8, 0xeffff608, 0x0), at 0x3c274 [7] child_main(0x0, 0x2d6b0, 0x2d400, 0x0, 0xef623700, 0x2fac8), at 0x2f7d4 [8] make_child(0x7ab90, 0x0, 0x3a972226, 0x0, 0x40, 0x2d7e4), at 0x2fb88 [9] startup_children(0x5, 0x0, 0x5, 0x73c00, 0x5dd78, 0x5dc00), at 0x2fcac [10] standalone_main(0x3, 0xeffff8bc, 0x0, 0x0, 0xef626228, 0xef626514), at 0x3069c [11] main(0x3, 0xeffff8bc, 0xeffff8cc, 0x767b8, 0x0, 0x0), at 0x312b0 >How-To-Repeat: Unfortunately, this site is behind a firewall. But it looks like it is pretty generic. >Fix: proxy_ftp.c gets the host from the parsed_uri, whereas proxy_http.c gets it from url. I haven't tried it, but porting the logic from proxy_http.c to proxy_ftp.c looks like a winner. >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]