Skip to content

SIGABRT crash in ModelFinder when testing duplicate/nested models with +ASC (v3.0.1) #143

@peregrine-t

Description

@peregrine-t

Version:
3.0.1 (Linux x86 64-bit, built May 5 2025)

Problem:
IQ-TREE 3.0.1 crashes during ModelFinder with +ASC on a variable-sites-only alignment. The crash occurs at modelfactory.cpp:1131 every time ModelFinder hits its first duplicate model entry. Reproducible across multiple runs, different model sets, and two different input files with the same properties. The assertion itr != checkpoint->end() fails in ModelFactory::initFromNestedModel.

Commands:

iqtree3 -bb 5000 -st DNA -m MFP+ASC -nt 8 -s ADMIXTURE.250.final.min4.phy.varsites.phy -redo

# restricted to GTR models
iqtree3 -m TESTONLY+ASC -st DNA -nt 8 -s ADMIXTURE.250.final.min4.phy.varsites.phy -redo

Both crash at the first duplicate model:

  • MFP+ASC: crashes at model 14 (duplicate of model 3, JC+ASC+R2)
  • TESTONLY+ASC: crashes at model 4 (duplicate of model 2, JC+ASC+G4)

Error:

ERROR: modelfactory.cpp:1131: virtual bool ModelFactory::initFromNestedModel(std::map<...>): 
Assertion `itr != checkpoint->end()' failed.
ERROR: *** IQ-TREE CRASHES WITH SIGNAL ABORTED

Possibly related — sequence type misidentification:
Both runs produce this warning despite -st DNA being explicitly set:

Alignment most likely contains protein sequences
WARNING: Your specified sequence type is different from the detected one`

Not sure if the latter is related to the crash, but I'm including it since it appears consistently.

Alignment:

  • Variable sites only (.varsites.phy), generated by IQ-TREE from a larger SNP alignment (LD-pruned with PLINK prior to tree building)
  • 27 sequences, 232,915 columns, 200,723 distinct patterns
  • 159,372 parsimony-informative sites, 73,543 singleton sites, 0 constant sites
  • 25/27 sequences fail composition chi2 test (p < 5%)
  • No checkpoint file present at time of crash (-redo used)

I included the log files for both runs below.

iqtree3_MFP+ASC_crash.txt
iqtree3_TESTONLY+ASC_crash.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions