-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'helper exited' + segfault #223
Comments
First question is where the
Thanks |
Thanks. I'm glad you replied so we can step through this.
|
Something weird is going on if you needed Something else to try is finding out whether the pre-built Thanks |
Hi, I ran into the same error - and fixed it with the download of the bluepy-helper. Additional Detail - I installed it on a raspberry pi 3 and a raspberry pi zero - and it only failed on the zero... maybe a coincidence Thanks for the solution. |
It might not be a coincidence that it worked on the RPi3 and failed on the RPi Zero W. As you can see from: https://en.wikipedia.org/wiki/Raspberry_Pi |
So I've managed to reproduce this on a Zero W, using latest Raspbian Stretch. It's well weird - Maybe there's some way in which "installing" it from the build directory to |
Hey guys, I have a similar problem but on a amd64 machine:
So I guess there is something wrong with the build/installation process and it tries to deploy the ARM v7 binary to all platforms... I uploaded my 2 executables (broken and working): |
HI all, I can confirm this bug, on a raspberry pi :(. I have uninstalled and reinstalled bluepy with '-v' and I have some additional information pasted below that I hope will be useful. Let me know if I can help with something else. [pi@rpi04 17:26:51] [~]$ sudo pip -v install bluepy Converted retries value: Retry(total=5, connect=None, read=None, redirect=None) -> Retry(total=Retry(total=5, connect=None, read=None, redirect=None), connect=None, read=None, redirect=None) Converted retries value: Retry(total=5, connect=None, read=None, redirect=None) -> Retry(total=Retry(total=5, connect=None, read=None, redirect=None), connect=None, read=None, redirect=None) Collecting bluepy 1 location(s) to search for versions of bluepy: * https://pypi.python.org/simple/bluepy/ Getting page https://pypi.python.org/simple/bluepy/ Looking up "https://pypi.python.org/simple/bluepy/" in the cache No cache entry available Starting new HTTPS connection (1): pypi.python.org https://pypi.python.org:443 "GET /simple/bluepy/ HTTP/1.1" 200 816 Updating cache with response from "https://pypi.python.org/simple/bluepy/" Caching b/c date exists and max-age > 0 Analyzing links from page https://pypi.python.org/simple/bluepy/ Found link https://pypi.python.org/packages/13/4f/b2f99f8c5b14ea1d9b2ff311fe0d232affc5a60a2c204825daa51703a358/bluepy-1.1.1.tar.gz#md5=037215b3c60e2297b3037c9f6cabafe8 (from https://pypi.python.org/simple/bluepy/), version: 1.1.1 Found link https://pypi.python.org/packages/2f/5e/b0f10966bf23b98029164d034d3fc474f1f957885e660e48d61fa462a292/bluepy-1.0.5.tar.gz#md5=34c749540cf7b889c1c3d1b040afcdc6 (from https://pypi.python.org/simple/bluepy/), version: 1.0.5 Skipping link https://pypi.python.org/packages/33/bd/b4ee0fb003917e21b377ec7af53bfad977fcf89f8700868368b000fde13e/bluepy-1.1.2-cp27-cp27mu-linux_armv7l.whl#md5=68b3847da7d2212b1267a0f6ee13bd56 (from https://pypi.python.org/simple/bluepy/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/75/59/e26c0ce5d184e6172e323c1db882bc5b5e28ed20e34d08f2be90341f75b7/bluepy-1.1.2-cp34-cp34m-linux_armv7l.whl#md5=834c23d93af7554ff2c00bb4add29e52 (from https://pypi.python.org/simple/bluepy/); it is not compatible with this Python Found link https://pypi.python.org/packages/a2/23/38f57b2f84f99d9aa56efd20fbd0189ceb202f7a48028f634644b8524356/bluepy-1.0.3.tar.gz#md5=59abc628b1d851e18db8d11dfd20d9d2 (from https://pypi.python.org/simple/bluepy/), version: 1.0.3 Found link https://pypi.python.org/packages/b7/6f/99900cbffd7714e75e433ad1ea594f6d0f9cdf9c8bbaffdfef3c5cbf8500/bluepy-1.0.4.tar.gz#md5=6c089943b2bd23c1e12262b28a872c71 (from https://pypi.python.org/simple/bluepy/), version: 1.0.4 Found link https://pypi.python.org/packages/ea/45/911b293581760e04212fa1c3d4412ded8faa4b6c4e8e39acc4e1f18ae286/bluepy-1.0.2.tar.gz#md5=be53d5848d697ede54dfcca271313695 (from https://pypi.python.org/simple/bluepy/), version: 1.0.2 Found link https://pypi.python.org/packages/f1/fa/4830ec2ab95baa0201151bf18d5c031d94c520bd05ffdf692573a5261fe3/bluepy-1.1.2.tar.gz#md5=65ef76a2b8538be6fb909e668e9354af (from https://pypi.python.org/simple/bluepy/), version: 1.1.2 Found link https://pypi.python.org/packages/fe/1c/73f960e8a1e378e390139d0a81f6d8388f70b7eea79bb711910841911d0e/bluepy-1.1.0.tar.gz#md5=c72f0adde853149f6c60b6106ae3a4f5 (from https://pypi.python.org/simple/bluepy/), version: 1.1.0 Using version 1.1.2 (newest of versions: 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2) Looking up "https://pypi.python.org/packages/f1/fa/4830ec2ab95baa0201151bf18d5c031d94c520bd05ffdf692573a5261fe3/bluepy-1.1.2.tar.gz" in the cache No cache entry available https://pypi.python.org:443 "GET /packages/f1/fa/4830ec2ab95baa0201151bf18d5c031d94c520bd05ffdf692573a5261fe3/bluepy-1.1.2.tar.gz HTTP/1.1" 200 497925 Downloading bluepy-1.1.2.tar.gz (497kB) Downloading from URL https://pypi.python.org/packages/f1/fa/4830ec2ab95baa0201151bf18d5c031d94c520bd05ffdf692573a5261fe3/bluepy-1.1.2.tar.gz#md5=65ef76a2b8538be6fb909e668e9354af (from https://pypi.python.org/simple/bluepy/) 98% |############################### | 491kB 479kB/s eta 0:00:01 Updating cache with response from "https://pypi.python.org/packages/f1/fa/4830ec2ab95baa0201151bf18d5c031d94c520bd05ffdf692573a5261fe3/bluepy-1.1.2.tar.gz" Caching due to etag 100% |################################| 501kB 81kB/s Running setup.py (path:/tmp/pip-build-7JtwM6/bluepy/setup.py) egg_info for package bluepy Running command python setup.py egg_info running egg_info creating pip-egg-info/bluepy.egg-info writing pip-egg-info/bluepy.egg-info/PKG-INFO writing top-level names to pip-egg-info/bluepy.egg-info/top_level.txt writing dependency_links to pip-egg-info/bluepy.egg-info/dependency_links.txt writing entry points to pip-egg-info/bluepy.egg-info/entry_points.txt writing manifest file 'pip-egg-info/bluepy.egg-info/SOURCES.txt' reading manifest file 'pip-egg-info/bluepy.egg-info/SOURCES.txt' writing manifest file 'pip-egg-info/bluepy.egg-info/SOURCES.txt' Source in /tmp/pip-build-7JtwM6/bluepy has version 1.1.2, which satisfies requirement bluepy from https://pypi.python.org/packages/f1/fa/4830ec2ab95baa0201151bf18d5c031d94c520bd05ffdf692573a5261fe3/bluepy-1.1.2.tar.gz#md5=65ef76a2b8538be6fb909e668e9354af Building wheels for collected packages: bluepy Running setup.py bdist_wheel for bluepy ... Destination directory: /tmp/tmp7aMJqupip-wheel- Running command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7JtwM6/bluepy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp7aMJqupip-wheel- --python-tag cp27 running bdist_wheel running build running build_py creating build creating build/lib.linux-armv6l-2.7 creating build/lib.linux-armv6l-2.7/bluepy copying bluepy/get_services.py -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/sensortag.py -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/scanner.py -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/thingy52.py -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/blescan.py -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/btle.py -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/__init__.py -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/bluepy-helper -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/uuids.json -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/bluez-src.tgz -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/bluepy-helper.c -> build/lib.linux-armv6l-2.7/bluepy copying bluepy/Makefile -> build/lib.linux-armv6l-2.7/bluepy installing to build/bdist.linux-armv6l/wheel running install Working dir is /tmp/pip-build-7JtwM6/bluepy execute make -C ./bluepy clean execute make -C bluepy -j1 running install_lib creating build/bdist.linux-armv6l creating build/bdist.linux-armv6l/wheel creating build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data creating build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib creating build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/Makefile -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/get_services.py -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/sensortag.py -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/scanner.py -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/thingy52.py -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/bluez-src.tgz -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/bluepy-helper.c -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/blescan.py -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/btle.py -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/bluepy-helper -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/uuids.json -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy copying build/lib.linux-armv6l-2.7/bluepy/__init__.py -> build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy running install_egg_info running egg_info writing bluepy.egg-info/PKG-INFO writing top-level names to bluepy.egg-info/top_level.txt writing dependency_links to bluepy.egg-info/dependency_links.txt writing entry points to bluepy.egg-info/entry_points.txt reading manifest file 'bluepy.egg-info/SOURCES.txt' writing manifest file 'bluepy.egg-info/SOURCES.txt' Copying bluepy.egg-info to build/bdist.linux-armv6l/wheel/bluepy-1.1.2.data/purelib/bluepy-1.1.2.egg-info running install_scripts creating build/bdist.linux-armv6l/wheel/bluepy-1.1.2.dist-info/WHEEL done Stored in directory: /root/.cache/pip/wheels/0b/c0/8a/af9c1567bee8b7ef3ce1136bb917f75e45e2d3b89f35328111 Removing source in /tmp/pip-build-7JtwM6/bluepy Successfully built bluepy Installing collected packages: bluepy Creating /usr/local/bin changing mode of /usr/local/bin/blescan to 755 changing mode of /usr/local/bin/thingy52 to 755 changing mode of /usr/local/bin/sensortag to 755 Successfully installed bluepy-1.1.2 Cleaning up... [pi@rpi04 17:31:02] [~]$ sudo ls -l /usr/local/lib/python2.7/dist-packages/bluepy/ total 1128 -rw-r--r-- 1 root staff 1333 Oct 19 17:30 Makefile -rw-r--r-- 1 root staff 150 Oct 19 17:30 __init__.py -rw-r--r-- 1 root staff 400 Oct 19 17:31 __init__.pyc -rw-r--r-- 1 root staff 4698 Oct 19 17:30 blescan.py -rw-r--r-- 1 root staff 5155 Oct 19 17:31 blescan.pyc -rwxr-xr-x 1 root staff 648888 Oct 19 17:30 bluepy-helper -rw-r--r-- 1 root staff 49514 Oct 19 17:30 bluepy-helper.c -rw-r--r-- 1 root staff 178249 Oct 19 17:30 bluez-src.tgz -rw-r--r-- 1 root staff 26267 Oct 19 17:30 btle.py -rw-r--r-- 1 root staff 31860 Oct 19 17:31 btle.pyc -rw-r--r-- 1 root staff 5760 Oct 19 17:30 get_services.py -rw-r--r-- 1 root staff 7916 Oct 19 17:31 get_services.pyc -rw-r--r-- 1 root staff 514 Oct 19 17:30 scanner.py -rw-r--r-- 1 root staff 1152 Oct 19 17:31 scanner.pyc -rw-r--r-- 1 root staff 16504 Oct 19 17:30 sensortag.py -rw-r--r-- 1 root staff 24968 Oct 19 17:31 sensortag.pyc -rw-r--r-- 1 root staff 35775 Oct 19 17:30 thingy52.py -rw-r--r-- 1 root staff 31147 Oct 19 17:31 thingy52.pyc -rw-r--r-- 1 root staff 35010 Oct 19 17:30 uuids.json [pi@rpi04 17:32:32] [~]$ sudo file /usr/local/lib/python2.7/dist-packages/bluepy/bluepy-helper /usr/local/lib/python2.7/dist-packages/bluepy/bluepy-helper: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=9efb6c5c9af3ae8e284ffbc77bf3820a355d7d97, not stripped [pi@rpi04 17:32:51] [~]$ sudo /usr/local/lib/python2.7/dist-packages/bluepy/bluepy-helper Segmentation fault [pi@rpi04 17:33:01] [~/tmp]$ readelf -h bluepy-1.1.2.data/purelib/bluepy/bluepy-helper ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: ARM Version: 0x1 Entry point address: 0x11e98 Start of program headers: 52 (bytes into file) Start of section headers: 609324 (bytes into file) Flags: 0x5000402, Version5 EABI, hard-float ABI, Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 8 Size of section headers: 40 (bytes) Number of section headers: 39 Section header string table index: 36 [pi@rpi04 17:37:42] [~/tmp]$ sudo readelf -h /usr/local/lib/python2.7/dist-packages/bluepy/bluepy-helper ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: ARM Version: 0x1 Entry point address: 0x12049 Start of program headers: 52 (bytes into file) Start of section headers: 647328 (bytes into file) Flags: 0x5000400, Version5 EABI, hard-float ABI Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 9 Size of section headers: 40 (bytes) Number of section headers: 39 Section header string table index: 36 |
I think the issue is ARM architecture-related. I've just tried the 'bad' executable built on my Pi Zero in a Pi 3, and it runs fine. The problem now is how to debug what's happening when |
Aha. It seems that the "source" tarball for 1.1.2 actually contains the |
I have made a new release (1.1.4) which (for me) fixes the problem. More details are discussed in related issue #158. Thanks |
replied on #158. Closing. |
just updated to 1.1.4 on my raspberry pi and it seems to work. Thank you :) |
Pi Zero (non-W) with a Redbear IOT PHat. 'lescan' works, but bluepy doesn't. I used the example in Scanner and ran it with sudo. Here's the tail of the stack:
I wondered if bluepy-helper was to blame, so I tried running it directly:
I tried installations on python3 and python2. How can I help debug this?
The text was updated successfully, but these errors were encountered: