linux mint 20.2 freedv segmentation error on running mode 2020

40 views
Skip to first unread message

zl1any

unread,
Nov 14, 2021, 3:17:52 AM11/14/21
to digitalvoice
Hi
I have compiled the latest git hub versions of freedv, codec2 and lpcnet library on a
mint 20.2 distro.

All seems on in modes other than 2020.

When this is chosen from the freedv-gui menu it causes a crash with a segmentation error.

I note a similar issue when trying to run the 2020 codec from within the freedv menus on quisk .. quisk crashes.

Initially I thought that it might be due to absence of lpcnet library but I installed this directly into the user trunk directory .. and on inspection see that build_linux.sh downloads and compiles it anyway.

I note some historically similar issues from about 2020 in the archives
but none of the answers seems to me to provide a fix.

Has this been noted previously?

On a similar note, I am unsure how to set up freedv to use the virtual quisk input /output
devices generated by quisk so I can use freedv rather than the menu options within quisk (which does not seem to support text channels for freedv)


thansk

de zl1any stephen

Mooneer Salem

unread,
Nov 15, 2021, 4:29:26 AM11/15/21
to digita...@googlegroups.com
Hi Stephen,

Would it be possible to cd into the codec2/build_linux folder that was created during the FreeDV build and see what "make test" gives you? I would expect the 2020 tests (e.g. test_freedv_api_2020_to_ofdm_demod, test_freedv_api_2020_from_ofdm_mod and test_freedv_api_2020_awgn) in the test suite to pass at minimum.

Thanks,

-Mooneer K6AQ

--
You received this message because you are subscribed to the Google Groups "digitalvoice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to digitalvoice...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/digitalvoice/a43b3038-b9f7-42b2-93c8-f1d9e53b4b95n%40googlegroups.com.

zl1any

unread,
Nov 16, 2021, 12:15:09 AM11/16/21
to digitalvoice
I don't understand too much of this .. some of the 2020 test seem to pass and others fail ...
I would be interested in your comments
Thanks


Here's the output :-

