[Hackrf-dev] Python JIT memory alloc error

Rick "Zero_Chaos" Farina zerochaos at gentoo.org
Wed Aug 27 21:48:43 EDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/27/2014 05:58 PM, Brian Riley wrote:
> I am running on a 2.5 GHz Core 2 Duo with 4 GB RAM from an 8GB flash key without persistence. After solving a half dozen Gotchas the system finally recognized my HackRF One and GRC tried to compile …   then this happened. 
> 
> Now I Googled error string and all that I have found so far is that it appears   to be a long running,  well known, Gentoo problem …  so far the occurrences are all over the map … HELP ??!! has anybody seen this?
> 
> tnx … cheers … BBR
> 
>  p.s.  is there an equivalent  command  to “hackrf_info” for the RTL-SDR dongle.
> 
> 
> =====================
> 
> <<< Welcome to GNU Radio Companion 3.7.4 >>>
> 
> Preferences file: /root/.grc
> Block paths:
> 	/usr/share/gnuradio/grc/blocks
> 	/root/.grc_gnuradio
> 
> Loading: "/run/media/root/HACKSDR/lesson1.grc"
>>>> Done
> 
> Showing: "/run/media/root/HACKSDR/lesson1.grc"
> 
> Generating: "/run/media/root/HACKSDR/top_block.py"
> 
> Generating: "/run/media/root/HACKSDR/top_block.py"
> 
> Executing: "/run/media/root/HACKSDR/top_block.py"
> 
> linux; GNU C++ version 4.7.3; Boost_105300; UHD_003.007.001-0-unknown
> 
> Using Volk machine: ssse3_64_orc
> gr-osmosdr 0.1.1 (0.1.1) gnuradio 3.7.4
> built-in source types: fcd rtl rtl_tcp uhd hackrf bladerf 
> Using HackRF One with firmware git-44df9d1 
> OOOOOOOOOOOOLLVM ERROR: Allocation failed when allocating new memory in the JIT
> Can't allocate RWX Memory: Operation not permitted

allocating RWX memory is generally a terrible thing to do security and
stability-wise.  That said, that is exactly how JIT code all works (and
a large amount of opencl code).  Gentoo's hardened project offers a PaX
hardened kernel and toolchain hardening which prevents allocations of
RWX memory to preserve security.  That said, I am running on hardened
and not only does that not happen to me, I don't see anything like that:

zero at ozzie ~ % gnuradio-companion
linux; GNU C++ version 4.8.3; Boost_105300; UHD_003.007.002-0-unknown

<<< Welcome to GNU Radio Companion 3.7.4 >>>

Preferences file: /home/zero/.grc
Block paths:
	/usr/share/gnuradio/grc/blocks
	/home/zero/.grc_gnuradio

Loading: "/home/zero/Downloads/lesson1.grc"
>>> Done

Showing: "/home/zero/Downloads/lesson1.grc"

Generating: "/home/zero/Downloads/top_block.py"

Executing: "/home/zero/Downloads/top_block.py"

linux; GNU C++ version 4.8.3; Boost_105300; UHD_003.007.002-0-unknown

Using Volk machine: avx_64_mmx_orc
gr-osmosdr 0.1.2 (0.1.2) gnuradio 3.7.4
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf
Using Jawbreaker with firmware 2014.04.1
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
>>> Done
zero at ozzie ~ %


You may notice immediately that on my system, there is no LLVM ERROR,
and I'm assuming this has something to do with it.  I honestly have no
idea where the references to LLVM or JIT are coming from, I don't see
anything related in gnuradio, gr-osmosdr, nor hackrf.  Please provide
more information on what is going on and I will try to assist.

Thanks,
Zero_Chaos


> OO
>>>> Done
> _______________________________________________
> HackRF-dev mailing list
> HackRF-dev at greatscottgadgets.com
> http://nine.pairlist.net/mailman/listinfo/hackrf-dev
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJT/op7AAoJEKXdFCfdEflK4KwQAJIZoJrln80R4i6tQW/2WrmV
vTS+e8sIyxl8N33mgJva0XframZ0PnKYx8cEfZXdruN7reac6zavEkElLrkVjXlK
pHMR4RYOZQCHClaqs7gE7KU7Sx5i/KNnhHUYnVbTFf3Qj1GMFhCNg1uZ2Odz1UVo
GI9hBNSvsEDVv91qsEcXmNofLaBClq2TXfGyUJFT+ZsQ6EeCk21DRsSrWDhuITd7
6h6IuVCv1ouiduyDxIKLFvborjncKguXHWQWnkTEmko6daTMxUymlf7uu9WjoSfQ
GDUPJ3Op5j4JH1FH+M2HY0vDGaCqawRDXTrmSaRywZtEgZe5UpSxDsq7792sbW2S
j1aiC+jx+u26gBWhBpz/QIvS8J45g4bXhJb8rtWMdRWdsc6rk8vr2EfYk97hbXSM
MDME8j/vslnaW+ZPNz1WDo2OOWC45FODdFayzJsQSZ7PWp6f09ifuWRRuZk1OdE1
YW7iJ0w5Z0f8kN9EErYwLJ3nbZEHbsAYEIM1IZcZAL10LOPRFR+3YZ5RUP7C3qqr
o8hAG5i2QNlimvug8+R/aKe82vdDutrLdeZwVfq9VJqZrMSK4H2XAFNh0XrAVVUQ
XOSwZW1nr/khNaStPPUDPzxD5B4mcHuU8otOkxW4hiuomoaVS75+ZfgynWJtF+LO
hpc/dTc++eH97t3yo5R9
=1JH6
-----END PGP SIGNATURE-----


More information about the HackRF-dev mailing list