This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SIGSEGV (Address boundary error) running nrfutil or pc-ble-driver-py using a virtual pyenv environment

Description:

nrfutil and especially the pc-ble-driver-py seem to not work with virtual pyenv environments.

I am expecting it has something to do with the lib files _nrf_ble_driver_sd_api_vX.so

Environment:

  • macOS (10.15.4)
  • Shell: fish (2.7.1)
  • pyenv (1.2.18)
  • nrfutil (6.1.0)
  • pc_ble_driver_py (0.14.2)
  • otool -L /Users/myusername/.pyenv/versions/my3.7.6/lib/python3.7/site-packages/pc_ble_driver_py/lib/_nrf_ble_driver_sd_api_v5.so
    • /Users/myusername/.pyenv/versions/my3.7.6/lib/python3.7/site-packages/pc_ble_driver_py/lib/_nrf_ble_driver_sd_api_v5.so:
      @rpath/_nrf_ble_driver_sd_api_v5.so (compatibility version 0.0.0, current version 0.0.0)
      /Library/Frameworks/Python.framework/Versions/3.7/Python (compatibility version 3.7.0, current version 3.7.0)
      /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1560.12.0)
      /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
      /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
      /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)

Steps:

  • Creating a python virtual environment (i.e. 3.7.6) using pyenv
    • pyenv install 3.7.6
    • pyenv virtualenv 3.7.6 my3.7.6
    • pyenv local my3.7.6
  • Running nrfutil (dfu ble)
    • nrfutil dfu ble -pkg my_package.zip -ic MYNRF

Result:

The following segmentation fault occurs:

'nrfutil dfu ble -pkg my_packa…' terminated by signal SIGSEGV (Address boundary error)

Parents Reply Children
No Data
Related