From: Luke P. <lop...@wi...> - 2004-08-31 16:34:09
|
Hello, I've noticed some daemons having trouble running on bproc nodes, usually complaining about child processes dying. I'm running pre6 with 2.6.7, libraries via an NFS mount. Attached is a simple pthreads test program. It runs fine on the master, but segfaults when running via bpsh. I've attached the last few lines of an strace of the test program. Looks fishy. Would others mind trying this test program, and commenting on their findings? Thanks -Luke clone(child_stack=0x40817b08, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED, parent_tidptr=0x40817bf8, {entry_number:6, base_addr:0x40817bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0x40817bf8) = -1 EFAULT (Bad address) --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ #include <iostream> #include <pthread.h> #include <stdlib.h> using namespace std; void *task(void *arg) { for (;;) { cout << (char *)arg; cout.flush(); } return NULL; } int main() { pthread_t t1; if ( pthread_create(&t1, NULL, task, (void *)"1") != 0 ) { cout << "pthread_create() error" << endl; abort(); } task((void *)"2"); } |