ltrace crashes with memory corruption due to double free()

Solution Verified - Updated -

Issue

  • On executing the below ksh script under ltrace on 32bit RHEL5, ltrace crashes with memory corruption due to double free().
#!/bin/ksh

echo "Before processing a subshell"

NUMFILES=$(ls | wc -l)

echo "After processing a subshell"

Environment

  • Red Hat Enterprise Linux 5
  • ltrace-0.5-13.45svn.el5_7.12
  • ksh-20100621-5.el5_8.1
  • glibc-2.5-81.el5_8.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.