Could Garbage Collect feature (in SUN CC 5.0) mess up message
allocated in sub-threads when subthreads terminated?
I have a main thread (X application - Solaris 2.5.1) that communicates
with sub-threads using pipe. Subthread(s) creates a string then
passes its pointer to the main thread. However, the string seems
corrupted when the program is compiled with garbage collector enable
(eg. -ldl -lgc). It works OK without garbage collector.
What is the cause and how to correct/avoid it?