[petsc-users] ***ASSERTION failed on line 65 of file fm.c: ComputeCut(graph, where) == graph->mincut

Dominik Szczerba dominik at itis.ethz.ch
Wed Jan 25 08:36:08 CST 2012


> asserts are a terrible debugging tool. You need to either use a debugger, or
> output
> the matrix in a form that the ParMetis people can use and debug with.

After a lot of fun running the program on a quadcore with 64 processes
and as many gdb windows, typing 'c' into all of them without closing
them accidentally, then finding the ones that have exitted, I found
the below pasted trace. Does it help to locate the problem?

Many thanks
Dominik


#0  0x00007fd4232433a5 in __GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fd423246b0b in __GI_abort () at abort.c:92
#2  0x000000000109baff in __FM_2WayEdgeRefine (ctrl=0x7fff8f7d7b30,
    graph=0x341c7d0, tpwgts=0x7fff8f7d7a70, npasses=4) at fm.c:65
#3  0x000000000109d483 in __GrowBisection (ctrl=0x7fff8f7d7b30,
    graph=0x341c7d0, tpwgts=0x7fff8f7d7a70, ubfactor=1) at initpart.c:188
#4  0x000000000109ccd4 in __Init2WayPartition (ctrl=0x7fff8f7d7b30,
    graph=0x341c7d0, tpwgts=0x7fff8f7d7a70, ubfactor=1) at initpart.c:36
#5  0x0000000001084dc2 in __MlevelEdgeBisection (ctrl=0x7fff8f7d7b30,
    graph=0x7fff8f7d7c20, tpwgts=0x7fff8f7d7a70, ubfactor=1) at pmetis.c:173
#6  0x0000000001084a30 in __MlevelRecursiveBisection (ctrl=0x7fff8f7d7b30,
    graph=0x7fff8f7d7c20, nparts=2, part=0xe0c4bc8, tpwgts=0x73871e0,
    ubfactor=1, fpart=0) at pmetis.c:120
#7  0x000000000108488f in METIS_WPartGraphRecursive (nvtxs=0x341b030,
    xadj=0x7f60ef0, adjncy=0x7f61124, vwgt=0x7f60f80, adjwgt=0x7f621c4,
    wgtflag=0x7fff8f7d7dd4, numflag=0x7fff8f7d7dd8, nparts=0x7fff8f7d7d7c,
    tpwgts=0x7fff8f7d8110, options=0x7fff8f7d7d90, edgecut=0x7fff8f7d7ddc,
    part=0xe0c4bc8) at pmetis.c:85
#8  0x000000000105a520 in __MlevelKWayPartitioning (ctrl=0x7fff8f7d7e60,
    graph=0x7fff8f7d7f50, nparts=2, part=0x7c7b9e0, tpwgts=0x7fff8f7d8110,
    ubfactor=1) at kmetis.c:110
#9  0x000000000105fcb3 in METIS_WPartGraphKway2 (nvtxs=0x33f6174,
    xadj=0x8bf81b0, adjncy=0x7c41850, vwgt=0x8bf1b40, adjwgt=0x7b3b450,
    wgtflag=0x7fff8f7d81c8, numflag=0x7fff8f7d81c4, nparts=0x7fff8f7d81c0,
    tpwgts=0x7fff8f7d8110, options=0x7fff8f7d80e0, edgecut=0x7fff8f7d81cc,
    part=0x7c7b9e0) at parmetis.c:79
#10 0x0000000001031d20 in Mc_InitPartition_RB__ (ctrl=0x7fff8f7d8860,
    graph=0x3a5a060, wspace=0x7fff8f8109f0) at initpart.c:95
#11 0x0000000001031348 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0x3a5a060, wspace=0x7fff8f8109f0) at kmetis.c:219
#12 0x0000000001031475 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0x3a00cc0, wspace=0x7fff8f8109f0) at kmetis.c:238
#13 0x0000000001031475 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0xe145c20, wspace=0x7fff8f8109f0) at kmetis.c:238
#14 0x0000000001031475 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0x3abdb60, wspace=0x7fff8f8109f0) at kmetis.c:238
#15 0x0000000001031475 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0x3a016e0, wspace=0x7fff8f8109f0) at kmetis.c:238
#16 0x0000000001031475 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0x7377a70, wspace=0x7fff8f8109f0) at kmetis.c:238
#17 0x0000000001031475 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0x736d510, wspace=0x7fff8f8109f0) at kmetis.c:238
#18 0x0000000001031475 in Mc_Global_Partition__ (ctrl=0x7fff8f7d8860,
    graph=0x738b670, wspace=0x7fff8f8109f0) at kmetis.c:238
#19 0x0000000001030d5f in ParMETIS_V3_PartKway (vtxdist=0x9f15090,
    xadj=0x7cf4e90, adjncy=0x7a57b60, vwgt=0x0, adjwgt=0xb26ebc0,
    wgtflag=0x7fff8f810c24, numflag=0x7fff8f810c28, ncon=0x7fff8f810c2c,
    nparts=0x7fff8f810c30, tpwgts=0x91b5c70, ubvec=0x91b4d50,
    options=0x7fff8f810bb0, edgecut=0x91b54f0, part=0x3349f20, comm=0x91b5504)
    at kmetis.c:146
#20 0x0000000000a9e6c5 in MatPartitioningApply_Parmetis (part=0x91b34d0,
    partitioning=0x7fff8f811008)
    at /home/dsz/pack/petsc-3.2-p5/src/mat/partition/impls/pmetis/pmetis.c:96
#21 0x0000000000695ecd in MatPartitioningApply (matp=0x91b34d0,
    partitioning=0x7fff8f811008)
    at /home/dsz/pack/petsc-3.2-p5/src/mat/partition/partition.c:226
#22 0x00000000004d31d6 in FluidSolver::CreateSolverContexts (this=0x30eb400)
    at /home/dsz/src/framework/sandbox/dsz/solvers/solve/FluidSolver.cxx:3104
#23 0x00000000004c697f in FluidSolver::Solve (this=0x30eb400)
    at /home/dsz/src/framework/sandbox/dsz/solvers/solve/FluidSolver.cxx:1925
#24 0x00000000005177f9 in main (argc=3, argv=0x7fff8f812c78)
    at /home/dsz/src/framework/sandbox/dsz/solvers/solve/FluidSolverMain.cxx:319


More information about the petsc-users mailing list