DB 3.0.55, memset() and overoptimizacion [#1395]
Sleepycat Software
db@abyssinian.sleepycat.com
Fri Dec 3 14:13:00 GMT 1999
Hi, my name is Keith Bostic and I'm with Sleepycat Software. Amy Adams
asked me to review your Support-Request.
> I was just trying to use the new DB 3.0.55, but my source core dumps
> consistently. I found the bug inside DB library, in "memset()" usage.
After talking to some folks, my understanding is that this is a bug in
our code. The compiler, according to ANSI C, is permitted to assume that
a structure is properly aligned (not just that its elements are properly
aligned, but that the structure itself is aligned). We'll be fixing this
in our source tree. If you want a general fix, I can send you one,
although the workaround you used is probably just fine.
Regards,
--keith
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic
Sleepycat Software Inc. db@sleepycat.com
394 E. Riding Dr. +1-978-287-4781
Carlisle, MA 01741-1601 http://www.sleepycat.com
More information about the Gcc
mailing list