zsh-workers
 help / color / mirror / code / Atom feed
* [BUG Report] - *** buffer overflow detected ***: -zsh terminated
@ 2019-06-14  9:32 ` hugues dupougetdenadaillac
  2019-06-14  9:49   ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: hugues dupougetdenadaillac @ 2019-06-14  9:32 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 9360 bytes --]

Hello,

I would like to report a bug regarding zsh.

This happened (and it's not the first time) when I logged to my server through SSH with MobaXTerm and execute the following command :
grep -i "error" logfile* | grep -v "error : <Undef>" | grep -v "errorCode : <Undef>"

Some environment variables:
DIRSTACKSIZE=50
HISTSIZE=1000
HISTFILE=/remote/users/hdupougetdenadaillac/.zsh_history
DISABLE_HUGETLBFS=1
VERBOSE=0
NUM_LOGGED_FATAL=0
NUM_LOGGED_ERROR=0
NUM_LOGGED_WARN=0
NUM_LOGGED_INFO=4
TMPDIR=/tmp/hdupougetdenadaillac
EDITOR=vi
TZ=MET
TERMINFO=/usr/share/terminfo
_=/usr/bin/env
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;33:*.tgz=01;33:*.arj=01;33:*.taz=01;33:*.lzh=01;33:*.zip=01;33:*.z=01;33:*.Z=01;33:*.gz=01;33:*.bz2=01;33:*.deb=01;33:*.rpm=01;33:*.jar=01;33:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
COLOR=
fg_bk=
fg_bl=
fg_br=
fg_gr=
fg_gy=
fg_lbl=
fg_lgr=
fg_pu=
fg_rd=
fg_sp=
fg_wh= (blinking)


Memory:
XXXXXXXXX          10G  6.8G  3.3G  68% /remote/users/hdupougetdenadaillac
XXXXXXXXX          99G  5.7G   88G   7% /tmp/hdupougetdenadaillac

OS:
$> lsb_release -a
LSB Version:    n/a
Distributor ID: SUSE LINUX
Description:    SUSE Linux Enterprise Server 11 (x86_64)
Release:        11
Codename:       n/a

Other infos:
$> zsh --version
zsh 4.3.6 (x86_64-suse-linux-gnu)
$> uname -a
Linux myMachineNameXXX 2.6.32.23-0.3-default #1 SMP 2010-10-07 14:57:45 +0200 x86_64 x86_64 x86_64 GNU/Linux

Cannot run dmicode or equivalent, I am not root
Machine has 12 CPU and 24Gb of RAM with a swap enable but set to 0Kb


During the printing of grep, this happens (first line, 256colorxterm, has been repeated like more than hundred times, so I only display last ones):
256colorxterm-256colorxterm-256colorxterm-256colorxterm-256colorxterm-256colorxterm-256colorxterm-256colorxterm-256colorxterm-256color
*** buffer overflow detected ***: -zsh terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f1c7daef147]
/lib64/libc.so.6(+0xe8de0)[0x7f1c7daecde0]
/lib64/libc.so.6(+0xe80d9)[0x7f1c7daec0d9]
/lib64/libc.so.6(_IO_default_xsputn+0x85)[0x7f1c7da77705]
/lib64/libc.so.6(_IO_vfprintf+0x3716)[0x7f1c7da4a656]
/lib64/libc.so.6(__vsprintf_chk+0x9d)[0x7f1c7daec17d]
/lib64/libc.so.6(__sprintf_chk+0x80)[0x7f1c7daec0c0]
-zsh[0x483568]
-zsh(spckword+0x38e)[0x489c7e]
-zsh(exalias+0x250)[0x448a00]
-zsh(yylex+0x185)[0x44aae5]
-zsh(parse_event+0x24)[0x46a494]
-zsh(loop+0x62)[0x43f632]
-zsh(zsh_main+0x1ce)[0x440c7e]
/lib64/libc.so.6(__libc_start_main+0xe6)[0x7f1c7da22bc6]
-zsh[0x40f8d9]
======= Memory map: ========
00400000-004a2000 r-xp 00000000 fd:00 76076                              /bin/zsh
006a1000-006a2000 r--p 000a1000 fd:00 76076                              /bin/zsh
006a2000-006a8000 rw-p 000a2000 fd:00 76076                              /bin/zsh
006a8000-00941000 rw-p 00000000 00:00 0                                  [heap]
7f1c7c958000-7f1c7c96e000 r-xp 00000000 fd:00 8306                       /lib64/libgcc_s.so.1
7f1c7c96e000-7f1c7cb6d000 ---p 00016000 fd:00 8306                       /lib64/libgcc_s.so.1
7f1c7cb6d000-7f1c7cb6e000 r--p 00015000 fd:00 8306                       /lib64/libgcc_s.so.1
7f1c7cb6e000-7f1c7cb6f000 rw-p 00016000 fd:00 8306                       /lib64/libgcc_s.so.1
7f1c7cb6f000-7f1c7cb7f000 r-xp 00000000 fd:00 166165                     /usr/lib64/zsh/4.3.6/zsh/computil.so
7f1c7cb7f000-7f1c7cd7e000 ---p 00010000 fd:00 166165                     /usr/lib64/zsh/4.3.6/zsh/computil.so
7f1c7cd7e000-7f1c7cd7f000 r--p 0000f000 fd:00 166165                     /usr/lib64/zsh/4.3.6/zsh/computil.so
7f1c7cd7f000-7f1c7cd80000 rw-p 00010000 fd:00 166165                     /usr/lib64/zsh/4.3.6/zsh/computil.so
7f1c7cd80000-7f1c7cd88000 r-xp 00000000 fd:00 166178                     /usr/lib64/zsh/4.3.6/zsh/parameter.so
7f1c7cd88000-7f1c7cf88000 ---p 00008000 fd:00 166178                     /usr/lib64/zsh/4.3.6/zsh/parameter.so
7f1c7cf88000-7f1c7cf89000 r--p 00008000 fd:00 166178                     /usr/lib64/zsh/4.3.6/zsh/parameter.so
7f1c7cf89000-7f1c7cf8a000 rw-p 00009000 fd:00 166178                     /usr/lib64/zsh/4.3.6/zsh/parameter.so
7f1c7cf8a000-7f1c7cf8d000 r-xp 00000000 fd:00 166180                     /usr/lib64/zsh/4.3.6/zsh/rlimits.so
7f1c7cf8d000-7f1c7d18d000 ---p 00003000 fd:00 166180                     /usr/lib64/zsh/4.3.6/zsh/rlimits.so
7f1c7d18d000-7f1c7d18e000 r--p 00003000 fd:00 166180                     /usr/lib64/zsh/4.3.6/zsh/rlimits.so
7f1c7d18e000-7f1c7d18f000 rw-p 00004000 fd:00 166180                     /usr/lib64/zsh/4.3.6/zsh/rlimits.so
7f1c7d18f000-7f1c7d196000 r-xp 00000000 fd:00 166192                     /usr/lib64/zsh/4.3.6/zsh/zutil.so
7f1c7d196000-7f1c7d395000 ---p 00007000 fd:00 166192                     /usr/lib64/zsh/4.3.6/zsh/zutil.so
7f1c7d395000-7f1c7d396000 r--p 00006000 fd:00 166192                     /usr/lib64/zsh/4.3.6/zsh/zutil.so
7f1c7d396000-7f1c7d397000 rw-p 00007000 fd:00 166192                     /usr/lib64/zsh/4.3.6/zsh/zutil.so
7f1c7d397000-7f1c7d3b9000 r-xp 00000000 fd:00 166163                     /usr/lib64/zsh/4.3.6/zsh/complete.so
7f1c7d3b9000-7f1c7d5b9000 ---p 00022000 fd:00 166163                     /usr/lib64/zsh/4.3.6/zsh/complete.so
7f1c7d5b9000-7f1c7d5ba000 r--p 00022000 fd:00 166163                     /usr/lib64/zsh/4.3.6/zsh/complete.so
7f1c7d5ba000-7f1c7d5bb000 rw-p 00023000 fd:00 166163                     /usr/lib64/zsh/4.3.6/zsh/complete.so
7f1c7d5bb000-7f1c7d5bc000 rw-p 00000000 00:00 0
7f1c7d5bc000-7f1c7d5f7000 r-xp 00000000 fd:00 166187                     /usr/lib64/zsh/4.3.6/zsh/zle.so
7f1c7d5f7000-7f1c7d7f7000 ---p 0003b000 fd:00 166187                     /usr/lib64/zsh/4.3.6/zsh/zle.so
7f1c7d7f7000-7f1c7d7f8000 r--p 0003b000 fd:00 166187                     /usr/lib64/zsh/4.3.6/zsh/zle.so
7f1c7d7f8000-7f1c7d7ff000 rw-p 0003c000 fd:00 166187                     /usr/lib64/zsh/4.3.6/zsh/zle.so
7f1c7d7ff000-7f1c7d803000 r-xp 00000000 fd:00 8275                       /lib64/libattr.so.1.1.0
7f1c7d803000-7f1c7da02000 ---p 00004000 fd:00 8275                       /lib64/libattr.so.1.1.0
7f1c7da02000-7f1c7da03000 r--p 00003000 fd:00 8275                       /lib64/libattr.so.1.1.0
7f1c7da03000-7f1c7da04000 rw-p 00004000 fd:00 8275                       /lib64/libattr.so.1.1.0
7f1c7da04000-7f1c7db58000 r-xp 00000000 fd:00 8201                       /lib64/libc-2.11.1.so
7f1c7db58000-7f1c7dd58000 ---p 00154000 fd:00 8201                       /lib64/libc-2.11.1.so
7f1c7dd58000-7f1c7dd5c000 r--p 00154000 fd:00 8201                       /lib64/libc-2.11.1.so
7f1c7dd5c000-7f1c7dd5d000 rw-p 00158000 fd:00 8201                       /lib64/libc-2.11.1.so
7f1c7dd5d000-7f1c7dd62000 rw-p 00000000 00:00 0
7f1c7dd62000-7f1c7ddb7000 r-xp 00000000 fd:00 8209                       /lib64/libm-2.11.1.so
7f1c7ddb7000-7f1c7dfb6000 ---p 00055000 fd:00 8209                       /lib64/libm-2.11.1.so
7f1c7dfb6000-7f1c7dfb7000 r--p 00054000 fd:00 8209                       /lib64/libm-2.11.1.so
7f1c7dfb7000-7f1c7dfb8000 rw-p 00055000 fd:00 8209                       /lib64/libm-2.11.1.so
7f1c7dfb8000-7f1c7e003000 r-xp 00000000 fd:00 8267                       /lib64/libncursesw.so.5.6
7f1c7e003000-7f1c7e202000 ---p 0004b000 fd:00 8267                       /lib64/libncursesw.so.5.6
7f1c7e202000-7f1c7e206000 r--p 0004a000 fd:00 8267                       /lib64/libncursesw.so.5.6
7f1c7e206000-7f1c7e20c000 rw-p 0004e000 fd:00 8267                       /lib64/libncursesw.so.5.6
7f1c7e20c000-7f1c7e20e000 r-xp 00000000 fd:00 8207                       /lib64/libdl-2.11.1.so
7f1c7e20e000-7f1c7e40e000 ---p 00002000 fd:00 8207                       /lib64/libdl-2.11.1.so
7f1c7e40e000-7f1c7e40f000 r--p 00002000 fd:00 8207                       /lib64/libdl-2.11.1.so
7f1c7e40f000-7f1c7e410000 rw-p 00003000 fd:00 8207                       /lib64/libdl-2.11.1.so
7f1c7e410000-7f1c7e414000 r-xp 00000000 fd:00 8295                       /lib64/libcap.so.2.11
7f1c7e414000-7f1c7e613000 ---p 00004000 fd:00 8295                       /lib64/libcap.so.2.11
7f1c7e613000-7f1c7e614000 r--p 00003000 fd:00 8295                       /lib64/libcap.so.2.11
7f1c7e614000-7f1c7e615000 rw-p 00004000 fd:00 8295                       /lib64/libcap.so.2.11

If you need any additional informations, don't hesitate to ask me but keep in mind that I do not have root privileges.

Regards,

Hugues de Nadaillac
--------------------------------------------------------------------
Hugues du Pouget de Nadaillac
Étudiant à EPITECH<http://www.epitech.eu> - Tek5 - dupoug_h<https://intra.epitech.eu/user/hugues.dupougetdenadaillac@epitech.eu> <https://intra.epitech.eu/user/dupoug_h/> - PARIS 2018
@  : hugues.dupougetdenadaillac@epitech.eu<mailto:hugues.dupougetdenadaillac@epitech.eu>
Tél : 0780069671
--------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG Report] - *** buffer overflow detected ***: -zsh terminated
  2019-06-14  9:32 ` [BUG Report] - *** buffer overflow detected ***: -zsh terminated hugues dupougetdenadaillac
