Using POSIX thread in Linux

This is a discussion on Using POSIX thread in Linux within the Linux Programming forums, part of the Platform Specific Boards category; Hello, I am using POSIX threads in my C program. The program reads integer values from a file to process. ...

  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
    32,821
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 10:23 AM
  3. Posix Thread Programming
    By reddybk1 in forum C Programming
    Replies: 8
    Last Post: 10-14-2004, 05: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21