Re: Minor coredump in MMDVM_Bridge when there is a typo in the config


Steve KC1AWV
 

I think you copied the later output after you resolved the issue instead of what you intended to send.

I've never seen a core dump on a misconfigured ini file like that, and I've misconfigured a lot in MB... Though it is a bit late for me to try and replicate it. 

On Sun, Jun 2, 2019, 11:34 PM David Ranch <dvswitch-groupsio@...> wrote:

Huh.. something happened to my email.  Here is the initial run showing the core (at the bottom:

[root@ww6bay-asl MMDVM_Bridge]# /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini    
I: 2019-06-03 00:10:16.154 MMDVM_Bridge:                                                             
I: 2019-06-03 00:10:16.154 Portions Copyright (C) 2018 DVSwitch, INAD.                               
I: 2019-06-03 00:10:16.154 Hacks by Mike N4IRR and Steve N4IRS                                       
I: 2019-06-03 00:10:16.154 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-                              
I: 2019-06-03 00:10:16.154 This software is for use on amateur radio networks only,                  
I: 2019-06-03 00:10:16.154 it is to be used for educational purposes only. Its use on                
I: 2019-06-03 00:10:16.154 commercial networks is strictly prohibited.                               
I: 2019-06-03 00:10:16.154 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others               
M: 2019-06-03 00:10:16.154 MMDVM_Bridge-20180423 is starting                                         
M: 2019-06-03 00:10:16.154 Built 19:26:19 Jul 26 2018 (GitID #903ae69)                               
I: 2019-06-03 00:10:16.154 General Parameters                                                        
I: 2019-06-03 00:10:16.154     Callsign: WW6BAY                                                      
I: 2019-06-03 00:10:16.155     Id: 11068301                                                          
I: 2019-06-03 00:10:16.155     Duplex: no                                                            
I: 2019-06-03 00:10:16.155     Timeout: 180s                                                         
I: 2019-06-03 00:10:16.155     D-Star: disabled                                                      
I: 2019-06-03 00:10:16.155     DMR: enabled                                                          
I: 2019-06-03 00:10:16.155     YSF: disabled                                                         
I: 2019-06-03 00:10:16.155     P25: disabled                                                         
I: 2019-06-03 00:10:16.155     NXDN: disabled                                                        
I: 2019-06-03 00:10:16.155 Modem Parameters                                                          
I: 2019-06-03 00:10:16.155     Port: /dev/null                                                       
I: 2019-06-03 00:10:16.155     RX Invert: no                                                         
I: 2019-06-03 00:10:16.155     TX Invert: no                                                         
I: 2019-06-03 00:10:16.155     PTT Invert: no                                                        
I: 2019-06-03 00:10:16.155     TX Delay: 100ms                                                       
I: 2019-06-03 00:10:16.155     RX Offset: 0Hz                                                        
I: 2019-06-03 00:10:16.155     TX Offset: 0Hz                                                        
I: 2019-06-03 00:10:16.155     RX DC Offset: 0                                                       
I: 2019-06-03 00:10:16.155     TX DC Offset: 0                                                       
I: 2019-06-03 00:10:16.155     RF Level: 100.0%                                                      
I: 2019-06-03 00:10:16.155     DMR Delay: 0 (0.0ms)                                                  
I: 2019-06-03 00:10:16.155     RX Level: 50.0%                                                       
I: 2019-06-03 00:10:16.155     CW Id TX Level: 50.0%                                                 
I: 2019-06-03 00:10:16.155     D-Star TX Level: 50.0%                                                
I: 2019-06-03 00:10:16.155     DMR TX Level: 50.0%                                                   
I: 2019-06-03 00:10:16.155     YSF TX Level: 50.0%                                                   
I: 2019-06-03 00:10:16.155     P25 TX Level: 50.0%                                                   
I: 2019-06-03 00:10:16.155     NXDN TX Level: 50.0%                                                  
I: 2019-06-03 00:10:16.155     RX Frequency: 222340000Hz (222340000Hz)                               
I: 2019-06-03 00:10:16.156     TX Frequency: 224940000Hz (224940000Hz)                               
M: 2019-06-03 00:10:16.156 Opening the MMDVM                                                         
I: 2019-06-03 00:10:16.156 Display Parameters                                                        
I: 2019-06-03 00:10:16.156     Type:                                                                 
I: 2019-06-03 00:10:16.156 DMR Network Parameters                                                    
I: 2019-06-03 00:10:16.156     Address:                                                              
I: 2019-06-03 00:10:16.156     Port: 62031                                                           
I: 2019-06-03 00:10:16.156     Local: 62032                                                          
I: 2019-06-03 00:10:16.156     Jitter: 360ms                                                         
I: 2019-06-03 00:10:16.156     Slot 1: disabled                                                      
I: 2019-06-03 00:10:16.156     Slot 2: enabled                                                       
I: 2019-06-03 00:10:16.156     Mode Hang: 3s                                                         
MMDVM_Bridge: DMRNetwork.cpp:69: CDMRNetwork::CDMRNetwork(const string&, unsigned int, unsigned int, unsigned int, const string&, bool, const char*, bool, bool, bool, HW_TYPE): Assertion `!address.empty()' failed.                                                                                                                                                                                                        
Aborted (core dumped)                                                                                                                                                                                         
[root@ww6bay-asl MMDVM_Bridge]#


--David




On 06/02/2019 08:08 PM, Steve KC1AWV wrote:
Where's the indication of a core dump?

On Sun, Jun 2, 2019, 10:36 PM David Ranch <dvswitch-groupsio@...> wrote:

Hello Everyone,

David KI6ZHD here and I'm on the final stages of following the https://docs.google.com/document/d/1eN50Csr29eAprBu7eKA0Bfa2XUcsXw5iktY1Ey-Qjkg/edit documentation to bring up a ASL <-> DMR link.  I happened to make a small typo in the MMDVM_Bridge.ini config:

was:
   [DMR Network]
   ddress=3108.repeater.net

should be:

   [DMR Network]
   Address=3108.repeater.net


and when trying to start the MMDVM_Bridge program, it core dumped:
--
[root@ww6bay-asl MMDVM_Bridge]# /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini    
I: 2019-06-03 00:10:16.154 MMDVM_Bridge:                                                             
I: 2019-06-03 00:10:16.154 Portions Copyright (C) 2018 DVSwitch, INAD.                               
I: 2019-06-03 00:10:16.154 Hacks by Mike N4IRR and Steve N4IRS                                       
I: 2019-06-03 00:10:16.154 =                         
I: 2019-06-03 00:15:01.292 This software is for use on amateur radio networks only,             
I: 2019-06-03 00:15:01.292 it is to be used for educational purposes only. Its use on           
I: 2019-06-03 00:15:01.292 commercial networks is strictly prohibited.                          
I: 2019-06-03 00:15:01.292 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others          
M: 2019-06-03 00:15:01.292 MMDVM_Bridge-20180423 is starting                                    
M: 2019-06-03 00:15:01.292 Built 19:26:19 Jul 26 2018 (GitID #903ae69)                          
I: 2019-06-03 00:15:01.292 General Parameters                                                   
I: 2019-06-03 00:15:01.292     Callsign: WW6BAY                                                 
I: 2019-06-03 00:15:01.292     Id: 11068301                                                     
I: 2019-06-03 00:15:01.293     Duplex: no                                                       
I: 2019-06-03 00:15:01.293     Timeout: 180s                                                    
I: 2019-06-03 00:15:01.293     D-Star: disabled                                                 
I: 2019-06-03 00:15:01.293     DMR: enabled                                                     
I: 2019-06-03 00:15:01.293     YSF: disabled                                                    
I: 2019-06-03 00:15:01.293     P25: disabled                                                    
I: 2019-06-03 00:15:01.293     NXDN: disabled                                                   
I: 2019-06-03 00:15:01.293 Modem Parameters                                                     
I: 2019-06-03 00:15:01.293     Port: /dev/null                                                  
I: 2019-06-03 00:15:01.293     RX Invert: no                                                    
I: 2019-06-03 00:15:01.293     TX Invert: no                                                    
I: 2019-06-03 00:15:01.293     PTT Invert: no                                                   
I: 2019-06-03 00:15:01.294     TX Delay: 100ms                                                  
I: 2019-06-03 00:15:01.294     RX Offset: 0Hz                                                   
I: 2019-06-03 00:15:01.294     TX Offset: 0Hz                                                   
I: 2019-06-03 00:15:01.294     RX DC Offset: 0                                                  
I: 2019-06-03 00:15:01.294     TX DC Offset: 0                                                  
I: 2019-06-03 00:15:01.294     RF Level: 100.0%                                                 
I: 2019-06-03 00:15:01.294     DMR Delay: 0 (0.0ms)                                             
I: 2019-06-03 00:15:01.294     RX Level: 50.0%                                                  
I: 2019-06-03 00:15:01.295     CW Id TX Level: 50.0%                                            
I: 2019-06-03 00:15:01.295     D-Star TX Level: 50.0%                                           
I: 2019-06-03 00:15:01.295     DMR TX Level: 50.0%                                              
I: 2019-06-03 00:15:01.295     YSF TX Level: 50.0%                                              
I: 2019-06-03 00:15:01.295     P25 TX Level: 50.0%                                              
I: 2019-06-03 00:15:01.295     NXDN TX Level: 50.0%                                             
I: 2019-06-03 00:15:01.295     RX Frequency: 222340000Hz (222340000Hz)                          
I: 2019-06-03 00:15:01.295     TX Frequency: 224940000Hz (224940000Hz)                          
M: 2019-06-03 00:15:01.296 Opening the MMDVM                                                    
I: 2019-06-03 00:15:01.296 Display Parameters                                                   
I: 2019-06-03 00:15:01.296     Type:                                                            
I: 2019-06-03 00:15:01.296 DMR Network Parameters                                               
I: 2019-06-03 00:15:01.296     Address: 3108.repeater.net                                       
I: 2019-06-03 00:15:01.296     Port: 62031                                                      
I: 2019-06-03 00:15:01.296     Local: 62032                                                     
I: 2019-06-03 00:15:01.297     Jitter: 360ms                                                    
I: 2019-06-03 00:15:01.297     Slot 1: disabled                                                 
I: 2019-06-03 00:15:01.297     Slot 2: enabled                                                  
I: 2019-06-03 00:15:01.297     Mode Hang: 3s                                                    
I: 2019-06-03 00:15:01.475 Info Parameters                                                      
I: 2019-06-03 00:15:01.476     Callsign: WW6BAY                                                 
I: 2019-06-03 00:15:01.476     RX Frequency: 222340000Hz                                        
I: 2019-06-03 00:15:01.476     TX Frequency: 224940000Hz                                        
I: 2019-06-03 00:15:01.476     Power: 1W                                                        
I: 2019-06-03 00:15:01.476     Latitude: 41.733299deg N                                         
I: 2019-06-03 00:15:01.476     Longitude: -50.399899deg E                                       
I: 2019-06-03 00:15:01.476     Height: 0m                                                       
I: 2019-06-03 00:15:01.476     Location: "Iceberg, North Atlantic"                              
I: 2019-06-03 00:15:01.476     Description: "MMDVM_Bridge"                                      
I: 2019-06-03 00:15:01.476     URL: "https://groups.io/g/DVSwitch"                              
M: 2019-06-03 00:15:01.476 DMR, Opening DMR Network                                             
I: 2019-06-03 00:15:01.476 RSSI                                                                 
I: 2019-06-03 00:15:01.476     Mapping File: RSSI.dat
W: 2019-06-03 00:15:01.476 Cannot open the RSSI data file - RSSI.dat
I: 2019-06-03 00:15:01.476 DMR Id Lookups
I: 2019-06-03 00:15:01.476     File: /var/lib/mmdvm/DMRIds.dat
I: 2019-06-03 00:15:01.476     Reload: 24 hours
I: 2019-06-03 00:15:01.997 Loaded 96141 Ids to the DMR callsign lookup table
I: 2019-06-03 00:15:01.997 DMR RF Parameters
I: 2019-06-03 00:15:01.997     Id: 11068301
I: 2019-06-03 00:15:01.997     Color Code: 1
I: 2019-06-03 00:15:01.997     Self Only: no
I: 2019-06-03 00:15:01.997     Embedded LC Only: yes
I: 2019-06-03 00:15:01.997     Dump Talker Alias Data: no
I: 2019-06-03 00:15:01.997     Prefixes: 0
I: 2019-06-03 00:15:01.997     Call Hang: 3s
I: 2019-06-03 00:15:01.997     TX Hang: 3s
I: 2019-06-03 00:15:01.997     Mode Hang: 10s
M: 2019-06-03 00:15:01.997 DMR, Opening INI file: DVSwitch.ini
M: 2019-06-03 00:15:01.998 DMR, Setting [DMR] Address -> 127.0.0.1
M: 2019-06-03 00:15:01.998 DMR, Setting [DMR] TXPort -> 31100
M: 2019-06-03 00:15:01.998 DMR, Setting [DMR] RXPort -> 31103
M: 2019-06-03 00:15:01.998 DMR, Setting [DMR] Slot -> 2
M: 2019-06-03 00:15:01.998 DMR, Transmitting on 127.0.0.1:31100 and listening on port 31103.  Result = 1
M: 2019-06-03 00:15:01.998 MMDVM_Bridge-20180423 is running
I: 2019-06-03 00:15:01.998 Started the DMR Id lookup reload thread
D: 2019-06-03 00:15:12.063 DMR, Sending authorisation
D: 2019-06-03 00:15:12.130 DMR, Sending configuration
M: 2019-06-03 00:15:12.196 DMR, Logged into the master successfully
^CM: 2019-06-03 01:05:40.041 Closing the MMDVM
I: 2019-06-03 01:05:40.219 Stopped the DMR Id lookup reload thread
M: 2019-06-03 01:05:40.219 DMR, Closing DMR Network
I: 2019-06-03 01:05:40.219 MMDVM_Bridge-20180423 exited on receipt of SIGINT
--


I thought I'd report the error since a program should ideally never coredump

--David
KI6ZHD

Join main@DVSwitch.groups.io to automatically receive all group messages.