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.pastorm...@utimaco.com<mailto:oliver.muel...@utimaco.com>
Website: hsm.utimaco.com<http://www.utimaco.com/hsm>



________________________________

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