HP-Pavilion-TS-Sleekbook-14:~/Downloads/a/freedv/freedv-gui/codec2/build_linux$ make test
Running tests...
Test project /home/s/Downloads/a/freedv/freedv-gui/codec2/build_linux
        Start   1: test_freedv_get_hash
  1/129 Test   #1: test_freedv_get_hash ...........................   Passed    0.97 sec
        Start   2: test_fdmdv_16to8
  2/129 Test   #2: test_fdmdv_16to8 ...............................   Passed   17.04 sec
        Start   3: test_fdmdv_16to8_short
  3/129 Test   #3: test_fdmdv_16to8_short .........................   Passed    0.68 sec
        Start   4: test_CML_ldpcut
  4/129 Test   #4: test_CML_ldpcut ................................***Failed  Required regular expression not found. Regex=[Nerr: 0
]  0.37 sec
        Start   5: test_cohpsk_ch_papr
  5/129 Test   #5: test_cohpsk_ch_papr ............................   Passed    0.23 sec
        Start   6: test_codec2_700c_octave_port
  6/129 Test   #6: test_codec2_700c_octave_port ...................   Passed   54.21 sec
        Start   7: test_FDMDV_modem_octave_port
  7/129 Test   #7: test_FDMDV_modem_octave_port ...................   Passed   18.12 sec
        Start   8: test_COHPSK_modem_octave_port
  8/129 Test   #8: test_COHPSK_modem_octave_port ..................   Passed  109.80 sec
        Start   9: test_COHPSK_modem_AWGN_BER
  9/129 Test   #9: test_COHPSK_modem_AWGN_BER .....................   Passed    0.39 sec
        Start  10: test_COHPSK_modem_freq_offset
 10/129 Test  #10: test_COHPSK_modem_freq_offset ..................   Passed    0.18 sec
        Start  11: test_OFDM_qam16
 11/129 Test  #11: test_OFDM_qam16 ................................   Passed    0.01 sec
        Start  12: test_OFDM_modem_octave_port
 12/129 Test  #12: test_OFDM_modem_octave_port ....................   Passed   26.69 sec
        Start  13: test_OFDM_modem_octave_port_Nc_31
 13/129 Test  #13: test_OFDM_modem_octave_port_Nc_31 ..............   Passed   33.78 sec
        Start  14: test_OFDM_modem_octave_qam16_uncoded
 14/129 Test  #14: test_OFDM_modem_octave_qam16_uncoded ...........   Passed   24.40 sec
        Start  15: test_OFDM_modem_esno_est_octave
 15/129 Test  #15: test_OFDM_modem_esno_est_octave ................   Passed    0.45 sec
        Start  16: test_OFDM_modem_esno_est_c
 16/129 Test  #16: test_OFDM_modem_esno_est_c .....................   Passed    0.55 sec
        Start  17: test_OFDM_modem_octave_burst_acq
 17/129 Test  #17: test_OFDM_modem_octave_burst_acq ...............   Passed   22.92 sec
        Start  18: test_OFDM_modem_octave_datac0_postamble
 18/129 Test  #18: test_OFDM_modem_octave_datac0_postamble ........   Passed   14.07 sec
        Start  19: test_OFDM_modem_burst_acq_port
 19/129 Test  #19: test_OFDM_modem_burst_acq_port .................   Passed    9.69 sec
        Start  20: test_OFDM_modem_octave_datac0_mpp
 20/129 Test  #20: test_OFDM_modem_octave_datac0_mpp ..............   Passed   29.77 sec
        Start  21: test_OFDM_modem_octave_datac0_mpp_coded
 21/129 Test  #21: test_OFDM_modem_octave_datac0_mpp_coded ........***Failed  Required regular expression not found. Regex=[Pass
]  0.51 sec
        Start  22: test_OFDM_modem_700D
 22/129 Test  #22: test_OFDM_modem_700D ...........................   Passed    0.12 sec
        Start  23: test_OFDM_modem_700D_ldpc
 23/129 Test  #23: test_OFDM_modem_700D_ldpc ......................   Passed    0.02 sec
        Start  24: test_OFDM_modem_2020_ldpc
 24/129 Test  #24: test_OFDM_modem_2020_ldpc ......................   Passed    0.07 sec
        Start  25: test_OFDM_modem_AWGN_BER
 25/129 Test  #25: test_OFDM_modem_AWGN_BER .......................   Passed    0.84 sec
        Start  26: test_OFDM_modem_fading_BER
 26/129 Test  #26: test_OFDM_modem_fading_BER .....................   Passed   58.12 sec
        Start  27: test_OFDM_modem_phase_est_bw
 27/129 Test  #27: test_OFDM_modem_phase_est_bw ...................   Passed    1.00 sec
        Start  28: test_OFDM_modem_fading_DPSK_BER
 28/129 Test  #28: test_OFDM_modem_fading_DPSK_BER ................   Passed   53.09 sec
        Start  29: test_OFDM_modem_time_sync_700D
 29/129 Test  #29: test_OFDM_modem_time_sync_700D .................   Passed    4.79 sec
        Start  30: test_OFDM_modem_time_sync_2020
 30/129 Test  #30: test_OFDM_modem_time_sync_2020 .................   Passed    2.38 sec
        Start  31: test_OFDM_modem_700E_AWGN
 31/129 Test  #31: test_OFDM_modem_700E_AWGN ......................   Passed    0.15 sec
        Start  32: test_OFDM_modem_datac0_octave_burst
 32/129 Test  #32: test_OFDM_modem_datac0_octave_burst ............***Failed  Required regular expression not found. Regex=[Coded PER: 0.0000 Tpkts:     3
]  0.46 sec
        Start  33: test_OFDM_modem_datac1_octave
 33/129 Test  #33: test_OFDM_modem_datac1_octave ..................***Failed  Required regular expression not found. Regex=[Coded PER: 0.0000 Pckts:     4
]  1.71 sec
        Start  34: test_OFDM_modem_datac3_octave
 34/129 Test  #34: test_OFDM_modem_datac3_octave ..................***Failed  Required regular expression not found. Regex=[Coded PER: 0.0000 Pckts:     5
]  0.87 sec
        Start  35: test_OFDM_modem_datac1
 35/129 Test  #35: test_OFDM_modem_datac1 .........................   Passed    0.09 sec
        Start  36: test_OFDM_modem_datac1_ldpc
 36/129 Test  #36: test_OFDM_modem_datac1_ldpc ....................   Passed    0.13 sec
        Start  37: test_OFDM_modem_datac0_ldpc_burst
 37/129 Test  #37: test_OFDM_modem_datac0_ldpc_burst ..............   Passed    1.44 sec
        Start  38: test_ldpc_enc_dec
 38/129 Test  #38: test_ldpc_enc_dec ..............................   Passed    0.28 sec
        Start  39: test_ldpc_enc_dec_HRA_56_56
 39/129 Test  #39: test_ldpc_enc_dec_HRA_56_56 ....................   Passed    0.13 sec
        Start  40: test_ldpc_enc_dec_HRAb_396_504
 40/129 Test  #40: test_ldpc_enc_dec_HRAb_396_504 .................   Passed    0.60 sec
        Start  41: test_ldpc_enc_dec_H_256_768_22
 41/129 Test  #41: test_ldpc_enc_dec_H_256_768_22 .................   Passed    1.84 sec
        Start  42: test_ldpc_enc_dec_H_256_512_4
 42/129 Test  #42: test_ldpc_enc_dec_H_256_512_4 ..................   Passed    0.53 sec
        Start  43: test_ldpc_enc_dec_HRAa_1536_512
 43/129 Test  #43: test_ldpc_enc_dec_HRAa_1536_512 ................   Passed    1.45 sec
        Start  44: test_ldpc_enc_dec_H_128_256_5
 44/129 Test  #44: test_ldpc_enc_dec_H_128_256_5 ..................   Passed    0.29 sec
        Start  45: test_ldpc_enc_dec_H_4096_8192_3d
 45/129 Test  #45: test_ldpc_enc_dec_H_4096_8192_3d ...............   Passed    8.31 sec
        Start  46: test_ldpc_enc_dec_H_16200_9720
 46/129 Test  #46: test_ldpc_enc_dec_H_16200_9720 .................   Passed    3.48 sec
        Start  47: test_ldpc_enc_dec_H_1024_2048_4f
 47/129 Test  #47: test_ldpc_enc_dec_H_1024_2048_4f ...............   Passed    1.45 sec
        Start  48: test_ldpc_enc_dec_H_2064_516_sparse
 48/129 Test  #48: test_ldpc_enc_dec_H_2064_516_sparse ............   Passed    0.67 sec
        Start  49: test_freedv_api_1600
 49/129 Test  #49: test_freedv_api_1600 ...........................   Passed    0.28 sec
        Start  50: test_freedv_api_700C
 50/129 Test  #50: test_freedv_api_700C ...........................   Passed    0.21 sec
        Start  51: test_freedv_api_700D_backwards_compatability
 51/129 Test  #51: test_freedv_api_700D_backwards_compatability ...   Passed    0.03 sec
        Start  52: test_freedv_api_700D_speech
 52/129 Test  #52: test_freedv_api_700D_speech ....................   Passed    0.26 sec
        Start  53: test_freedv_api_700D_burble
 53/129 Test  #53: test_freedv_api_700D_burble ....................   Passed    3.15 sec
        Start  54: test_freedv_api_700D_AWGN_BER
 54/129 Test  #54: test_freedv_api_700D_AWGN_BER ..................   Passed    0.48 sec
        Start  55: test_freedv_api_700D_AWGN_BER_USECOMPLEX
 55/129 Test  #55: test_freedv_api_700D_AWGN_BER_USECOMPLEX .......   Passed    0.48 sec
        Start  56: test_freedv_api_2020_to_ofdm_demod
 56/129 Test  #56: test_freedv_api_2020_to_ofdm_demod .............   Passed    0.19 sec
        Start  57: test_freedv_api_2020_from_ofdm_mod
 57/129 Test  #57: test_freedv_api_2020_from_ofdm_mod .............   Passed    0.10 sec
        Start  58: test_freedv_api_2020_awgn
 58/129 Test  #58: test_freedv_api_2020_awgn ......................   Passed    0.72 sec
        Start  59: test_freedv_api_2400A
 59/129 Test  #59: test_freedv_api_2400A ..........................   Passed    0.24 sec
        Start  60: test_freedv_api_2400B
 60/129 Test  #60: test_freedv_api_2400B ..........................   Passed    0.10 sec
        Start  61: test_freedv_api_800XA
 61/129 Test  #61: test_freedv_api_800XA ..........................   Passed    0.13 sec
        Start  62: test_freedv_api_rawdata_800XA
 62/129 Test  #62: test_freedv_api_rawdata_800XA ..................   Passed    0.02 sec
        Start  63: test_freedv_api_rawdata_2400A
 63/129 Test  #63: test_freedv_api_rawdata_2400A ..................   Passed    0.03 sec
        Start  64: test_freedv_api_rawdata_2400B
 64/129 Test  #64: test_freedv_api_rawdata_2400B ..................   Passed    0.01 sec
        Start  65: test_fifo
 65/129 Test  #65: test_fifo ......................................   Passed    0.15 sec
        Start  66: test_freedv_reliable_text_truncate_string
 66/129 Test  #66: test_freedv_reliable_text_truncate_string ......   Passed    2.91 sec
        Start  67: test_freedv_reliable_text_ideal_1600
 67/129 Test  #67: test_freedv_reliable_text_ideal_1600 ...........   Passed    2.90 sec
        Start  68: test_freedv_reliable_text_ideal_700D
 68/129 Test  #68: test_freedv_reliable_text_ideal_700D ...........   Passed    3.33 sec
        Start  69: test_freedv_reliable_text_ideal_700E
 69/129 Test  #69: test_freedv_reliable_text_ideal_700E ...........   Passed    3.53 sec
        Start  70: test_freedv_reliable_text_awgn_1600
 70/129 Test  #70: test_freedv_reliable_text_awgn_1600 ............   Passed    2.99 sec
        Start  71: test_freedv_reliable_text_awgn_700D
 71/129 Test  #71: test_freedv_reliable_text_awgn_700D ............   Passed    4.78 sec
        Start  72: test_freedv_reliable_text_awgn_700E
 72/129 Test  #72: test_freedv_reliable_text_awgn_700E ............   Passed    5.02 sec
        Start  73: test_freedv_reliable_text_fade_1600
 73/129 Test  #73: test_freedv_reliable_text_fade_1600 ............   Passed    1.53 sec
        Start  74: test_freedv_reliable_text_fade_700D
 74/129 Test  #74: test_freedv_reliable_text_fade_700D ............   Passed    2.12 sec
        Start  75: test_freedv_reliable_text_fade_700E
 75/129 Test  #75: test_freedv_reliable_text_fade_700E ............   Passed    2.20 sec
        Start  76: test_freedv_reliable_text_ideal_2020
 76/129 Test  #76: test_freedv_reliable_text_ideal_2020 ...........   Passed   41.17 sec
        Start  77: test_freedv_reliable_text_awgn_2020
 77/129 Test  #77: test_freedv_reliable_text_awgn_2020 ............   Passed   40.92 sec
        Start  78: test_freedv_reliable_text_fade_2020
 78/129 Test  #78: test_freedv_reliable_text_fade_2020 ............   Passed   41.95 sec
        Start  79: test_memory_leak_FreeDV_1600_tx
 79/129 Test  #79: test_memory_leak_FreeDV_1600_tx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  80: test_memory_leak_FreeDV_1600_rx
 80/129 Test  #80: test_memory_leak_FreeDV_1600_rx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.08 sec
        Start  81: test_memory_leak_FreeDV_700D_tx
 81/129 Test  #81: test_memory_leak_FreeDV_700D_tx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  82: test_memory_leak_FreeDV_700D_rx
 82/129 Test  #82: test_memory_leak_FreeDV_700D_rx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.07 sec
        Start  83: test_memory_leak_FreeDV_700C_tx
 83/129 Test  #83: test_memory_leak_FreeDV_700C_tx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  84: test_memory_leak_FreeDV_700C_rx
 84/129 Test  #84: test_memory_leak_FreeDV_700C_rx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.06 sec
        Start  85: test_memory_leak_FreeDV_FSK_LDPC_tx
 85/129 Test  #85: test_memory_leak_FreeDV_FSK_LDPC_tx ............***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  86: test_memory_leak_FreeDV_DATAC0_tx
 86/129 Test  #86: test_memory_leak_FreeDV_DATAC0_tx ..............***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  87: test_memory_leak_FreeDV_DATAC1_tx
 87/129 Test  #87: test_memory_leak_FreeDV_DATAC1_tx ..............***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  88: test_memory_leak_FreeDV_700E_tx
 88/129 Test  #88: test_memory_leak_FreeDV_700E_tx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  89: test_memory_leak_FreeDV_2020_tx
 89/129 Test  #89: test_memory_leak_FreeDV_2020_tx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.00 sec
        Start  90: test_memory_leak_FreeDV_2020_rx
 90/129 Test  #90: test_memory_leak_FreeDV_2020_rx ................***Failed  Required regular expression not found. Regex=[ERROR SUMMARY: 0 errors
]  0.07 sec
        Start  91: test_codec2_mode_dot_c2
 91/129 Test  #91: test_codec2_mode_dot_c2 ........................   Passed    0.09 sec
        Start  92: test_codec2_mode_3200
 92/129 Test  #92: test_codec2_mode_3200 ..........................   Passed    0.15 sec
        Start  93: test_codec2_mode_2400
 93/129 Test  #93: test_codec2_mode_2400 ..........................   Passed    0.04 sec
        Start  94: test_codec2_mode_1400
 94/129 Test  #94: test_codec2_mode_1400 ..........................   Passed    0.04 sec
        Start  95: test_codec2_mode_1300
 95/129 Test  #95: test_codec2_mode_1300 ..........................   Passed    0.04 sec
        Start  96: test_codec2_mode_1200
 96/129 Test  #96: test_codec2_mode_1200 ..........................   Passed    0.04 sec
        Start  97: test_codec2_mode_700C
 97/129 Test  #97: test_codec2_mode_700C ..........................   Passed    0.06 sec
        Start  98: test_codec2_mode_450
 98/129 Test  #98: test_codec2_mode_450 ...........................   Passed    0.04 sec
        Start  99: test_codec2_mode_450PWB
 99/129 Test  #99: test_codec2_mode_450PWB ........................   Passed    0.05 sec
        Start 100: test_vq_mbest
