socket - segmentation fault

This is a discussion on socket - segmentation fault within the Linux Programming forums, part of the Platform Specific Boards category; Alright, I 'm testing a client/server example. As soon as a client connects I receive a segmentation fault on the ...

  1. #1
    weasal
    Guest

    socket - segmentation fault

    Alright, I 'm testing a client/server example. As soon as a client connects I receive a segmentation fault on the server. Where should I start looking?

    thanks in advance

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    at your code somewhere

    seriously, your best bet is to ask your friendly neighborhood debugger. clients and servers tend to be mighty big chunks of code, and gdb will help you a great deal in figuring out what function there's a seg fault.

    Although my first hint would be to look at any place where you're using a pointer. It's usually got something to do with that.

    starX
    www.axisoftime.com

  3. #3
    Registered User rohit's Avatar
    Join Date
    Feb 2002
    Posts
    69
    can we see uor code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segmentation fault
    By bennyandthejets in forum C++ Programming
    Replies: 7
    Last Post: 09-07-2005, 06:04 PM
  2. Segmentation fault
    By NoUse in forum C Programming
    Replies: 4
    Last Post: 03-26-2005, 03:29 PM
  3. Locating A Segmentation Fault
    By Stack Overflow in forum C Programming
    Replies: 12
    Last Post: 12-14-2004, 01:33 PM
  4. Annoying Segmentation Fault
    By Zildjian in forum C++ Programming
    Replies: 7
    Last Post: 10-08-2004, 03:07 PM
  5. Segmentation fault...
    By alvifarooq in forum C++ Programming
    Replies: 14
    Last Post: 09-26-2004, 01:53 PM

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