-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Raspbian 32 bit distro binaries contain illegal instructions on Raspberry Pi Zero W causing crashes #4345
Comments
Duplicate of RPi-Distro/vlc#42 by the looks of it. |
True. I decided to post here as well after I realized that vlc is likely not the only place that neon instructions would show up and crash something else on the Pi Zero and others with this CPU. My nightmare would be if they are hiding somewhere in the kernel waiting to trigger a panic. |
When you locked the thread on the troubleshooting forum you said "If you have an demonstrable bug, then please raise an issue on the appropriate Github repo. Forum threads are not always seen by the appropriate people." Please let me know what information beyond what I have provided here and in the RPi_Distro forum you need and where you would like me to provide it. Given how I encountered this bug I would expect that all that would be necessary to duplicate it would be to install the current Raspbian Buster on a Pi with the same CPU as mine, install the current vlc, download an mp3/cdg Karaoke track and attempt to play it. I will be happy to provide the one I was encountering the problem with if you cannot duplicate it with another track, subject to the understanding the material is copyrighted by the publisher and cannot be released and will only be used to duplicate the problem. As the problem is with neon instructions being built into binaries to be used on units without those instructions I would think there would be little need for duplication, as there will be a crash as soon as the CPU encounters the instruction. |
https://github.com/RPi-Distro/vlc is a better home for this report. |
Here is the output from my pi Zero W:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.17+ #1403 Mon Feb 22 11:26:13 GMT 2021 armv6l GNU/Linux
pi@raspberrypi:~ $
I encountered a problem with vlc as provided with the distro. When I asked for help from vlc support they had me run it with gdb. This yielded:
(gdb) bt
#0 0xa22e9004 in ?? () from /usr/lib/arm-linux-gnueabihf/vlc/plugins/mmal/libmmal_codec_plugin.so
#1 0xa22d9314 in ?? () from /usr/lib/arm-linux-gnueabihf/vlc/plugins/mmal/libmmal_codec_plugin.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
and
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
The vlc debug log shows:
[9bbdadd0] main blend debug: looking for video blending module matching "any": 3 candidates
[9bbdadd0] mmal_codec blend debug: OpenBlendNeon: (blend) RGBA/RGBA,273x15 [(0,0) 273x15]->RV32/RGBA,288x192 [(0,0) 288x192]
[9bbdadd0] main blend debug: using video blending module "mmal_codec"
aptcache showpkg vlc yields:
Package: vlc
Versions:
3.0.12-0+deb10u1+rpt1 (/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages
MD5: d96da6b991aa50928533b16fb11b3136
Description Language:
File: /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages
MD5: d96da6b991aa50928533b16fb11b3136
3.0.12-0+deb10u1 (/var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages)
Description Language:
File: /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages
MD5: d96da6b991aa50928533b16fb11b3136
Description Language:
File: /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages
MD5: d96da6b991aa50928533b16fb11b3136
Processor details are:
pi@raspberrypi:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 9000c1
Serial : 000000005bae4c7f
Model : Raspberry Pi Zero W Rev 1.1
pi@raspberrypi:~ $
I am told the problem is that the binaries are being built including neon instructions, which are not available on my CPU.
I have opened a thread on the troubleshooting forums as well:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=307312
The text was updated successfully, but these errors were encountered: