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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content