Skip to content

Instantly share code, notes, and snippets.

@jwintersinger
Created November 17, 2019 17:01
Show Gist options
  • Save jwintersinger/38cfa8c16f6de05e443c42a0ba13e6f6 to your computer and use it in GitHub Desktop.
Save jwintersinger/38cfa8c16f6de05e443c42a0ba13e6f6 to your computer and use it in GitHub Desktop.
projectppm backtrace
# Segfault when running with `example2.txt`
# Compiled with `gcc -g -O0 project_onto_PPM.c' on GCC 7.3.0
# Kernel version: Linux nia-login01.scinet.local 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
jawinter@nia-login01 ~/work/projectppm-problem $ ls
example1.npz example1.py example2.sh example2.txt phi_fitter_projection.py projectppm README.md
jawinter@nia-login01 ~/work/projectppm-problem $ ~/tmp/Efficient-Projection-onto-the-Perfect-Phylogeny-Model/a.out exam
ple2.txt out.txt 1
Segmentation fault
# Backtrace
jawinter@nia-login01 ~/work/projectppm-problem $ gdb --args ~/tmp/Efficient-Projection-onto-the-Perfect-Phylogeny-Model/a.out example2.txt out.txt 1
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7_4.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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /gpfs/fs1/home/q/qmorris/jawinter/tmp/Efficient-Projection-onto-the-Perfect-Phylogeny-Model/a.out...done.
(gdb) run
Starting program: /home/q/qmorris/jawinter/tmp/Efficient-Projection-onto-the-Perfect-Phylogeny-Model/a.out example2.txt out.txt 1
Program received signal SIGSEGV, Segmentation fault.
0x0000000000402c25 in update_v_reborn_stretched (root=0, v=0x7fffffcadaa0, gamma=0x7fffffca8940, gamma_init=0x608280,
status=0x7fffffcb2cc0, father=0x7ffffffef2d0, num_kids=0x7ffffffee8a0, kids=0x7fffffcb4120, seen=0x7fffffcb0350,
queue=0x7fffffcb21e0, queue_front=0x7fffffcb21de, queue_back=0x7fffffcb21dc, queue_size=0x7fffffcb21da,
holder=0x7fffffcb17b0, holder_front=0x7fffffcb17ae, holder_back=0x7fffffcb17ac, holder_size=0x7fffffcb17aa)
at project_onto_PPM.c:436
436 shortint kid_ind = kids[current_ind * (MAX_N_NODES + 1) + i];
Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7_4.2.x86_64
(gdb) bt
#0 0x0000000000402c25 in update_v_reborn_stretched (root=0, v=0x7fffffcadaa0, gamma=0x7fffffca8940,
gamma_init=0x608280, status=0x7fffffcb2cc0, father=0x7ffffffef2d0, num_kids=0x7ffffffee8a0, kids=0x7fffffcb4120,
seen=0x7fffffcb0350, queue=0x7fffffcb21e0, queue_front=0x7fffffcb21de, queue_back=0x7fffffcb21dc,
queue_size=0x7fffffcb21da, holder=0x7fffffcb17b0, holder_front=0x7fffffcb17ae, holder_back=0x7fffffcb17ac,
holder_size=0x7fffffcb17aa) at project_onto_PPM.c:436
#1 0x0000000000403441 in update_v_reborn (new_fixed_ind=3, v=0x7fffffcadaa0, gamma=0x7fffffca8940,
gamma_init=0x608280, status=0x7fffffcb2cc0, father=0x7ffffffef2d0, num_kids=0x7ffffffee8a0, kids=0x7fffffcb4120,
queue=0x7fffffcb21e0, queue_front=0x7fffffcb21de, queue_back=0x7fffffcb21dc, queue_size=0x7fffffcb21da,
holder=0x7fffffcb17b0, holder_front=0x7fffffcb17ae, holder_back=0x7fffffcb17ac, holder_size=0x7fffffcb17aa,
seen=0x7fffffcb0350) at project_onto_PPM.c:535
#2 0x0000000000404b57 in best_tree_reborn (inner_flag=1, z=0x7fffffff6ce0, value=0x7fffffff1b90,
gamma_init=0x608280, status=0x7fffffcb2cc0, father=0x7ffffffef2d0, num_kids=0x7ffffffee8a0, kids=0x7fffffcb4120,
dim=4) at project_onto_PPM.c:793
#3 0x00000000004055bd in tree_cost_projection (inner_flag=1, compute_M_flag=1, M=0x608010, num_nodes=4, T=1,
data=0x608250, gamma_init=0x608280, root_node=0, tree=0x0, adjacency_mat=0x0, final_degrees=0x6082b0,
adj_list=0x6082d0) at project_onto_PPM.c:933
#4 0x0000000000405b7d in main (argc=4, argv=0x7fffffffc008) at project_onto_PPM.c:1010
(gdb) quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment