mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-15 21:01:26 +00:00
So, the Python garbage collector is a bit pernicious, in that it happens behind the scenes in a way which is difficult to predict. The rfdc_ctrl class expects that its "lifetime" will be a single live/die cycle of the FPGA (i.e. that when a new FPGA is loaded, it will be destructed). However, by default the Python GC will keep the X4xxRfdcCtrl class alive for an arbitrary amount of time, meaning that it's possible that multiple (C++) rfdc_ctrl classes can be alive at a single time. When the GC reaps all of these classes, libmetal segfaults when we call metal_finish several times in a row. This change works around that issue, if not the overall GC issue, by explicitly deleting the rfdc_ctrl object. |
||
|---|---|---|
| .. | ||
| chips | ||
| cores | ||
| dboard_manager | ||
| periph_manager | ||
| simulator | ||
| sys_utils | ||
| xports | ||
| __init__.py.in | ||
| aurora_control.py | ||
| bfrfs.py | ||
| bist.py | ||
| CMakeLists.txt | ||
| components.py | ||
| discovery.py | ||
| e31x_legacy_eeprom.py | ||
| eeprom.py | ||
| ethdispatch.py | ||
| fpga_bit_to_bin.py | ||
| gpsd_iface.py | ||
| mpmlog.py | ||
| mpmtypes.py | ||
| mpmutils.py | ||
| prefs.py | ||
| process_manager.py | ||
| rpc_server.py | ||
| test_bfrfs.py | ||
| tlv_eeprom.py | ||
| user_eeprom.py | ||