Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11621

posix handling of mapfile: SEGFAULT

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail
From Linda Walsh <bash@tlinx.org>
Newsgroups gnu.bash.bug
Subject posix handling of mapfile: SEGFAULT
Date Sun, 11 Oct 2015 14:57:17 -0700
Lines 56
Approved bug-bash@gnu.org
Message-ID <mailman.104.1444600659.7904.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1444600659 14131 208.118.235.17 (11 Oct 2015 21:57:39 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
User-Agent Thunderbird
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic]
X-Received-From 173.164.175.65
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
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:11621

Show key headers only | View raw


This was in the 2nd half of the note in the read&env+POSIX=>SEGFAULT,
but think it got missed by focus on the 1st part.

# I was doing some syntax testing and decided to try posix mode
# (as it disallows various  vague or unclear constructs)
# in the working cases yielded the same results, but
# in 2 cases it returned a SEGFAULT.

>  b= mapfile b <<< x; echo $?
0
>  declare -p b
Segmentation fault (core dumped)  

# another example of bash not returning consistent errno results
# ( |;>|  ducking while smirking)  ok, I vote for disallowing this
# type of result return.

The 2nd flavor:

>  b= mapfile b a <<< x
>  declare -p a b
bash: declare: a: not found
Segmentation fault (core dumped) 

# odd, this time it dumped on printing 'b'; still not so great
# status returning there...

# hmmm... I'm guessing that fixing these to not return
# segfaults won't be likely to get me better status
# returns for my type -P problems....*sigh*
 

# vitals:
> $0 --version
GNU bash, version 4.3.39(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
> whence bash
bash is /bin/bash
Ishtar:/Torrents/Library/2014Q1> ldd /bin/bash
 linux-vdso.so.1 (0x00007fff396eb000)
 libdl.so.2 => /lib64/libdl.so.2 (0x0000003001400000)
 libc.so.6 => /lib64/libc.so.6 (0x0000003000c00000)
 /lib64/ld-linux-x86-64.so.2 (0x000055da52cbc000)
> uname -a
Linux Ishtar 4.1.0-Isht-Van #2 SMP PREEMPT Tue Jun 23 07:52:09 PDT 2015 
x86_64 x86_64 x86_64 GNU/Linux







Back to gnu.bash.bug | Previous | Next | Find similar


Thread

posix handling of mapfile: SEGFAULT Linda Walsh <bash@tlinx.org> - 2015-10-11 14:57 -0700

csiph-web