From nobody@www.freebsd.org  Tue May 21 04:42:28 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 9ACFF37B408
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 May 2002 04:42:27 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4LBgQhG083941
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 May 2002 04:42:26 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g4LBgQBR083940;
	Tue, 21 May 2002 04:42:26 -0700 (PDT)
Message-Id: <200205211142.g4LBgQBR083940@www.freebsd.org>
Date: Tue, 21 May 2002 04:42:26 -0700 (PDT)
From: Mark Sprong <mark@zonnet.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysinstall segmentation fault while fetching index via http proxy
X-Send-Pr-Version: www-1.0

>Number:         38371
>Category:       i386
>Synopsis:       sysinstall segmentation fault while fetching index via http proxy
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-qa
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 21 04:50:01 PDT 2002
>Closed-Date:    Sun Jun 23 20:55:29 PDT 2002
>Last-Modified:  Sun Jun 23 20:55:29 PDT 2002
>Originator:     Mark Sprong
>Release:        4.5
>Organization:
Zon Internet
>Environment:
4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386

>Description:
While using sysinstall utility to fetch packages via a http proxy, the program reports a segmentation fault (sig 11) and dumps core. It reports connecting to the download site, but dies while displaying "Located INDEX, now reading package data from it...." This only occurs while using the http proxy option, active and passive ftp works fine. Also the sysinstall version in 4.3 does not have this problem on the same platform.

>How-To-Repeat:
execute /stand/sysinstall, select <Configure>,  Select <Packages>,  Select <4. HTTP>, Select <ftp.freebsd.org>, enter proxy ip and port 
>Fix:
Workaround: just download and add packages manually.
Fix: Segmentation fault usually indicates code error, hence the bug report
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-qa 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Jun 4 19:07:51 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer group 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38371 

From: Eric Anderson <anderson@centtech.com>
To: freebsd-gnats-submit@freebsd.org, mark@zonnet.nl
Cc:  
Subject: Re: i386/38371: sysinstall segmentation fault while fetching index via 
 http proxy
Date: Fri, 21 Jun 2002 08:17:42 -0500

 This patch fixed the problem for me (change from a HEAD request to a GET
 request).  
 
 
 *** http.c      Fri Jun 21 08:03:05 2002
 --- http.c-45   Sat Dec  1 07:04:43 2001
 ***************
 *** 219,225 ****
         return NULL;
       }
                                                    
 !     sprintf(req,"GET %s/%s%s HTTP/1.0\r\n\r\n",
             variable_get(VAR_HTTP_PATH), file, variable_get(VAR_HTTP_FTP_MODE));
   
       if (isDebug()) {
 --- 219,225 ----
         return NULL;
       }
                                                    
 !     sprintf(req,"HEAD %s/%s%s HTTP/1.0\r\n\r\n",
             variable_get(VAR_HTTP_PATH), file, variable_get(VAR_HTTP_FTP_MODE));
   
       if (isDebug()) {
 
 
 
 
 -- 
 ------------------------------------------------------------------
 Eric Anderson	   Systems Administrator      Centaur Technology
 He who laughs last didn't get the joke.
 ------------------------------------------------------------------
State-Changed-From-To: open->closed 
State-Changed-By: matusita 
State-Changed-When: Sun Jun 23 20:53:07 PDT 2002 
State-Changed-Why:  
I've fixed this in src/release/sysinstall/http.c rev 1.2.2.5. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38371 
>Unformatted:
