Red Hat Bugzilla – Bug 18832
efence complains setlocale() in 2.1.94-3 stomps on memory.
Last modified: 2016-11-24 09:47:09 EST
The electric fence debugger is complaining that the errata glibc 2.1.94
release's setlocale() is now stomping on memory. This did not happen in
2.1.92. See the following attachment.
Created attachment 3984 [details]
test program and a gdb post mortem.
Thanks for the report, I have localized the problem, am now thinking
about best fix. The bug is actually very old, even glibc 2.1.3
has it, so I'm wondering why it did not show up with earlier glibcs
Well, it did not, and I certainly did have the code in question linked against
efence under 2.1.3 and 2.1.92.
efence pads allocated memory to word boundaries, so one possibility is that
previously the stomp didn't go far enough off base to be caught.
Just a quick workaround. Removing the lines with non-7-bit clean characters out
of /usr/share/locale/locale.alias causes this problem to go away. Fine for me
since I'm only using en_US.