@ 2019-06-14  9:49   ` Peter Stephenson
  2019-06-14 10:20     ` hugues dupougetdenadaillac
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2019-06-14  9:49 UTC (permalink / raw)
  To: hugues dupougetdenadaillac, zsh-workers

On Fri, 2019-06-14 at 09:32 +0000, hugues dupougetdenadaillac wrote:
> I would like to report a bug regarding zsh.
> 
> This happened (and it's not the first time) when I logged to my server
> through SSH with MobaXTerm and execute the following command : 
> grep -i "error" logfile* | grep -v "error : <Undef>" | grep -v "errorCode : <Undef>"
>
> $> zsh --version
> zsh 4.3.6 (x86_64-suse-linux-gnu)

4.3.6 is a bit ancient, I'm afraid --- I do realise you don't have the
privileges to upgrade yourself but looking at the archive it's over ten
years out of date so nothing much is going to happen without an update
to the most recent, which is 5.7.1.

From the backtrace it looks like the crash happened when the spell check
function was running.  Have you got the CORRECT or CORRECTALL option
set?

Bonne chance
pws


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [BUG Report] - *** buffer overflow detected ***: -zsh terminated
  2019-06-14  9:49   ` Peter Stephenson
@ 2019-06-14 10:20     ` hugues dupougetdenadaillac
  0 siblings, 0 replies; 3+ messages in thread
From: hugues dupougetdenadaillac @ 2019-06-14 10:20 UTC (permalink / raw)
  To: Peter Stephenson, zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1752 bytes --]

