Fedora Account System
Red Hat Associate
Red Hat Customer
graphviz 'cluster' crashes on Fedora 45 (graphviz-15.1.1-1.fc45). Two reproducers, both crash 100% of the time: 1) SIGSEGV (segfault) - option combination -C 0 -c 1: python3 -c 'print("graph G {"); [print(f"n{i} -- n{(i+1)%20000};") for i in range(20000)]; print("}")' > /tmp/big.dot cluster -C 0 -c 1 /tmp/big.dot -> Segmentation fault in Multilevel_MQ_Clustering_establish() <- main() 2) SIGABRT - empty graph: echo 'graph G {}' | cluster -> cluster: SparseMatrix.c:427: SparseMatrix_from_coordinate_arrays_internal: Assertion `m > 0 && n > 0' failed. Expected: clean error exit, not a crash. Core dumps available. Also reproduces on Fedora 44 (graphviz-14.1.4-2.fc44). Found via automated crash-testing with Claude Code
[root@vm-10-0-185-12 ~]# cluster -C cluster.c:96: claimed unreachable code was reached Aborted (core dumped) cluster -C [root@vm-10-0-185-12 ~]# /usr/bin/edgepaint -o --lightness -s -v --share_endpoint edgepaintmain.c:231: claimed unreachable code was reached Aborted (core dumped) /usr/bin/edgepaint -o --lightness -s -v --share_endpoint [root@vm-10-0-185-12 ~]# cluster -C 0 -c 1 /tmp/big.dot ncluster = 20000, mq = -0.000100 maxgain=0.000025, merge 0, 1 Segmentation fault (core dumped) cluster -C 0 -c 1 /tmp/big.dot
Upstream bug: https://gitlab.com/graphviz/graphviz/-/work_items/2857
Fixed in 16.1.0 (in Rawhide/F46).