Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-2008, 08:37 PM
Lawtonfogle's Avatar   
Lawtonfogle Lawtonfogle is offline
Newbie
 
Join Date: Apr 2007
Posts: 8
Rep Power: 0
Lawtonfogle is on a distinguished road
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-11-2008, 04:21 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is online now
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,421
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default Re: C++ is hating me right now.

Looking at the error message, I suspect it is coming from one of your includes. It's telling you the error occurs in function elf_bndr() in ld.cpp (most likely). Perhaps a global variable's constructor is causing the issue.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 10:55 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 101%


Complete - Celebrate!

Ads