100/129 Test #100: test_vq_mbest ..................................   Passed    0.07 sec
        Start 101: test_700c_eq
101/129 Test #101: test_700c_eq ...................................   Passed    0.28 sec
        Start 102: test_fsk_lib
102/129 Test #102: test_fsk_lib ...................................   Passed    7.75 sec
        Start 103: test_fsk_modem_octave_port
103/129 Test #103: test_fsk_modem_octave_port .....................   Passed    8.72 sec
        Start 104: test_fsk_modem_mod_demod
104/129 Test #104: test_fsk_modem_mod_demod .......................   Passed    0.20 sec
        Start 105: test_fsk_2fsk_ber
105/129 Test #105: test_fsk_2fsk_ber ..............................   Passed    1.13 sec
        Start 106: test_fsk_4fsk_ber
106/129 Test #106: test_fsk_4fsk_ber ..............................   Passed    0.57 sec
        Start 107: test_fsk_4fsk_ber_negative_freq
107/129 Test #107: test_fsk_4fsk_ber_negative_freq ................   Passed    0.51 sec
        Start 108: test_fsk_4fsk_lockdown
108/129 Test #108: test_fsk_4fsk_lockdown .........................   Passed   15.24 sec
        Start 109: test_fsk_lib_4fsk_ldpc
