robotastic / trunk-recorder

Records calls from a Trunked Radio System (P25 & SmartNet)
GNU General Public License v3.0
850 stars 191 forks source link

Segmentation fault when running starting trunk-recorder w/RTL-SDR #264

Closed jaxonashton closed 4 years ago

jaxonashton commented 5 years ago

I'm getting a segmentation fault error immediately after running ./recorder. I've rebuild trunk-builder at least once now, thinking it was something to do with the way it compiled. No joy. Hoping to get some help with this so I can start contributing some public safety channels to OpenMHz.com.

Environment

Raspi 4 with Buster

Config

{
    "sources": [

        {
            "center": 853762500.0,
            "rate": 2048000.0,
            "error": 1100,
            "gain": 24,
        "analogRecorders": 1,
            "modulation": "fsk4",
            "analogLevels": 8,
            "driver": "osmosdr"       
    }

    ],
    "systems": [
    {
            "control_channels": [853762500, 851887500, 852262500, 852375000],
            "type": "smartnet",
            "talkgroupsFile": "montcopa.csv",
            "shortName": "montcopa",
        "apiKey": "..."
        }
    ],
    "uploadServer": "..."
}

CSV

1616,65,A,PD 3 Disp,Police Region 3 Dispatch (North-Central),Law Dispatch ,Police - West System,1
1648,67,A,PD 4 Disp,Police Region 4 Dispatch (Southeast),Law Dispatch,Police - East System,1
1680,69,A,PD 2 Disp,Police Reion 2 Dispatch (Southwest),Law Dispatch,Police - West System,1
1712,06b,A,PD 1 Disp,Police Region 1 Dispatch (Northwest),Law Dispatch,Police - West System ,1
1744,06d,A,PD Data,Police Data / Lookups,Law Talk,Police - Countywide,1
1808,71,A,PD 1 Region,Police Region 1 Secondary,Law Talk,Police - West System,1
1840,73,A,PD 2 Region,Police Region 2 Secondary,Law Talk,Police - West System,1
1872,75,A,PD 3 Region,Police Region 3 Secondary,Law Talk,Police - West System,1
1904,77,A,PD 4 Region,Police Region 4 Secondary,Law Talk,Police - East System,1
1936,79,A,PD 5 Region,Police Region 5 Secondary,Law Talk,Police - East System,1
1968,07b,A,PD Tac 1,Police P-Tac 1,Law Tac,Police - Countywide,1
2000,07d,A,PD Tac 2,Police P-Tac 2,Law Tac,Police - Countywide,1
2032,07f,A,PD Tac 3,Police P-Tac 3,Law Tac,Police - Countywide,1
2064,81,A,PD Tac 4,Police P-Tac 4,Law Tac,Police - Countywide,1
2096,83,A,PD Tac 5,Police P-Tac 5,Law Tac,Police - Countywide,1
2128,85,A,CoWidePD C-C,Countywide Police Car-Car,Law Talk,Police - Countywide,1
2192,89,A,PD 7 Region,Police Region 7 Secondary,Law Talk,Police - East System,1
2224,08b,A,Sheriff,Montgomery County Sheriff ,Law Dispatch ,Police - Countywide ,1
2256,08d,A,PD 9 Disp,"Police Region 9 Dispatch (Abington, Rockledge)",Law Dispatch,Police - East System,1
2288,08f,A,PD 6 Disp,"Police Region 6 Dispatch (Cheltenham, Jenkintown, Springfield)",Law Dispatch,Police - East System,1
2352,93,A,LGS Intercom,Exelon Limerick Generating Station to Co. Radio Room,Interop,Co. Govt. Services - West System,1
2384,95,A,EMA East,Emergency Management Coordination East,Emergency Ops,Police - East System,1
2544,09f,A,Flash Annc,Countywide Flash Message Announcements - All Agencies,Interop,Interop - Countywide,1
2640,0a5,A,PD 8 Disp 52,Police Region 8 Dispatch (Norristown),Law Dispatch,Police - East System,1
2672,0a7,A,PD 6 Region,Police Region 6 Secondary,Law Talk,Police - East System,1
2832,0b1,A,PD 9 Region,Police Region 9 Secondary,Law Talk,Police - East System,1
2928,0b7,A,Prison Trnsp,Montgomery County Correctional Facility Transports,Law Talk,Co. Govt. Services - West System,1
2992,0bb,A,Event 5,Event 5,Fire-Tac,Interop - Countywide,1
3024,0bd,A,Event 6,Event 6,Fire-Tac,Interop - Countywide,1
3056,0bf,A,Event 7,Event 7,Interop,Interop - Countywide,1
3088,0c1,A,Event 8,Event 8,Interop,Interop - Countywide,1
3120,0c3,A,Event 9,Event 9,Interop,Interop - Countywide,1
3152,0c5,A,Event 10,Event 10,Interop,Interop - Countywide,1
3184,0c7,A,Event Spcl,Event Special - Dynamic Regrouping,Public Works,Dept. of Public Safety - Countywide,1
3280,0cd,A,EMS Dispatch,EMS Dispatch,EMS Dispatch,Fire/EMS - Countywide,1
3312,0cf,A,EMS Hailing,EMS Hailing,EMS-Tac,Fire/EMS - Countywide,1
3344,0d1,A,EMS Hosp ER1,EMS-to-Hospital (also on-scene tactical use),EMS-Talk,Fire/EMS - Countywide,1
3376,0d3,A,EMS Hosp ER2,EMS-to-Hospital (also on-scene tactical use),EMS-Talk,Fire/EMS - Countywide,1
3536,0dd,A,EMS Ops,EMS Operations (Unit-Unit),EMS-Tac,Fire/EMS - Countywide,1
3568,0df,A,PS Coord,Public Safety Coordination,Interop,Interop - Countywide,1
3600,0.00E+00,A,DPS A,DPS Analog ,Emergency Ops,Dept. of Public Safety - Countywide,1
3632,0.00E+00,A,Courthse Sec,Courthouse Security,Security,Co. Govt. Services - Countywide,1
3664,0.00E+00,A,EMA West,Emergency Management Coordination West,Emergency Ops,Police - West System,1
3696,0.00E+00,A,EDS Mgmt A,Emergency Dispatch Services - Analog,Public Works,Dept. of Public Safety - Countywide,1
3728,0.00E+00,A,Test A,Testing Talkgroup,Public Works,Dept. of Public Safety - Countywide,1
3760,0eb,A,County Parks,Parks & Heritage Services,Public Works,Co. Govt. Services - Countywide,1
3792,0ed,A,Public Works,Roads & Bridges,Public Works,Co. Govt. Services - Countywide,1
3824,0ef,A,CW Emergency,Countywide Emergency,Interop,Interop - Countywide,1
3856,0f1,A,Event 1,Event 1,Fire-Tac,Interop - Countywide,1
3888,0f3,A,Event 2,Event 2,Fire-Tac,Interop - Countywide,1
3920,0f5,A,Event 3,Event 3,Fire-Tac,Interop - Countywide,1
3952,0f7,A,Event 4,Event 4,Fire-Tac,Interop - Countywide,1
3984,0f9,A,Parkhouse,Parkhouse (formerly Montgomery County Geriatric and Rehabilitation Center),Public Works,Co. Govt. Services - West System,1
4016,0fb,A,PD 5 Disp,Police Region 5 Dispatch (Northeast),Law Dispatch,Police - East System,1
4048,0fd,A,FD/EMS EmBtn,Fire/EMS Emergency Button (Orange),Multi-Tac,Fire/EMS - Countywide,1
4080,0ff,A,52 PD Ch 2,Norristown Borough Police Car-to-Car,Law Talk,Police - East System,1
4112,101,A,PD 11 Disp,"Police Region 11 Dispatch (E Norriton, Whitpain, U Dublin, Horsham)",Law Dispatch,Police - East System,1
4144,103,A,PD 11 Region,Police Region 11 Secondary,Law Talk,Police - East System,1
16208,3f5,DE,PD Secure 1,Secure Tactical 1 ,Law Tac ,Police - Countywide,1
16624,40f,DE,Cnty Detect1,County Detectives 1,Law Tac,Police - Countywide,1
16688,413,DE,Cnty Detect2,County Detectives 2,Law Tac,Police - Countywide,1
16752,417,D,PD 10 Disp,"Police Region 10 Dispatch (Lower Merion, Narberth)",Law Dispatch,Police - East System,1
16784,419,D,PD 10 Region,Police Region 10 Secondary,Law Talk,Police - East System,1
16944,423,DE,PD 12 Disp,Police Region 12 Dispatch (Pottstown),Law Dispatch,Police - West System,1
17104,42d,D,56 PD Disp,Upper Merion Township Police Dispatch,Law Dispatch,Police - East System,1
17392,43f,D,PD 7 Disp,"Police Region 7 Dispatch (Whitemarsh, Plymouth, Conshohocken, W Conshohocken)",Law Dispatch,Police - East System,1
17456,443,DE,PD Secure 2,Secure Tactical 2,Law Tac,Police - Countywide,1
17488,445,DE,PD Secure 3,Secure Tactical 3,Law Tac,Police - Countywide,1
17520,447,DE,PD Secure 4,Secure Tactical 4,Law Tac,Police - Countywide,1
17552,449,DE,PD Secure 5,Secure Tactical 5,Law Tac,Police - Countywide,1
21072,525,D,Hospital Adm,Hospital Administration (Countywide Net),Hospital,Fire/EMS - Countywide,1
22416,579,D,Fire Disp W,Fire Dispatch West (patched to 22448),Deprecated,Fire - West System,1
22448,57b,D,Fire Disptch,Fire Dispatch - Countywide,Fire Dispatch,Fire/EMS - Countywide,1
22512,57f,D,Fire Regn 1,Fire Region 1,Fire-Tac,Fire - West System,1
22544,581,D,Fire Regn 2,Fire Region 2,Fire-Tac,Fire - West System,1
22576,583,D,Fire Regn 3,Fire Region 3,Fire-Tac,Fire - West System,1
22608,585,D,Fire Regn 4,Fire Region 4,Fire-Tac,Fire - East System,1
22640,587,D,Fire Regn 5,Fire Region 5,Fire-Tac,Fire - East System,1
22672,589,D,Fire Regn 6,Fire Region 6,Fire-Tac,Fire - East System,1
22704,58b,D,FirePol East,Fire Police East (Traffic Control Operations),Fire-Talk,Fire - East System,1
22736,58d,D,FirePol West,Fire Police West (Traffic Control Operations),Fire-Talk,Fire - West System,1
24720,609,DE,SpecialOps 1,Special Ops 1 (Hazmat/Bomb Squad),Emergency Ops,Dept. of Public Safety - Countywide,1
25648,643,D,EMA Coord,Emergency Management Coordination Countywide,Emergency Ops,Police - Countywide,1
25680,645,DE,DPS 2,DPS 2,Emergency Ops,Dept. of Public Safety - Countywide,1
25840,64f,DE,DPS 1,DPS 1,Emergency Ops,Dept. of Public Safety - Countywide,1
25968,657,DE,DPS 3,DPS 3,Emergency Ops,Dept. of Public Safety - Countywide,1
26032,65b,DE,Tech Srvc 3,Emergency Dispatch Services - Digital 3,Public Works,Dept. of Public Safety - Countywide,1
26064,65d,DE,Tech Srvc 2,Emergency Dispatch Services - Digital 2,Public Works,Dept. of Public Safety - Countywide,1
26096,65f,DE,Tech Srvc 1,Emergency Dispatch Services - Digital 1,Public Works,Dept. of Public Safety - Countywide,1
jaxonashton commented 5 years ago

FWIW, I restarted the raspi and now instead of a Segmentation Fault error message, I'm getting this, after a few seconds:

pi@raspberrypi:~/trunk-build $ ./recorder
./recorder: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libboost_unit_test_framework.so.1.67.0: unexpected reloc type 0x22

When I reboot again, I get a completely different error this time when running ./recorder:

pi@raspberrypi:~/trunk-build $ ./recorder
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted
jaxonashton commented 4 years ago

Recreating issue so that the problem is clearer.