![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ftp hang | rcunn87 | Shell Programming and Scripting | 4 | 07-14-2006 03:13 PM |
| system hang | ajay234 | Red Hat | 1 | 06-15-2006 12:32 PM |
| How to write my own version of pthread_join() | bigblop | UNIX for Dummies Questions & Answers | 1 | 03-25-2005 12:18 AM |
| Hang a Process | laila63 | SuSE | 6 | 06-30-2004 12:57 PM |
| Help for Linux hang up | andysastre | Linux | 1 | 09-02-2003 02:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
pthread_join hang on glibc2.5
Hello All,
The problem i'm experiencing is with the following code: #include <pthread.h> #include <stdio.h> int main(void) { (void) pthread_join(155555, NULL); printf("done"); return 0; } I'm getting on terminal segmentation fault . System used: CentOS release 5 (Final) Kernel: 2.6.18-53.1.4.el5 GCC : gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52) GLIBC:GNU C Library stable release version 2.5, by Roland McGrath et al. Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.1.1 20061011 (Red Hat 4.1.1-30). Compiled on a Linux 2.6.9 system on 2007-03-14. pthread_join according to the man should return ERROR in case the thread doesn't exist. I checked the same code on Red Hat 9 ,2.4.20-31.9, gcc 3.4.3 and GLIBC 2.3.2 and the code returns Error code as expected. This looks to me as very common use of pthread_join and yet i can't find reference on the web about this error, nor bug listed. Can someone help ? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|