LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2009, 11:18 PM   #1
snorlaxgb
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Trying to Cross Compile Benchmarks leads to Seg Fault


Hello,

I am compiling PARSEC 2.1 benchmarks for Alpha Architecture.

There are 13 benchmarks, Ive successfully compiled the majority of them, however in three cases I am getting I am getting a segmentation fault
upon exit.


int main {

...code
(Segfault here...maybe the return 0)
return 0;

}

I can't debug because I am running Alpha code on a simulator, and I dont have any tools.

Any ideas on how to solve this seg fault? The programs execute correctly and yet still seg fault, one scenario is that the stack is being over written so main is getting incorrect values and seg faulting.

Thanks!
 
Old 08-24-2009, 12:28 AM   #2
snorlaxgb
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hello,
It seems the seg fault is with the phread library, as I remove it and run a serial version. it works. Any ideas on how to rebuild the pthread library or put some flags to make this thing stop seg faulting?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
seg fault / mem fault - in cron, but works in shell? kauaikat Red Hat 1 04-29-2008 04:24 PM
seg fault / mem fault - in cron, but works in shell? kauaikat Linux - Software 1 04-29-2008 08:21 AM
seg fault vm_devadas Linux - Enterprise 1 12-05-2006 02:28 PM
hardware access leads to segmentation fault MikeMc Linux - Software 2 03-14-2006 01:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration