Linux 64bit Flash glibc memcpy bug

| 64bit | flash | Linux | memcpy

Does your Linux 64bit version of Flash now make anonying beeping/distortion noises while playing videos? Well it turns out a recent “improvement” to glibc has caused some programs to now crash or do weird things. This is to do with an improvement of memcpy, which makes its use more strict, causing those applications that incorrectly used it to now crash.

On Debian, there is a simple a fix that allows you to use the original memcpy. You can load the application using an additional .so file:

LD_PRELOAD=/usr/lib/libc/ /path/to/your/program

As I use Google Chrome when using Flash I had to do the following:

LD_PRELOAD=/usr/lib/libc/ /usr/bin/google-chrome

but if you want to fix chrome on a system level, you can edit the Chrome Wrapper used to launch it.

sudo nano /opt/google/chrome/google-chrome

add the following line

export LD_PRELOAD="/usr/lib/libc/"

for example

export LD_PRELOAD="/usr/lib/libc/"

comments powered by Disqus