------- Comment #8 from pinskia at gcc dot gnu dot org 2008-12-21 22:48 ------- Does compiling with -O2 -fno-strict-aliasing fix the issue. I thought I saw some aliasing violations in the source dealing with accessing a "char *" as a "Log_event::Byte*" (aka "unsigned char *"). Now what is only defined is the accessing anything by a char/unsigned char/signed char, accessing pointers via a different type is undefined. The function which I saw the issue is in copy_str_and_move where there are going to be accesses in those two types.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38562