109/129 Test #109: test_fsk_lib_4fsk_ldpc .........................***Failed  Required regular expression not found. Regex=[PASS
]  0.32 sec
        Start 110: test_fsk_framer
110/129 Test #110: test_fsk_framer ................................   Passed    0.14 sec
        Start 111: test_fsk_framer_ldpc
111/129 Test #111: test_fsk_framer_ldpc ...........................   Passed    0.09 sec
        Start 112: test_fsk_llr
112/129 Test #112: test_fsk_llr ...................................   Passed    0.05 sec
        Start 113: test_fsk_4fsk_ldpc
113/129 Test #113: test_fsk_4fsk_ldpc .............................   Passed    6.14 sec
        Start 114: test_fsk_vhf_framer
114/129 Test #114: test_fsk_vhf_framer ............................   Passed    0.23 sec
        Start 115: test_freedv_data_channel
115/129 Test #115: test_freedv_data_channel .......................   Passed    0.02 sec
        Start 116: test_freedv_data_raw_ofdm_datac0_burst
116/129 Test #116: test_freedv_data_raw_ofdm_datac0_burst .........   Passed    0.58 sec
        Start 117: test_freedv_data_raw_ofdm_datac0_burst_file
117/129 Test #117: test_freedv_data_raw_ofdm_datac0_burst_file ....   Passed    1.41 sec
        Start 118: test_freedv_data_raw_ofdm_datac1_burst_file
