Home
Developer Resources
Technical Articles

QNX Technical Articles

QNX® Momentics® 6.3.0 SP2 PE and SE Debug Malloc Library Patch (Patch ID 155) Release Notes

QNX® Momentics® 6.3.0 SP2 PE and SE

Date of this edition: May 12, 2006

Target OS: QNX® Neutrino® 6.3.0 SP2 for Renesas SuperH target platforms

Host OS: Microsoft Windows XP SP1 and SP2, 2000 SP4, or NT SP6a; Sun Solaris 7, 8, 9, or 10; QNX® Neutrino® 6.3.0 SP2; Linux Red Hat 8, 9, or Enterprise WS 3 or 4


Note: For the most up-to-date version of these notes, go to our website (www.qnx.com), log into your myQNX account, and then go to the Download Center.

Contents

Throughout this document, you may see reference numbers associated with particular issues, changes, etc. When corresponding with our Technical Support staff about a given issue, please quote the relevant reference number. You might also find the reference numbers useful for tracking issues as they become fixed.

What's in this patch?

Binaries

This patch contains updates to the following:

  • libmalloc.so.2
  • libmallocS.a

Installed files

These files are installed under $QNX_TARGET/:

  • shle/usr/lib/libmalloc.so.2
  • shle/usr/lib/libmallocS.a
  • shle/usr/lib/malloc_g/libmalloc.so.2
  • shle/usr/lib/malloc_g/libmallocS.a

Fixed issues

The debug malloc library in 6.3.0 SP2 for SHLE passes in a special flag when it needs to allocate memory from the kernel using mmap(). This flag tells the 6.3.0 SP2 SHLE kernel not to set the contents of allocated memory to zeros. This flag will not be recognized in the later version of the SHLE kernel, therefore, will cause compatibility problems when you apply the QNX Neutrino Core OS 6.3.2 on a 6.30 SP2 system. The fix is to not set this flag by default. (Ref# 27639)

Known issues

On Windows hosts, $QNX_TARGET/shle/usr/lib/libmalloc.so and $QNX_TARGET/shle/usr/lib/malloc_g/libmalloc.so aren't updated correctly. On other hosts, these are symbolic links to the .so.2 versions. (Ref# 38744)

Workaround: Copy the .so.2 versions on top of the .so versions. For example, if you're running ksh, do the following:

cd $QNX_TARGET/shle/usr/lib
cp libmalloc.so.2 libmalloc.so
cp malloc_g/libmalloc.so.2 malloc_g/libmalloc.so
  

Technical support

If you have any questions, comments, or problems with a QNX product, please contact Technical Support. For more information, see the How to Get Help chapter of the Welcome to QNX Momentics guide or visit our website, www.qnx.com.