bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug with declarative arrays


From: Emilio PastorMira
Subject: Bug with declarative arrays
Date: Thu, 18 Feb 2016 16:39:36 +0000

Hello everybody,

 

I believe I have a relevant bug to report. My company uses bash extensively and we would like to contribute!

 

The bug I found is related to the possibility of obtaining all keys of a declarative array at once (${!ARRAY[@]} syntax). It seems that every time such a call is done there is memory allocation, which is NOT deallocated when the corresponding scope ends. This produces a memory leak.

 

In the attachment there is a simple script with an endless loop. As long as it runs the memory usage will increase.

 

SYSTEM:

-          Debian 8  linux kernel 3.16.0-4-amd64

-          Bash version 4.3.30(1) x86_64-pc-linux-gnu

 

 

I also search the documentation to see I was misusing the syntax, but I could not find such a explanation. My apologies if I oversaw something.

 

 

Thanks in advance,

Emilio Pastor Mira

 

 

 

Emilio Pastor Mira

 

Utimaco IS GmbH  

Germanusstr. 4  

DE-52080 Aachen 

Email: Emilio.pastormira@utimaco.com

Website: hsm.utimaco.com

 

 




Utimaco IS GmbH

Seat: Aachen – Registergericht Aachen HRB 18922
VAT ID No.: DE 815 496 496
Managementboard: Malte Pollmann (Chairman) CEO, Dr. Frank J. Nellissen CFO

Wichtiger Hinweis:
Diese E-Mail kann Betriebs- und Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die E-Mail. Der Absender hat alle erdenklichen Vorsichtsmaßnahmen getroffen, dass die Anlagen dieser E-Mail frei von Computerviren o. Ä. sind. Gleichwohl schließen wir die Haftung für jeden Schaden aus, der durch Computerviren o. Ä. verursacht wurde, soweit wir nicht vorsätzlich oder grob fahrlässig gehandelt haben. Wir raten Ihnen, dass Sie in jedem Fall Ihre eigene Virenprüfung vornehmen, bevor Sie die Anlagen öffnen. Vielen Dank.

Important Notice:
The information contained in this email message may be confidential information. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. Please inform us immediately and destroy the email. We have taken every reasonable precaution to ensure that any attachment to this email has been swept for viruses. However, we cannot accept liability for any damage sustained as a result of software viruses and would advise that you carry out your own virus checks before opening any attachment. Thank you for your cooperation.

Attachment: bash_bug_report.sh
Description: bash_bug_report.sh


reply via email to

[Prev in Thread] Current Thread [Next in Thread]