segmentation fault in reading file

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2007
Posts: 1
Reputation: need_ur_help is an unknown quantity at this point 
Solved Threads: 0
need_ur_help need_ur_help is offline Offline
Newbie Poster

segmentation fault in reading file

 
0
  #1
Sep 23rd, 2007
i hav made a linux based proxy sever in C in which a separate thread is invoked for each clieant but when a client request a page which is cached and a function reads its file, in mean time another client requests any page then a segmentation fault occurs. all buffers and variables are local for thread. plz help us to resolve this fault
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 4
Reputation: prabhat padhy is an unknown quantity at this point 
Solved Threads: 0
prabhat padhy prabhat padhy is offline Offline
Newbie Poster

Re: segmentation fault in reading file

 
0
  #2
Oct 1st, 2007
The pointer might not be freed, then this error generally comes. you free all the pointers before exiting then this error could be resolved.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1689 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC