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


Groups > gnu.bash.bug > #11752

RE: Bash crash

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From Kai Wang X <kai.x.wang@ericsson.com>
Newsgroups gnu.bash.bug
Subject RE: Bash crash
Date Fri, 23 Oct 2015 05:49:55 +0000
Lines 56
Approved bug-bash@gnu.org
Message-ID <mailman.862.1445579408.7904.bug-bash@gnu.org> (permalink)
References <C2FB93DF99E5FD43B0413EDB326AE2AA2B942E8F@ESGSCMB107.ericsson.se> <56264216.2060606@case.edu> <C2FB93DF99E5FD43B0413EDB326AE2AA2B94421D@ESGSCMB107.ericsson.se> <CAP=cN8n2FKQB+OcB-VWtCcm9A-z5VueUA0XS0F3DgEE3iobUQw@mail.gmail.com> <C2FB93DF99E5FD43B0413EDB326AE2AA2B9445C1@ESGSCMB107.ericsson.se> <CAP=cN8nwCv-1MzwpRedh8NiUvUA4gMdQoFrQa7zsFniOdxJQiQ@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Trace usenet.stanford.edu 1445579408 24386 208.118.235.17 (23 Oct 2015 05:50:08 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Aharon Robbins <arnold@skeeve.com>, "bug-bash@gnu.org" <bug-bash@gnu.org>, "chet.ramey@case.edu" <chet.ramey@case.edu>
To Piotr Grzybowski <narsil.pl@gmail.com>
Envelope-to bug-bash@gnu.org
X-AuditID c1b4fb3a-f79136d0000071e2-6c-5629ca858434
Thread-Topic Bash crash
Thread-Index AdEK4QeCQAYA4Do6QbeN+FY7zNxiHwAF3qAAACpSaFAAA6ONAAAuUAwAAA/gpwAAJtLzAA==
In-Reply-To <CAP=cN8nwCv-1MzwpRedh8NiUvUA4gMdQoFrQa7zsFniOdxJQiQ@mail.gmail.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [146.11.116.128]
X-Brightmail-Tracker H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsUyM+JvjW7bKc0wg5vbVC3Wt/9hs5i1dS2T xY/uHjaL7U3nGB1YPOZO62b32DnrLrtH2zQzj/2TP7IGsERx2aSk5mSWpRbp2yVwZez9VlHQ pVjReekLewPjHIUuRk4OCQETiTOLd7JA2GISF+6tZ+ti5OIQEjjKKLFiyVkWCGcxo8SnpU1g VWwCWhKbDlxmBLFFgOzGvd/BbGaBGomW7lmsILawgLjEj6a1bBA1EhKtO8+yQ9hhEldmvGEG sVkEVCXOHF8CVM/BwSvgK3H7QTTErkZmiYlfN4L1cgoESlw9swrMZgS67vupNUwQu8Qlbj2Z zwRxtYDEkj3nmSFsUYmXj/+xQthKEo2vtjGBzGcW0JRYv0sfolVRYkr3Q7BzeAUEJU7OfMIy gVFsFpKpsxA6ZiHpmIWkYwEjyypG0eLU4uLcdCMjvdSizOTi4vw8vbzUkk2MwAg7uOW31Q7G g88dDzEKcDAq8fAumKIZJsSaWFZcmXuIUYKDWUmEN6QZKMSbklhZlVqUH19UmpNafIhRmoNF SZy3melBqJBAemJJanZqakFqEUyWiYNTqoGxk7tp+hq5s+V85sdvby04bbtm3oHJE2/I3p+4 w6LLJZN3teeNJzET2fzjDFW2/CzNfLqYQ1fN5sq1vT9Ufx/3yP+62UwkZPXGaV5l4lXaEw23 8H77Z7K8++Oz6ofLU2Pj/CrfaXAa/fcUl76z77p+2ybeSe0Cvlz8ZyrDZ2v8qdqRyi4c1jBd iaU4I9FQi7moOBEAQMXzAKwCAAA=
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From 193.180.251.58
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:11752

Show key headers only | View raw


Hi Piotr,

Actually when process com is not needed, "com.sh" will not be launched instead of commenting one line.
I have never tried that. From the coredump log of 4.3, seems it crashed before line 187. (crashed at 114).
Thank you.

-----Original Message-----
From: Piotr Grzybowski [mailto:narsil.pl@gmail.com] 
Sent: 2015年10月23日 1:08
To: Kai Wang X
Cc: chet.ramey@case.edu; Aharon Robbins; bug-bash@gnu.org
Subject: Re: Bash crash

 do I understand correctly, that when you comment the line 187 the issue is not existent?

cheers,
pg


On Thu, Oct 22, 2015 at 4:39 AM, Kai Wang X <kai.x.wang@ericsson.com> wrote:
> Hi all,
>
> Thank you all!
>
> The issue happens since we added a new process launched by a bash script. Before that, no "sbrk issues" were found and hundreds of process including scripts were running in my equipment. So it is hard for me to believe that there are RAM or sbrk issues already exist on my system. Also bash is used by more users world-wide, so ... I am being confused...
>
> The process named "com" launched by script command "com.sh start". Pls refer to the attached files. It looks easy, doesn't it?
>
> @Piotr,
>
> Sure. Every equipment has the possibility of the issue.
>
>
> -----Original Message-----
> From: Piotr Grzybowski [mailto:narsil.pl@gmail.com]
> Sent: 2015年10月21日 19:27
> To: Kai Wang X
> Subject: Re: Bash crash
>
> hello,
>
>  does the problem also appear on other pieces of equipment? I mean, different phisical machine, of the same sort?
>
> pg
>
>
>
>
>
> On Wed, Oct 21, 2015 at 4:29 AM, Kai Wang X <kai.x.wang@ericsson.com> wrote:
>> Hi Chet,
>>
>> Thank you for your response.
>>
>> But it does not make sense since sbrk failure will be checked:
>>
>>   mp = (union mhead *) sbrk (sbrk_amt);
>>
>>   /* Totally out of memory. */
>>   if ((long)mp == -1)
>>     goto morecore_done;
>>
>> The script just runs when my equipment boots up. Also it is hard to reproduce in my environment. Only every few times of my equipment booting up, it generates a coredump file.
>>
>> -----Original Message-----
>> From: Chet Ramey [mailto:chet.ramey@case.edu]
>> Sent: 2015年10月20日 21:31
>> To: Kai Wang X; bug-bash@gnu.org
>> Cc: chet.ramey@case.edu
>> Subject: Re: Bash crash
>>
>> On 10/19/15 10:47 PM, Kai Wang X wrote:
>>> Dear,
>>>
>>>
>>>
>>> We have two products which are using bash 4.2 and 4.3 separately.
>>> They all meet bash crash issue. Please refer to the attached files.
>>>
>>> It is hard for me to understand the bash source code to find the 
>>> root cause out.
>>
>> It really looks like sbrk(2) is failing here, but since I don't have any way to reproduce it, that may not be it.  This could be caused by your process exceeding its memory resource limit or your system's swap space being exhausted.
>>
>> Chet
>>
>> --
>> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>>                  ``Ars longa, vita brevis'' - Hippocrates
>> Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

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


Thread

RE: Bash crash Kai Wang X <kai.x.wang@ericsson.com> - 2015-10-23 05:49 +0000

csiph-web