118/129 Test #118: test_freedv_data_raw_ofdm_datac1_burst_file ....   Passed    1.24 sec
        Start 119: test_freedv_data_raw_ofdm_datac0
119/129 Test #119: test_freedv_data_raw_ofdm_datac0 ...............   Passed    0.15 sec
        Start 120: test_freedv_data_raw_ofdm_datac1
120/129 Test #120: test_freedv_data_raw_ofdm_datac1 ...............   Passed    0.51 sec
        Start 121: test_freedv_data_raw_ofdm_datac3
121/129 Test #121: test_freedv_data_raw_ofdm_datac3 ...............   Passed    0.41 sec
        Start 122: test_freedv_data_raw_fsk_ldpc_100
122/129 Test #122: test_freedv_data_raw_fsk_ldpc_100 ..............   Passed    1.55 sec
        Start 123: test_freedv_data_raw_fsk_ldpc_1k
123/129 Test #123: test_freedv_data_raw_fsk_ldpc_1k ...............   Passed    0.80 sec
        Start 124: test_freedv_data_raw_fsk_ldpc_10k
124/129 Test #124: test_freedv_data_raw_fsk_ldpc_10k ..............   Passed    8.02 sec
        Start 125: test_freedv_data_raw_fsk_ldpc_2k
125/129 Test #125: test_freedv_data_raw_fsk_ldpc_2k ...............   Passed    0.46 sec
        Start 126: test_demo_c2demo
