Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208484 - net-misc/wget-1.11 crash in utf8 on string: msgid " eta %s"
Summary: net-misc/wget-1.11 crash in utf8 on string: msgid " eta %s"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard: 208484
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-01 20:01 UTC by Maxim Britov
Modified: 2008-02-16 22:12 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch should fix this issue, i believe :) (wget-progress-eta.patch,275 bytes, patch)
2008-02-11 08:22 UTC, Maxim Britov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2008-02-01 20:01:36 UTC
wget crashes here on string:

#. Translation note: "ETA" is English-centric, but this must
#. be short, ideally 3 chars.  Abbreviate if necessary.
#: src/progress.c:948
#, c-format
msgid "  eta %s"
msgid ""

I have here Russian translation. And with ru_RU.URF-8 wget crashes.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
$ wget http://kernel.org/pub/linux/kernel/v2.6/patch-2.6.24.bz2
--2008-02-01 21:54:01--  http://kernel.org/pub/linux/kernel/v2.6/patch-2.6.24.bz2
Распознаётся kernel.org... 204.152.191.5, 204.152.191.37
Устанавливается соединение с kernel.org|204.152.191.5|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: 9714780 (9,3M) [application/x-bzip2]
Сохраняется в каталог: `patch-2.6.24.bz2'.

 0% [>                                                                                                                    ] 88 018     29,5K/s             wget: progress.c:972: create_image: Проверочное утверждение `p - bp->buffer <= bp->width' не выполнено.
Аварийный останов
Comment 1 SpanKY gentoo-dev 2008-02-01 21:58:57 UTC
runs fine for me

please consult the bug reporting page when filing bugs:
http://www.gentoo.org/doc/en/bugzilla-howto.xml

you'll need to provide `emerge --info`.  also, what size terminal are you running in ?  if you set LC_ALL to C, does wget work ?  how about en_US.UTF8 ?
Comment 2 Yevgen 2008-02-02 10:01:06 UTC
(In reply to comment #0)
> wget: progress.c:972: create_image: Проверочное
> утверждение `p - bp->buffer <= bp->width' не выполнено.
> Аварийный останов
> 

Same for me here (ru_UA.UTF8 locale) 
emerge --info:
$ emerge --info
Portage 2.1.4.1 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r5-xa4a-laptop x86_64)
=================================================================
System uname: 2.6.23-gentoo-r5-xa4a-laptop x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
Timestamp of tree: Sat, 02 Feb 2008 09:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.3-r4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -unicode -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -unicode -pipe"
DISTDIR="/mnt/portage/distfiles"
FEATURES="metadata-transfer sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/"
LANG="ru_UA.UTF-8"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion battery berkdb bitmap-fonts bluetooth cli cracklib crypt cups dbus dri dvd encode ffmpeg fortran ftp gdbm gif gpm iconv icq ipv6 isdnlog jpeg kde laptop midi mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt readline reflection session smp sound spl sse sse2 ssl svg tcpd tk truetype truetype-fonts type1-fonts unicode usb vim-syntax wifi xinerama xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

After moving wget from 1.11 back to 1.10.2 it's ok. 
Comment 3 Sergey L. Voronov 2008-02-02 15:11:14 UTC
I have same error with ru_RU.UTF-8 locale. 
If  i set LC_ALL to C or en_US.UTF8 all work fine.
wget-1.10.2 work fine with any locale.

emerge --info
Portage 2.1.4.1 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.7-r1, 2.6.24-gentoo x86_64)
=================================================================
System uname: 2.6.24-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
Timestamp of tree: Fri, 01 Feb 2008 17:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.3-r4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LINGUAS="ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 7zip X acl acpi addbookmarks alias alsa amd64 archive arts autoreplace avahi bash-completion berkdb bitmap-fonts branding cairo cdr chm cli connectionstatus contactnotes cracklib crypt curl daemon dbus disk-partition djvu dri dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox flac fortran fuse gd gdbm gif gpm gstreamer hal highlight history iconv id3tag irc isdnlog jack jingle jpeg jpeg2k kde kerberos ldap lm_sensors mad mdnsresponder-compat midi mikmod mmx mp3 mp4 mpeg mplayer mudflap musicbrainz ncurses nfs nls nptl nptlonly ntfs ogg opengl openmp oscar oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection reiserfs remote samba sdl session slang spell spl sqlite sse sse2 ssl statistics svg tcpd texteffect tiff truetype truetype-fonts type1-fonts unicode usb visualization vnc vorbis xattr xcomposite xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="nv vesa vga nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Maxim Britov 2008-02-04 08:44:44 UTC
(In reply to comment #1)
> you'll need to provide `emerge --info`.  also, what size terminal are you
> running in ?  if you set LC_ALL to C, does wget work ?  how about en_US.UTF8 ?

For me it fails only with LC_ALL=ru_RU.UTF-8
On C or en_US.UTF-8 it works fine.

Comment 5 Maxim Britov 2008-02-05 09:26:46 UTC
Seems fixed in dev: http://hg.addictivecode.org/wget/1.11/
Comment 6 SpanKY gentoo-dev 2008-02-09 22:37:15 UTC
that doesnt really help.  since i'm unable to reproduce, you need to test the changes and find out which one fixes things for you.  then i can add the fix from upstream to our ebuild.
Comment 7 Maxim Britov 2008-02-11 08:22:42 UTC
Created attachment 143188 [details, diff]
Patch should fix this issue, i believe :)

http://hg.addictivecode.org/wget/1.11/rev/5fc91fe66179
Please check patch. It seems work for me here.
Comment 8 Alexey Shvetsov archtester gentoo-dev 2008-02-12 16:57:00 UTC
thanks a lot =)
Thisp patch works for me at least on x86 x86_64 and arm
with unicode locales
Comment 9 Ivan Mironov 2008-02-16 21:13:43 UTC
(In reply to comment #7)
> Created an attachment (id=143188) [edit]
> Patch should fix this issue, i believe :)
> 
> http://hg.addictivecode.org/wget/1.11/rev/5fc91fe66179
> Please check patch. It seems work for me here.
> 

Works for me, thanks.
Comment 10 SpanKY gentoo-dev 2008-02-16 22:12:31 UTC
thanks for testing, the patch has been added to wget-1.11-r1

http://sources.gentoo.org/net-misc/wget/files/wget-1.11-progress-bar-assert.patch?rev=1.1