This archive contains a reproducer for a seg fault that occurs when
trying to unload (dlclose()) a C++ shared object.  A successful run of
the program will produce the following output:

initMe
runMe


One failure the same output will be printed with the additional line
"Memory fault (core dumped)".  Examining the backtrace of the fault
with gdb shows the following trace:

(gdb) bt
#0  0xb82b3329 in __gnu_cxx::__exchange_and_add (__mem=0x0, __val=-1)
    at atomicity.cc:36
#1  0xb8258471 in ~locale (this=0xb838d7fc)
    at /home/builder/hudson/650-gcc-4.4/svn/linux-x86-o-ntox86/i486-pc-nto-qnx6.5.0/pic/libstdc++-v3/include/ext/atomicity.h:79
#2  0xb8264aa9 in ~basic_filebuf (this=0xb838d7e0)
    at /home/builder/hudson/650-gcc-4.4/svn/linux-x86-o-ntox86/i486-pc-nto-qnx6.5.0/pic/libstdc++-v3/include/streambuf:193
#3  0xb032b734 in __cxa_finalize ()
   from /usr/qnx650/target/qnx6/x86/lib/libc.so.3
#4  0xb833fdd7 in ?? ()
#5  0xb8388200 in ?? ()
#6  0x00000000 in ?? ()

Removing libstdc++ from the link line of cxxrunner will produce a
successful run.
