Thread: Using POSIX thread in Linux

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    17

    Using POSIX thread in Linux

    Hello,

    I am using POSIX threads in my C program. The program reads integer values from a file to process. I get a Segmentation fault (core dumped) error during execution when I have more than 6 integers in my input file. The program executes perfectly fine when I have up to 6 integers in the input file. The program seems to be failing during the pthread_join call. Has anyone come across such a situation? Any thoughts on this is greatly appreciated.

    Thanks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Post your code.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 02-26-2009, 11:48 PM
  2. thread priority in POSIX standard
    By arunj in forum C Programming
    Replies: 2
    Last Post: 06-06-2006, 09:23 AM
  3. Posix Thread Programming
    By reddybk1 in forum C Programming
    Replies: 8
    Last Post: 10-14-2004, 04:51 PM
  4. How to make a thread sleep or std::recv timeout?
    By BrianK in forum Linux Programming
    Replies: 3
    Last Post: 02-26-2003, 10:27 PM
  5. Multi-Thread Programming
    By drdroid in forum C++ Programming
    Replies: 6
    Last Post: 04-04-2002, 02:53 PM