Thread: socket - segmentation fault

  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, 05: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, 02:07 PM
  5. Segmentation fault...
    By alvifarooq in forum C++ Programming
    Replies: 14
    Last Post: 09-26-2004, 12:53 PM