The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1 (permalink)  
Old 11-04-2008
crocodil crocodil is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 1
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 ?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0