I'm getting a segmentation violation in runtime for some input files that are very similar to input files that cause no violation. The violation always occurs with the same files. I think the compiler is trying to help me out by spitting out information about the violation, but I can't figure it out. Could someone give me a hand?

This is what I get:

*** Break *** segmentation violation
Generating stack trace...
0x000000000040ef08 in main + 0x518 from findstars
0x0000003a1bd1c3fb in __libc_start_main + 0xdb from /lib64/tls/libc.so.6
0x000000000040e8fa in __gxx_personality_v0 + 0x92 from findstars