Why does set_qos() crash in /lib/libc.so?

Note: Applies to RTI Connext 4.x and above and Red Hat Enterprise Linux 5.

If DDS_DomainParticipantFactory_set_qos() crashes, the stack trace begins with

free () from /lib/libc.so.6

and if you're making any calls to mlockall(), explicitly or implicitly, you may be running into a known bug in glibc on Linux.

Please make sure you have the latest system patches to RHEL5.