I'm getting a seg fault with bamm traits again. Here is output from gdb.
pascals-mbp:test pascaltitle$ gdb ./bamm
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.0.0".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /Users/pascaltitle/bamm/test/bamm...
warning: `/Users/pascaltitle/bamm/src/Autotune.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/BranchEvent.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/BranchHistory.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/MCMC.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/MbRandom.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/Model.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/Node.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/Settings.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/TraitBranchEvent.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/TraitBranchHistory.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/TraitMCMC.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/TraitModel.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/Tree.o': file time stamp mismatch.
warning: `/Users/pascaltitle/bamm/src/main.o': file time stamp mismatch.
(no debugging symbols found)...done.
(gdb) run -control traitcontrol.txt
Starting program: /Users/pascaltitle/bamm/test/./bamm -control traitcontrol.txt
Initializing BAMM using control file <<traitcontrol.txt>>
Reading control file <<traitcontrol.txt>>
Read a total of <<40>> parameter settings from control file
Using clock to seed random number generator
trait
Initializing phenotypic evolution (trait) model
TRAIT DIVERSIFICATION BAMM
Reading tree from file <skinks183.tre>
1 tree read with 183 taxa
Tree ctor: event nodes: 0
Reading phenotypes from file <<skinks_shape.txt>>
Read a total of 183 species w trait data
Missing data for < 0 > species.
These will be treated as latent variables in analysis
count of FIXED nodes in getPhenotypesMissingLatent: 183
count of VARIABLE nodes in getPhenotypesMissingLatent: 182
Setting initial trait values at internal nodes
Initializing model and MCMC chain
Initializing model object....
Min and max phenotype limits set using observed data:
Min: -4.17108 Max: 8.60668
Root beta: 0.5 0.5 Shift: 0
Model object successfully initialized.
Initial log-likelihood: -609.742
Initializing Trait MCMC object...
Output file for MCMC data exists:
overwriting bmcmcout.txt
Output file for beta exists:
overwriting bbetarates.txt
Output file for node states exists:
overwriting bnodestate.txt
Output file for event data:
overwriting beventdata.txt
MCMC object successfully initialized.
Running MCMC chain for 1000000 generations.
Generation lnLik N_shifts LogPrior acceptRate
1 -609.828 0 2.07466 Accp: 1
Program received signal SIGSEGV, Segmentation fault.
0x0000000100028753 in TraitModel::deleteRandomEventFromTree() ()
(gdb) where
#0 0x0000000100028753 in TraitModel::deleteRandomEventFromTree() ()
#1 0x0000000100028ac1 in TraitModel::changeNumberOfEventsMH() ()
#2 0x000000010002c770 in TraitMCMC::updateState(int) ()
#3 0x000000010002ba31 in TraitMCMC::TraitMCMC(MbRandom_, TraitModel_, Settings*) ()
#4 0x00000001000017ab in main ()