On my machine, running this script:
initialize()
{
setSeed(23);
initializeTreeSeq(timeUnit="generations");
initializeSex();
initializeMutationType("m1", 0.5, "f", 0.0);
initializeGenomicElementType("g1", m1, 1.0);
initializeGenomicElement(g1, 0, 999999);
initializeMutationRate(1e-3);
initializeRecombinationRate(0.0);
}
1 early() {
sim.addSubpop("p1", 10);
}
2 late() {
sim.treeSeqOutput("out.trees");
sim.simulationFinished();
}
followed by this script:
initialize()
{
defineConstant("L", 1e2);
initializeTreeSeq(timeUnit="generations");
initializeSex();
initializeMutationType("m1", 0.5, "f", 0.0);
initializeGenomicElementType("g1", m1, 1.0);
initializeGenomicElement(g1, 0, 999999);
initializeMutationRate(1e-3);
initializeRecombinationRate(0.0);
}
1 late() {
sim.readFromPopulationFile("out.trees");
}
results in a segfault. I haven't tried to track down where the segfault is (this happened in the middle of finding another bug).
My only possible clue is that this script involves a lot of stacked mutations.
On my machine, running this script:
followed by this script:
results in a segfault. I haven't tried to track down where the segfault is (this happened in the middle of finding another bug).
My only possible clue is that this script involves a lot of stacked mutations.