GithubHelp home page GithubHelp logo

Comments (8)

daniestevez avatar daniestevez commented on June 11, 2024

Hi Alexander,

Sorry for the delay in replying. I wanted to try to replicate this in my system before giving you a reply. I have left the decoder running for around 20 hours and the problem has not appeared. Are you able to replicate the problem with a WAV recording?

Here I'm using gentoo:

$ uname -a
Linux akallabeth 4.17.12-gentoo #1 SMP PREEMPT Mon Aug 6 22:14:09 CEST 2018 x86_64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz GenuineIntel GNU/Linux
$ gcc --version
gcc (Gentoo 7.3.0-r3 p1.4) 7.3.0
$ gnuradio-companion --version
GNU Radio Companion 3.7.13.4
$ python2
Python 2.7.15 (default, Oct 20 2018, 01:58:40) 
[GCC 7.3.0] on linux2

from gr-satellites.

uy0ll avatar uy0ll commented on June 11, 2024

Hi, Daniel.
Thank for reply. I confirm the problem has not appeared (few days of telemetry forwarding to db.satnogs.org) on my desktop computer (see Ubuntu). I prepared and tested WAV recording on Ubuntu and tried WAV using audio_streamer.py on Raspberry Pi3. I got a something another:

$ python qo100.py
gr::log :DEBUG: correlate_access_code_tag_bb0 - Access code: 3915ed30
gr::log :DEBUG: correlate_access_code_tag_bb0 - Mask: ffffffff
gr::log :DEBUG: correlate_access_code_tag_bb1 - Access code: 3915ed30
gr::log :DEBUG: correlate_access_code_tag_bb1 - Mask: ffffffff
Reed-Solomon decode OK. Bytes corrected 0, 0.
2019-05-07 10:30:38
Packet number 0
K HI de Qatar-OSCAR 100 (DL50AMSAT)                             
UPT:   14d 20h 44m   CMD:    4   LEI_REQ:     0   LEI_ACT:     0
TEMP: 63 C VOLTAGES:  1.0 1.8 1.0 1.0 1.8 1.5 1.3 0.0 0.4 Volts 
TFL:     0 TFE:     0 TFH:     0 HFF:     0 HTH:     0 HR:    
gr::log :DEBUG: correlate_access_code_tag_bb1 - writing tag at sample 7944
2019-05-07 10:30:50
Packet number 1
L HI de Qatar-OSCAR 100 (DL50AMSAT)                             
Transponder is open for general use since 2019-02-14.           
Enjoy the Narrow Band (NB) and Wide Band (WB transponders.      
 Follow the guidelines and keep transmiter power below beacon.  
                                                                
For more information visit: http://amsat-dl.org/                
QO-100 was brought to you by Es'hailSat, QARS and AMSAT-DL.     
Good Luck and Good DX via the first geostationary P4-A satellite
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x1000100 
Aborted
pi@raspi-sdr:~/Documents/GRC/SAT $ python qo100.py
gr::log :DEBUG: correlate_access_code_tag_bb0 - Access code: 3915ed30
gr::log :DEBUG: correlate_access_code_tag_bb0 - Mask: ffffffff
gr::log :DEBUG: correlate_access_code_tag_bb1 - Access code: 3915ed30
gr::log :DEBUG: correlate_access_code_tag_bb1 - Mask: ffffffff
gr::log :DEBUG: correlate_access_code_tag_bb1 - writing tag at sample 1380
2019-05-07 10:31:15
Packet number 0
K HI de Qatar-OSCAR 100 (DL50AMSAT)                             
UPT:   14d 20h 45m   CMD:    4   LEI_REQ:     0   LEI_ACT:     0
TEMP: 63 C VOLTAGES:  1.0 1.8 1.0 1.0 1.8 1.5 1.3 0.0 0.4 Volts 
TFL:     0 TFE:     0 TFH:     0 HFF:     0 HTH:     0 HR:     0
                                                                
Reed-Solomon decode OK. Bytes corrected 0, 0.
2019-05-07 10:31:29
Packet number 1
K HI de Qatar-OSCAR 100 (DL50AMSAT)                             
UPT:   14d 20h 45m   CMD:    4   LEI_REQ:     0   LEI_ACT:     0
TEMP: 63 C VOLTAGES:  1.0 1.8 1.0 1.0 1.8 1.5 1.3 0.0 0.4 Volts 
TFL:     0 TFE:     0 TFH:     0 HFF:     0 HTH:     0 HR:    
gr::log :DEBUG: correlate_access_code_tag_bb1 - writing tag at sample 11540
2019-05-07 10:31:41
Packet number 2
L HI de Qatar-OSCAR 100 (DL50AMSAT)                             
Transponder is open for general use since 2019-02-14.           
Enjoy the Narrow Band (NB) and Wide Band (WB transponders.      
 Follow the guidelines and keep transmiter power below beacon.  
                                                                
For more information visit: http://amsat-dl.org/                
QO-100 was brought to you by Es'hailSat, QARS and AMSAT-DL.     
Good Luck and Good DX via the first geostationary P4-A satellite
Reed-Solomon decode OK. Bytes corrected 0, 0.
2019-05-07 10:31:54
Packet number 3
L HI de Qatar-OSCAR 100 (DL50AMSAT)                             
Transponder is open for general use since 2019-02-14.           
Enjoy the Narrow Band (NB) and Wide Band (WB transponders.      
 Follow the guidelines and keep transmiter power below beacon.
gr::log :DEBUG: correlate_access_code_tag_bb1 - writing tag at sample 21700
2019-05-07 10:32:06
Packet number 4
K HI de Qatar-OSCAR 100 (DL50AMSAT)                             
UPT:   14d 20h 46m   CMD:    4   LEI_REQ:     0   LEI_ACT:     0
TEMP: 63 C VOLTAGES:  1.0 1.8 1.0 1.0 1.8 1.5 1.3 0.0 0.5 Volts 
TFL:     0 TFE:     0 TFH:     0 HFF:     0 HTH:     0 HR:     0
                                                                                                                     
Reed-Solomon decode OK. Bytes corrected 1, 0.
2019-05-07 10:32:20
Packet number 5
K HI de Qatar-OSCAR 100 (DL50AMSAT)                             
UPT:   14d 20h 46m   CMD:    4   LEI_REQ:     0   LEI_ACT:     0
TEMP: 63 C VOLTAGES:  1.0 1.8 1.0 1.0 1.8 1.5 1.3 0.0 0.5 Volts 
TFL:     0 TFE:     0 TFH:     0 HFF:     0 HTH:     0 HR:    
gr::log :DEBUG: correlate_access_code_tag_bb1 - writing tag at sample 31860
2019-05-07 10:32:32
Packet number 6
L HI de Qatar-OSCAR 100 (DL50AMSAT)                             
Transponder is open for general use since 2019-02-14.           
Enjoy the Narrow Band (NB) and Wide Band (WB transponders.      
 Follow the guidelines and keep transmiter power below beacon.  
                                                                
For more information visit: http://amsat-dl.org/                
QO-100 was brought to you by Es'hailSat, QARS and AMSAT-DL.     
Good Luck and Good DX via the first geostationary P4-A satellite
Reed-Solomon decode OK. Bytes corrected 0, 0.
2019-05-07 10:32:45
Packet number 7
L HI de Qatar-OSCAR 100 (DL50AMSAT)                             
Transponder is open for general use since 2019-02-14.           
Enjoy the Narrow Band (NB) and Wide Band (WB transponders.      
 Follow the guidelines and keep transmiter power below beacon.
gr::log :DEBUG: correlate_access_code_tag_bb1 - writing tag at sample 42020
Segmentation fault

Actually I compiled all the programs necessary for working with Gnuradio on R-Pi3 (FFTW3 lib, libdsp, GRC,GQRX etc) using GCC v8.3, which is the only supporting all the capabilities of the Cortex-a53 (R-Pi3b CPU) :
$ lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Model: 4
Model name: ARMv7 Processor rev 4 (v7l)
CPU max MHz: 1400.0000
CPU min MHz: 600.0000
BogoMIPS: 38.40
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-8.3.0/libexec/gcc/arm-linux-gnueabihf/8.3.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../configure -v --enable-languages=c,c++ --prefix=/usr/local/gcc-8.3.0 --program-suffix=-8.3.0 --with-fpu=neon-fp-armv8 --with-cpu=cortex-a53 --with-float=hard --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (GCC)

Here my Ubuntu:
~$uname -a
Linux HFSS 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (Ubuntu 7.3.0-27ubuntu1
18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Model name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Stepping: 3
CPU MHz: 3069.807
CPU max MHz: 4400.0000
CPU min MHz: 800.0000
BogoMIPS: 7999.82
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d

~$ gnuradio-companion --version
GNU Radio Companion 3.7.13.4

This program is part of GNU Radio
GRC comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it.

~$ python2
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

~$ gqrx --version
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

Gqrx software defined radio receiver v2.11.5-6-g94aeaf7

Best regards,
Alexander

from gr-satellites.

daniestevez avatar daniestevez commented on June 11, 2024

This looks like a GNU Radio bug specific to ARM systems or something like that. i'm not sure from your reply: did you manage to produce a WAV recording that fails on the Raspberry Pi but runs OK on your PC?

The only way to debug this things is to compile with debug symbols and produce a core dump.

from gr-satellites.

uy0ll avatar uy0ll commented on June 11, 2024

Yes exactly, I produce a WAV recording that fails on the Raspberry Pi3 but runs OK on my PC.

Since the error messages mentioned "python: malloc.c sysmalloc", I assumed that the errors are due to I can't get Python malloc to work in some special cases.

I'll try to recompile Gnuradio with debug symbols (CFLAGS=-g3 -fsanitize=address) and produce a core dump.

from gr-satellites.

uy0ll avatar uy0ll commented on June 11, 2024

It was possible to build fully working gr-satellites, selecting a special set of compilation options.

Best regards,
Alexander

from gr-satellites.

doctorvenables avatar doctorvenables commented on June 11, 2024

I'm having the same issue. Can happily run gr-satellites on chromebook with gallium OS but not on my RPi4.
uy0ll - can you let us know those compilation options please?

from gr-satellites.

uy0ll avatar uy0ll commented on June 11, 2024

uy0ll - can you let us know those compilation options please?

RPi3 GNU Radio manual source build:
cmake -DCMAKE_C_FLAGS="-march=armv8-a+crc -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -mhard-float -mlittle-endian -mtls-dialect=gnu -funsafe-math-optimizations -mvectorize-with-neon-quad -lusb-1.0" -DCMAKE_CXX_FLAGS="-march=armv8-a+crc -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -mhard-float -mlittle-endian -mtls-dialect=gnu -funsafe-math-optimizations -mvectorize-with-neon-quad -lusb-1.0" ../

from gr-satellites.

doctorvenables avatar doctorvenables commented on June 11, 2024

from gr-satellites.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.