Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195364 - sys-apps/less-408: crashes when searching in latin1 input on utf8 system
Summary: sys-apps/less-408: crashes when searching in latin1 input on utf8 system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 12:15 UTC by Matthias Schwarzott
Modified: 2007-10-13 09:48 UTC (History)
0 users

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


Attachments
Input file used to crash less (extrecmenu.diff,113.14 KB, patch)
2007-10-10 12:16 UTC, Matthias Schwarzott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2007-10-10 12:15:16 UTC
sys-apps/less-408 crashes when searching in latin1 input text on utf8 system.

(gdb) bt
#0  0x0804c0cc in put_wchar (pp=0xafba7288, ch=0) at charset.c:622
#1  0x08059067 in cvt_text (odst=0x80692b0 "-    \"Nime䭩­­­­­­­­­­­­­", osrc=<value optimized out>,
    lenp=0xafba72f0, ops=<value optimized out>) at search.c:154
#2  0x080596ff in search_range (pos=17561, endpos=-1, search_type=<value optimized out>, matches=1, maxlines=-1,
    plinepos=0xafba7340, pendpos=0x0) at search.c:1100
#3  0x0805a150 in search (search_type=1, pattern=0x80648c0 "xxx", n=1) at search.c:1300
#4  0x0804e4ed in multi_search (pattern=0x80648c0 "xxx", n=1) at command.c:800
#5  0x0804e661 in exec_mca () at command.c:196
#6  0x0804edcc in commands () at command.c:524
#7  0x08049c48 in main (argc=1, argv=0xafba74d8) at main.c:286
#8  0xa7dc09c0 in __libc_start_main () from /lib/libc.so.6
#9  0x080495e1 in _start ()

$ emerge --info
Portage 2.1.3.12 (default-linux/x86/2007.0/desktop, gcc-4.2.1, glibc-2.6.1-r0, 2.6.22-suspend2-r2 i686)
=================================================================
System uname: 2.6.22-suspend2-r2 i686 AMD Athlon(tm) XP 3000+
Timestamp of tree: Unknown
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.3.6-r2, 2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r3
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -mtune=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-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/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -mtune=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/my-distfiles"
FEATURES="autoaddcvs ccache collision-detect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms sign splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.mneisen.org/gentoo http://gentoo.mneisen.org/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="de en en_GB"
PKGDIR="/usr/my-packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/zzam /usr/local/overlays/vdr/experimental /usr/local/overlays/vdr/vdr-1.5 /usr/local/overlays/vdr/testing /usr/local/overlays/layman/sunrise /usr/local/overlays/layman/musicbrainz /usr/local/overlays/gentoo.de /usr/local/overlays/dev-overlay"
SYNC="cvs://zzam@cvs.gentoo.org:/var/cvsroot"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi alsa amr apache2 artswrappersuid audacious berkdb bitmap-fonts bluetooth bzip2 cairo cap caps cdaudio cddb cdparanoia cdr cli cracklib crypt cups curl dbus doc dri dts dvb dvd dvdr dvdread eds emboss encode evo exif fam fbcon ffmpeg firefox font-server fortran fuse gcj gdbm gif gimpprint glut gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 hal hbci iconv imap ipv6 isdnlog java jpeg jpeg2k kde kdexdeltas kerberos libdvdread lirc logitech-mouse mad midi mikmod mjpeg mmx mmxext mng mp3 mpeg mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin nvram offensive ogg opengl openmp oss pam pcre pdf perl php png ppds pppd projectx python qt3 qt3support qt4 quotes readline reflection regex samba session sms sndfile spell spl sql sqlite sse ssl svg taglib tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vdr visualization vorbis webdav win32codecs wma wmf x264 x86 xcomposite xinerama xml xorg xrandr xslt xv xvid zlib zvbi" ALSA_CARDS="emu10k1 intel8x0" 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" CAMERAS="ptp2" DVB_CARDS="ttpci usb-wt220u dibusb-usb2 usb-dib0700" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text xosd" LINGUAS="de en en_GB" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="nvidia v4l vesa vbdev nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthias Schwarzott gentoo-dev 2007-10-10 12:16:11 UTC
Created attachment 133060 [details, diff]
Input file used to crash less
Comment 2 Matthias Schwarzott gentoo-dev 2007-10-13 09:48:00 UTC
Fixed with less-409