126/129 Test #126: test_demo_c2demo ...............................   Passed    0.24 sec
        Start 127: test_demo_700d
127/129 Test #127: test_demo_700d .................................   Passed    0.33 sec
        Start 128: test_demo_700d_python
128/129 Test #128: test_demo_700d_python ..........................   Passed    0.33 sec
        Start 129: test_demo_datac1
129/129 Test #129: test_demo_datac1 ...............................   Passed    1.88 sec

86% tests passed, 18 tests failed out of 129

Total Test time (real) = 731.83 sec

The following tests FAILED:
      4 - test_CML_ldpcut (Failed)
     21 - test_OFDM_modem_octave_datac0_mpp_coded (Failed)
     32 - test_OFDM_modem_datac0_octave_burst (Failed)
     33 - test_OFDM_modem_datac1_octave (Failed)
     34 - test_OFDM_modem_datac3_octave (Failed)
     79 - test_memory_leak_FreeDV_1600_tx (Failed)
     80 - test_memory_leak_FreeDV_1600_rx (Failed)
     81 - test_memory_leak_FreeDV_700D_tx (Failed)
     82 - test_memory_leak_FreeDV_700D_rx (Failed)
     83 - test_memory_leak_FreeDV_700C_tx (Failed)
     84 - test_memory_leak_FreeDV_700C_rx (Failed)
     85 - test_memory_leak_FreeDV_FSK_LDPC_tx (Failed)
     86 - test_memory_leak_FreeDV_DATAC0_tx (Failed)
     87 - test_memory_leak_FreeDV_DATAC1_tx (Failed)
     88 - test_memory_leak_FreeDV_700E_tx (Failed)
     89 - test_memory_leak_FreeDV_2020_tx (Failed)
     90 - test_memory_leak_FreeDV_2020_rx (Failed)
    109 - test_fsk_lib_4fsk_ldpc (Failed)
