From nobody@FreeBSD.org  Tue May  6 11:46:30 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5B8701065671
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 May 2008 11:46:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4FE278FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 May 2008 11:46:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m46Bjb28002369
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 May 2008 11:45:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m46BjbpQ002368;
	Tue, 6 May 2008 11:45:37 GMT
	(envelope-from nobody)
Message-Id: <200805061145.m46BjbpQ002368@www.freebsd.org>
Date: Tue, 6 May 2008 11:45:37 GMT
From: Andriy Tovstik <squirl@agava.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: wget core dumped on UTF-8 locale
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         123460
>Category:       ports
>Synopsis:       ftp/wget core dumped on UTF-8 locale
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 06 11:50:01 UTC 2008
>Closed-Date:    Thu May 15 18:07:05 UTC 2008
>Last-Modified:  Thu May 15 18:07:05 UTC 2008
>Originator:     Andriy Tovstik
>Release:        6.3-RELEASE-p2
>Organization:
Agava
>Environment:
FreeBSD gate.net.local 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #0: Wed Apr 23 16:47:32 EEST 2008     root@gate.net.local:/usr/obj/usr/src/sys/CUSTOM  i386
>Description:
wget crashes with message:

ssertion failed: (p - bp->buffer <= bp->width), function create_image, file progress.c, line 972.
Abort trap: 6 (core dumped)

>How-To-Repeat:
try to download big file with wget & UTF-8 locale

[squirl@gate ~]$ export LANG=ru_RU.UTF-8
[squirl@gate ~]$ wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-disc1.iso
--2008-05-06 14:37:36--  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-disc1.iso
           => `7.0-RELEASE-i386-disc1.iso'
&#1056;&#1072;&#1089;&#1087;&#1086;&#1079;&#1085;&#1072;&#1105;&#1090;&#1089;&#1103; ftp.freebsd.org... 62.243.72.50, 204.152.184.73, 2001:6c8:6:4::7, ...
&#1059;&#1089;&#1090;&#1072;&#1085;&#1072;&#1074;&#1083;&#1080;&#1074;&#1072;&#1077;&#1090;&#1089;&#1103; &#1089;&#1086;&#1077;&#1076;&#1080;&#1085;&#1077;&#1085;&#1080;&#1077; &#1089; ftp.freebsd.org|62.243.72.50|:21... &#1089;&#1086;&#1077;&#1076;&#1080;&#1085;&#1077;&#1085;&#1080;&#1077; &#1091;&#1089;&#1090;&#1072;&#1085;&#1086;&#1074;&#1083;&#1077;&#1085;&#1086;.
&#1042;&#1099;&#1087;&#1086;&#1083;&#1085;&#1103;&#1077;&#1090;&#1089;&#1103; &#1074;&#1093;&#1086;&#1076; &#1087;&#1086;&#1076; &#1080;&#1084;&#1077;&#1085;&#1077;&#1084; anonymous ... &#1042;&#1099;&#1087;&#1086;&#1083;&#1085;&#1077;&#1085; &#1074;&#1093;&#1086;&#1076; &#1074; &#1089;&#1080;&#1089;&#1090;&#1077;&#1084;&#1091;!
==> SYST ... &#1075;&#1086;&#1090;&#1086;&#1074;&#1086;.  ==> PWD ... &#1075;&#1086;&#1090;&#1086;&#1074;&#1086;.
==> TYPE I ... &#1075;&#1086;&#1090;&#1086;&#1074;&#1086;.   ==> CWD /pub/FreeBSD/releases/i386/ISO-IMAGES/7.0 ... &#1075;&#1086;&#1090;&#1086;&#1074;&#1086;.
==> SIZE 7.0-RELEASE-i386-disc1.iso ... 534177792
==> PASV ... &#1075;&#1086;&#1090;&#1086;&#1074;&#1086;.  ==> RETR 7.0-RELEASE-i386-disc1.iso ... &#1075;&#1086;&#1090;&#1086;&#1074;&#1086;.
&#1044;&#1083;&#1080;&#1085;&#1072;: 534177792 (509M)

 0% [                                                                          ] 2 028 648    680K/s             Assertion failed: (p - bp->buffer <= bp->width), function create_image, file progress.c, line 972.
Abort trap: 6 (core dumped)

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->vd 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue May 6 12:37:40 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123460 
State-Changed-From-To: open->feedback 
State-Changed-By: vd 
State-Changed-When: Tue May 6 13:52:22 UTC 2008 
State-Changed-Why:  
I confirm that wget-1.11 crashes with the same error here, 
but wget-1.11.2 does not. So it must have been fixed upstream. 

Andriy, can you confirm that 1.11.2 does not crash for you? 
(I have just upgraded the ftp/wget port to 1.11.2) 

Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123460 
State-Changed-From-To: feedback->closed 
State-Changed-By: vd 
State-Changed-When: Thu May 15 18:06:26 UTC 2008 
State-Changed-Why:  
Confirmed by the reporter that it does not crash with the latest version. 

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