Hi Peter,

I didn't though that my company was running a too ancient zsh version, so I could guess that this issue has been fixed since a while.
However to answer your question, yes I do.

--------------------------------------------------------------------
Hugues du Pouget de Nadaillac
Étudiant à EPITECH<http://www.epitech.eu> - Tek5 - dupoug_h<https://intra.epitech.eu/user/hugues.dupougetdenadaillac@epitech.eu> <https://intra.epitech.eu/user/dupoug_h/> - PARIS 2018
@  : hugues.dupougetdenadaillac@epitech.eu<mailto:hugues.dupougetdenadaillac@epitech.eu>
Tél : 0780069671
--------------------------------------------------------------------
________________________________
De : Peter Stephenson <p.stephenson@samsung.com>
Envoyé : vendredi 14 juin 2019 11:49
À : hugues dupougetdenadaillac; zsh-workers@zsh.org
Objet : Re: [BUG Report] - *** buffer overflow detected ***: -zsh terminated

On Fri, 2019-06-14 at 09:32 +0000, hugues dupougetdenadaillac wrote:
> I would like to report a bug regarding zsh.
>
> This happened (and it's not the first time) when I logged to my server
> through SSH with MobaXTerm and execute the following command :
> grep -i "error" logfile* | grep -v "error : <Undef>" | grep -v "errorCode : <Undef>"
>
> $> zsh --version
> zsh 4.3.6 (x86_64-suse-linux-gnu)

4.3.6 is a bit ancient, I'm afraid --- I do realise you don't have the
privileges to upgrade yourself but looking at the archive it's over ten
years out of date so nothing much is going to happen without an update
to the most recent, which is 5.7.1.

From the backtrace it looks like the crash happened when the spell check
function was running.  Have you got the CORRECT or CORRECTALL option
set?

Bonne chance
pws


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-14 10:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20190614093314epcas1p2248901889fa7c4f6d5c5a9565fc0bde8@epcas1p2.samsung.com>
2019-06-14  9:32 ` [BUG Report] - *** buffer overflow detected ***: -zsh terminated hugues dupougetdenadaillac
2019-06-14  9:49   ` Peter Stephenson
2019-06-14 10:20     ` hugues dupougetdenadaillac

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).