Subj : __pthread_internal_tsd_set SIGSEGV on malloc To : comp.programming.threads From : fathead Date : Thu Apr 21 2005 01:12 pm I'm stumped... Compiling the following program with c++ test.cpp -pthread OR OR g++ test.cpp -pthread, I get an identical binary. It's slightly different if I use gcc test.cpp -pthread -lstdc++, but, both binaries give a segmentation fault in __pthread_internal_tsd_set () from /lib/libpthread.so.0 at the point of the malloc (I see "Hello, World!"). Note, I'm cross-compiling for i586 with OpenEmbedded. All the OpenEmbedded packages run fine. Does anyone know what might be causing this? #include #include int main() { char buf[32] = "Hello, World!"; void* buf2; printf("%s\n", buf); buf2 = malloc(4); if (buf2 != NULL) printf("Yay!\n"); else printf("%s\n", "No such luck, mister..."); return 0; } - Zeri .