Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14210
| Path | csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Thomas Fischer <tjfischer98@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Sequence Brace Expansion Crash |
| Date | Sat, 2 Jun 2018 21:18:14 -0700 |
| Lines | 40 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1045.1528032062.1292.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Trace | usenet.stanford.edu 1528032063 4500 208.118.235.17 (3 Jun 2018 13:21:03 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Akr3O1FIlj3zEDkAcyv9ibtFObinUO96l7KZ/jvCavc=; b=h3UlsQ3EoBsaLER9kceC9njaFVgVSA2XwEmUDER+uJAIRQuOwl1VyniOJCwxGp5d2T T5nHYoMKM4RLiZmLeEviFI1pVcash3V7UhrLtu3HMqczqsFtqCtF+nXLKivRNZsIkjpx 0XQ4m+VqFoy0+hlyNQh5KXWmkuHlpGka+nQX3U652DAy/yUGViZrzp6+tqLZYvJxyC/U 8sKb+cDjTEMIsJ1UAt7+H4CSIbsP46UcDhPyulVFdMHViS6B6to9Aylj3SiALeSjc+kh s9+LZmeqrG4LfPfKX89QYq0GN7MrdEUX1Xy4iaqw0lzFCiYa/vRHozv88CFHfDsbw5yy FNGQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Akr3O1FIlj3zEDkAcyv9ibtFObinUO96l7KZ/jvCavc=; b=P/6/hdKGckZWwaEq6Q9wunCn0ik+KTikjOorhl9JcTKmO2HczQbuKfDmC8V2pHXlrW L1858w1fIgdeH055QgeuYGKPWSa3yh1Vi7MSSRRjDyyfJxD3O/tACQHviXuAVbUJC/x2 2naVb90uvHABatKsTVZotCxaygRL1fN2A5KAd5KJEiPtUesOJdPZsBjh0wMOyUqkLjHm bW/72ikR2fGMQv2TT8tpVGBoz5kFigRufc5skBlQGx4XWxIUaeEIMQ73ZS4zWQWgxkOb 5pFRltfISWEgr/2BbW5ZX8woZc3llcQ9cIsmrhlEz6YRqc+qmEluehubAig13DG2d9Aw XItg== |
| X-Gm-Message-State | APt69E0qZmMLVKNFs30GJD1su4uPQMxwl1VMH1KPbdCq3Oqs+ZAj4n42 ml0s7AgmnVy3TA/9v883btN3+JERZBdC/MtHduw= |
| X-Google-Smtp-Source | ADUXVKJGpsJFqFlAbJOE7fv+JAjdLK241yJZHz/JAyaZs2BS2nbZjpvbZMC+m4PH3T9kGWCvaOfmxNUQ5VlvmKkqabk= |
| X-Received | by 2002:a6b:c585:: with SMTP id v127-v6mr17470724iof.85.1527999495280; Sat, 02 Jun 2018 21:18:15 -0700 (PDT) |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2607:f8b0:4001:c06::233 |
| X-Mailman-Approved-At | Sun, 03 Jun 2018 09:21:00 -0400 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.21 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14210 |
Show key headers only | View raw
From: thomas
To: bug-bash@gnu.org
Subject: Sequence Brace Expansion Crash
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -D_FORTIFY_SOURCE=2
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin'
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc'
-DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS
-Wno-parentheses -Wno-format-security
uname output: Linux archlinux 4.16.13-1-ARCH #1 SMP PREEMPT Thu May 31
23:29:29 UTC 2018 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu
Bash Version: 4.4
Patch Level: 19
Release Status: release
Description:
I was testing brace expansion, and found that if bash uses too much memory
during the expansion, it will simply be killed.
Repeat-By:
echo {a..z}{a..z}{a..z}{a..z}{a..z}{a..z}
Amusingly, this is the only command I've used that has actually caused a
swap.
Fix:
There should probably be a check somewhere, so that when too much memory is
used, an error is thrown rather than crashing. Or computing the
permutations of the expansion and exiting before the calculation might work.
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Sequence Brace Expansion Crash Thomas Fischer <tjfischer98@gmail.com> - 2018-06-02 21:18 -0700
csiph-web