Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-12-2009, 02:48 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
Unhappy Segmentation faults when running Cosmomc(a program that do some Curve fitting)

Hi ,everybody

I encountered segmentation faults when tried running "./cosmomc params.ini" :

[limh@localhost camb]
./camb params.ini
Age of universe/GYr = 13.592
Reion redshift = 11.102
Om_b h^2 = 0.022000
Om_c h^2 = 0.120000
Om_nu h^2 = 0.000000
Om_Lambda = 0.710204
Om_K = 0.000000
Om_m (1-Om_K-Om_L) = 0.289796
100 theta (CosmoMC) = 1.048171
Reion opt depth = 0.0900
tau_recomb/Mpc = 280.95 tau_now/Mpc = 14085.0
[limh@localhost camb]tex error (math_lexing_error): cd ..
[limh@localhost cosmomc]
./cosmomc param.ini

Segmentation faults
[limh@localhost cosmomc]$

I tried the suggestions in
and it didn't work !!!

Any help would be appreciated!! Thanks!!
Best regards,
a novice ,Minghua
Old 10-03-2009, 04:53 PM   #2
Registered: Sep 2009
Location: DFW
Distribution: Debian Lenny
Posts: 38

Rep: Reputation: 17
Generic response sort of:

I'm not sure of the specifics of that program. Is that a script you fed the program?

Well, A segmentation fault can occur easily if a program that doesn't check type overrides one memory location with something that won't fit.

If I had to guess completely, I'd say whatever program you feed that script into defines a variable as say an int and then tries to put a floating point into it....

That said, I'd try to see if you can specifiy the type of all the variables and see if that doesn't help.
Old 10-06-2009, 02:45 AM   #3
LQ Newbie
Registered: Aug 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Recompiled and it worked

Thanks,in texas dallas!
I tried recompiling using the designated Intel Fortran compiler and it worked. The error message disappeared!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
segmentation faults crash88 Linux - Software 3 07-03-2006 10:22 PM
Some help with segmentation faults? captainslushie Linux - Software 5 06-23-2005 02:59 PM
Segmentation Faults? DoomsdayChef Linux - Newbie 2 10-18-2003 08:18 AM
Segmentation Faults prevent program opening Elliott Linux - Software 3 09-15-2003 03:42 AM
Segmentation Faults? floyd Linux - General 5 09-01-2003 11:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:25 AM.

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