C++ is hating me right now.
I am getting a seg fault before the first line of code is even executed.
GDB prints this on a bt:
Program received signal SIGSEGV, Segmentation fault.
0xff3d1e6c in elf_bndr () from /lib/ld.so.1
(gdb) bt
#0 0xff3d1e6c in elf_bndr () from /lib/ld.so.1
#1 0xff3b8444 in elf_rtbndr () from /lib/ld.so.1
#2 0xff3b8444 in elf_rtbndr () from /lib/ld.so.1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
The first few lines of code are:
int main (int argc, char *argv[]) {
std::cerr<<"Starting ray tracing.";
time_t start,end;
double dif;
It is a large program, and a back up version I have is working, but this version is making me want to give up. The only change I made was to balance a KD tree, but I don't think that would even matter that code is never used before a seg fault.
If anyone knows, or even has a clue, as to what is going wrong, the help would be appreciated.
|