-
Notifications
You must be signed in to change notification settings - Fork 320
libassistant_embedder.so segfaults with glibc 2.29 #345
Comments
It seemed like a pain to compile all the necessary libraries for 32-bit, but I was able to work around this by recompiling glibc 2.29 and turning off stack protection. So it seems like it could be a memory allocation issue. |
|
@polyc I'm using ArchLinux, so I cloned the glibc-git project from AUR and modified the PKGBUILD: git clone https://aur.archlinux.org/glibc-git
cd glibc-git
sed -i "s/enable-stack-protector=strong/enable-stack-protector=no/" PKGBUILD
makepkg -si The relevant line changes to Note that this is an incredibly dangerous workaround--my admittedly limited understanding is that the stack protector is normally enabled to prevent stack overflow bugs or even malicious attacks, and disabling it like this would affect anything that uses glibc, not just Google Assistant. The real fix needs to be done within libassistant_embedder.so, which is not open source and probably won't be for a long time, if ever. If Google ever acknowledges and fixes this issue, it would be best to revert back to the stable version of glibc. |
@ofuangka thank you very much for your help. I know that could be very dangerous but i only need to try it, certainly not for production purposes. |
How would this work for Raspberry pi? Asking for the above question |
This is using ArchLinux glibc-2.29-1. Reverting to glibc-2.28-6 resolves the issue, but causes problems elsewhere.
Seems like it could be related to this: https://www.phoronix.com/scan.php?page=news_item&px=GCC-MMX-Intrinsics-With-SSE
If I get time I'll try to figure out how to run in 32-bit mode.
The text was updated successfully, but these errors were encountered: