[Hampshire] Memory corruption due to word sharing

Top Page

Reply to this message
Author: James Courtier-Dutton
Date:  
To: Hampshire LUG Discussion List
Subject: [Hampshire] Memory corruption due to word sharing
Hi,

There is a problem when using bitfields in multithreaded programs due to
gcc compiler not working as expected. See LKML reference below.
Just FYI.
It creates very hard to spot bugs.
It also sounds difficult to fix.
So be very careful when using bit fields.

http://groups.google.com/group/linux.kernel/browse_thread/thread/a3bba3db11b2af1c/b50876795a117003?#b50876795a117003
--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------