Errors while running CTest
make: *** [Makefile:107: test] Error 8

Mooneer Salem

unread,
Nov 16, 2021, 3:28:26 AM11/16/21
to digita...@googlegroups.com
Hi Stephen,

The failed tests are most likely due to missing dependencies. The main tests for 2020 seem to have passed with no problems.

Another thing you can try is to install gdb (if not already on your system) and attempt to run FreeDV through it:

$ gdb ./freedb
(gdb) run
...

Once it crashes, there should be a "Program received signal SIGSEGV" or similar. A backtrace (generated with the "bt" command) would be helpful in determining what could possibly be happening. Are you simply choosing "2020" from the right hand side of the screen and then pushing Start, or are you doing anything additional on top of that?

Thanks,

-Mooneer K6AQ


zl1any

unread,
Nov 17, 2021, 1:39:27 AM11/17/21
to digitalvoice
Hi Mooneer
Here's the bt from the segmentation fault :-

Thread 1 "freedv" received signal SIGSEGV, Segmentation fault.
ofdm_set_verbose (ofdm=0x0, level=-1) at /home/s/codec2/src/ofdm.c:971
971    void ofdm_set_verbose(struct OFDM *ofdm, int level) { ofdm->verbose = level; }
(gdb) bt
#0  ofdm_set_verbose (ofdm=0x0, level=-1) at /home/s/codec2/src/ofdm.c:971
#1  0x000055555566d2f0 in FreeDVInterface::setVerbose(bool)
    (this=0x5555556dd980 <freedvInterface>, val=false)
    at /home/s/Downloads/a/freedv/freedv-gui/src/freedv_interface.cpp:405
#2  0x0000555555632319 in MainFrame::OnTogBtnOnOff(wxCommandEvent&) (this=
    0x5555558b3a00, event=...)
    at /home/s/Downloads/a/freedv/freedv-gui/src/main.cpp:1606
#3  0x00007ffff6a0c641 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007ffff6a0c9da in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff6a0ca74 in wxEvtHandler::TryHereOnly(wxEvent&) ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff6a0cb2b in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7  0x00007ffff6a0cbd1 in wxEvtHandler::ProcessEvent(wxEvent&) ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8  0x00007ffff6a0c95b in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9  0x00007ffff6e099f1 in  ()
    at /lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#10 0x00007ffff44c3802 in g_closure_invoke ()
--Type <RET> for more, q to quit, c to continue without paging--
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff44d7814 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff44e2bbe in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff44e30f3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff49002ae in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#15 0x00007ffff4900318 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#16 0x00007ffff44c3a56 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff44e2b48 in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff44e30f3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff48fe754 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#20 0x00007ffff4bafae1 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#21 0x00007ffff44c3a56 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007ffff44e2b48 in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff44e30f3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#24 0x00007ffff49c6fcc in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#25 0x00007ffff44c6c56 in g_cclosure_marshal_VOID__BOXEDv ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#26 0x00007ffff44c3a56 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#27 0x00007ffff44e2b48 in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#28 0x00007ffff44e30f3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#29 0x00007ffff49c4012 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#30 0x00007ffff49c565b in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#31 0x00007ffff49c8646 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#32 0x00007ffff498fbb0 in gtk_event_controller_handle_event ()
    at /lib/x86_64-linux-gnu/libgtk-3.so.0
