c++ *** stack smashing detected ***, how to debug?
I have a complex c++ code.

It's a FastCGI program, using http://althenia.net/fcgicc

When I ask it for a looooong url, I get 

    *** stack smashing detected ***: ./tileserve terminated
    Erreur de segmentation

For real life, it's not an issue since I never use so long urls, but it mean that anyone could terminate my server.... I don't like that.

Is there a tool (and how to use it?) to findout where does the problem appear ?
c++ *** stack smashing detected ***, how to debug?
===

I have a complex c++ code.

It's a FastCGI program, using http://althenia.net/fcgicc

When I ask it for a looooong url, I get 

    *** stack smashing detected ***: ./tileserve terminated
    Erreur de segmentation

For real life, it's not an issue since I never use so long urls, but it mean that anyone could terminate my server.... I don't like that.

Is there a tool (and how to use it?) to findout where does the problem appear ?