gcc in qnx 6.2.1

hello,
is there a bug in gcc in qnx 6.2.1? I tried to port gnuplot 4.0 to qnx
6.2.1. It gets run time crash and it turns out the crash happens when
assiging an allocated memory to a variable “char *”. This issue has been
invested and the conclusion is that gcc or qnx might have the bug to
cause it.

BTW, the third party CD for qnx 6.2.1 has glibc, not sure if QNX OS
already includes glibc or I need to install it?

Thanks.