hteditor gets killed because a stack smash attack is detected. Reproducible: Always Steps to Reproduce: 1. start hteditor in console ( 'ht' ) 2. Open a file, e.g. /bin/cat with F3 and browse to /bin/cat (or any other linux-binary, "normal" files seem to work) and hit enter Actual Results: File Edit Windows Help 22:45 15.07.2008 ┌─[x]────────────────────────────────────────────────────────── log window ───────────────────────────────────────────────────────────1───┐ │*** stack smashing detected ***: ht - terminated │ │(c) 1999-2004 Stefan Weyergraf ht: stack smashing attack in function void AnalyserOutput::generateAddr(Address*, OutAddr*) - terminated Sebastian Biallas <sb@biallas.net> │ │appname = ht Report to http://bugs.gentoo.org/ │ │couldn't load configuration file, using defaulKilled │ │loading binary file /bin/cat... │ > [~] $ t: ELF: found header at 0x00000000 │ │/bin/cat: ELF: loading image (starting analyser)... Expected Results: No stack smasching :) emerge --info Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-hardened-r1 i686) ================================================================= System uname: 2.6.25-hardened-r1 i686 Intel(R) Pentium(R) M processor 1.60GHz Timestamp of tree: Tue, 15 Jul 2008 16:45:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" 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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo " MAKEOPTS="-j 2" 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.europe.gentoo.org/gentoo-portage" USE="X acpi arts bzip2 cifs crypt cxx dbus doc hal hardened ipv6 jpeg kde kdeenablefinal kdehiddenvisibility mmx mmxext nls nptl opengl pic python readline samba sse sse2 ssl threads unicode x86 xinerama" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm asym dmix empty iec958 ioplug plug 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" USERLAND="GNU" VIDEO_CARDS="i810 vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Sry, pls correct the summary. It is 'hteditor' and not 'htedit'.
Another dupe of the ssp & c++ bug. (more pain than it's worth).. Tempted to add CXXFLAGS="-fno..." to make.defaults
I just released ht 2.0.16 which should fix this problem.
(In reply to comment #3) > I just released ht 2.0.16 which should fix this problem. > thanks, so closing this because of above comment and: 2.0.17 is going stable wrt bug 324353 2.0.18 is also in portage (added today)