Segmentation fault on return in main

Re: Segmentation fault on return in main

par Jean-Cédric Chappelier,
Number of replies: 0

It seems you corrupted some memory somewhere. Maybe are you using pointers to local variables (thus messing up the stack). Try to:
valgrind ./your_program
and see what it tells you.