#33 0x00007ffff4b5216d in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#34 0x00007ffff4ba94fb in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#35 0x00007ffff44c3802 in g_closure_invoke ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#36 0x00007ffff44d6f96 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#37 0x00007ffff44e247d in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#38 0x00007ffff44e30f3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#39 0x00007ffff4b53c23 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#40 0x00007ffff4a0f128 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#41 0x00007ffff4a113db in gtk_main_do_event ()
    at /lib/x86_64-linux-gnu/libgtk-3.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#42 0x00007ffff46f9f79 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#43 0x00007ffff472d106 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#44 0x00007ffff43d817d in g_main_context_dispatch ()
    at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007ffff43d8400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007ffff43d86f3 in g_main_loop_run ()
    at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007ffff4a1037d in gtk_main () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#48 0x00007ffff6d5a575 in wxGUIEventLoop::DoRun() ()
    at /lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#49 0x00007ffff68c0d41 in wxEventLoopBase::Run() ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#50 0x00007ffff68883da in wxAppConsoleBase::MainLoop() ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#51 0x00007ffff691473d in wxEntry(int&, wchar_t**) ()
    at /lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#52 0x0000555555627c14 in main(int, char**) (argc=1, argv=0x7fffffffe008)
    at /home/s/Downloads/a/freedv/freedv-gui/src/main.cpp:180
(gdb)

Mooneer Salem

unread,
Nov 17, 2021, 3:17:33 AM11/17/21
to digita...@googlegroups.com
Hi Stephen,

Hmm, based on the current code in GitHub master I'm not sure how ofdm_set_verbose could get NULL. It's possible that something else is overwriting memory somewhere, though. Something you can try is the following:

1. Edit freedv-gui/build_linux/CMakeCache.txt and append "-fsanitize=address" (without quotes) to the end of the CMAKE_CXX_FLAGS and CMAKE_C_FLAGS lines. (See https://github.com/google/sanitizers/wiki/AddressSanitizer for more info on libasan, which is what that compiler flag links in.)
2. Re-run "make" within build_linux to rebuild freedv-gui.
3. Run "freedv" and interact with it until it crashes.

If something did indeed overwrite memory, there should be additional information on the console indicating where that happened exactly.

Thanks,

-Mooneer K6AQ

Curt

unread,
Nov 18, 2021, 11:41:21 AM11/18/21
to digita...@googlegroups.com

 Wondering if there is some reason that the CAT comms via Hamlib is
disabled when hard PTT is selected?

Not a big deal but it is a pita to be sure to add freq to the window for
PSK reporter.

KU8L

--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Mooneer Salem

unread,
Nov 18, 2021, 9:28:35 PM11/18/21
to digita...@googlegroups.com
Hi Curt,

Based on the current code, it doesn't seem that there's any reason why both can't be enabled (other than UI stuff preventing it as you've noticed). One question, though--if both are enabled, should Hamlib take priority for PTT or the serial port?

Thanks,

-Mooneer K6AQ

--
You received this message because you are subscribed to the Google Groups "digitalvoice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to digitalvoice...@googlegroups.com.

Curt

unread,
Nov 23, 2021, 1:38:51 PM11/23/21
to digita...@googlegroups.com
Hi Mooneer:

For me, I would think they should all be selectable independently.  With alternate lockout of course for CAT PTT vs Hard PTT.   Even the background running of Hamlib could be either default or selected to OFF--as it is not really necessary if using Serial PTT.  This would be similar to PTT selections in WSJT while CAT is always running in background for freq control/reporting even if Serial PTT is selected.

Curt

This email has been checked for viruses by Avast antivirus software.

Reply all
Reply to author
Forward
0 new messages