Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail From: Piotr Grzybowski Newsgroups: gnu.bash.bug Subject: Re: Bash crash Date: Thu, 17 Dec 2015 09:27:02 +0100 Lines: 28 Approved: bug-bash@gnu.org Message-ID: References: <56264216.2060606@case.edu> <5672098B.7010100@case.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: usenet.stanford.edu 1450340827 25088 208.118.235.17 (17 Dec 2015 08:27:07 GMT) X-Complaints-To: action@cs.stanford.edu Cc: Kai Wang X , "bug-bash@gnu.org" To: Chester Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=N7T6+y1pqhYa5Phodi+86p/eRIIzh9Y8ZYT/I+jxTRc=; b=UZlVXFWQfGsYPIXBHoeJHQy7J2qZndF9fm9+KKsxbPbMLjEMsjZeYW69WJ1rYqpy79 eaGFq5RWpoQSafjR5ngn17X0FYrX0Qv4rp/hD10Qe0wukwq/0oO6nQxGXa2H/3fyO/yh x9WT16pDo/NfzZreu+QycZqWZ0kDcJ502mbdP/A174FqrbjZzJtpfUSyFu/iGBqv8piH 0oL3Rbq3UgQwZlTMmxR4ZmVD3h32oQFVSWHrr3pC37XZiOAxJkVVTkCg3ziBW+5a1lLa U4iSW5dvdbdxAAIKGIofBMG0PXd+ZEaq/AfjH3WKXaRnhrekKa/XttP2GeFePwYkuEKA qWyw== X-Received: by 10.112.199.194 with SMTP id jm2mr16883956lbc.109.1450340822275; Thu, 17 Dec 2015 00:27:02 -0800 (PST) In-Reply-To: <5672098B.7010100@case.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::236 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:12046 On Thu, Dec 17, 2015 at 2:02 AM, Chet Ramey wrote: > On 12/14/15 2:52 AM, Piotr Grzybowski wrote: >> Hey, >> >> [..] solved the issue by --without-bash-malloc which could indicate a bug or lack of >> proper support in lib/malloc/malloc.c for his platform. However, we >> were unable to get more information, it is not that easy to reproduce. >> If there is no one who can reproduce this we can try again, if you >> think it is worthwhile. [..] > > I think the likely cause is that sbrk() either has a bug or is not > emulated well. I think what I said in > > http://lists.gnu.org/archive/html/bug-bash/2015-10/msg00171.html > > holds true. The likely reason that the system malloc works is that > it doesn't use sbrk(). Sounds reasonable. Then we leave it at that, unless someone wants to port malloc.c to platforms where sbrk needs to be replaced by some other system call. Proper course of action for me would be to run strace on "int main() { malloc(1024); return 1; }" to find out what call is used and introduce some #defines (perfect one: HAS_BROKEN_SBRK). sincerely, pg