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

The pointer might not be freed, then this error generally comes. you free all the pointers before exiting then this error could be resolved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.