Re: mxBeeBase has problems on Mac OS X and FreeBSD

"M.-A. Lemburg" <[email protected]>
Newsgroups gmane.comp.python.egenix.user
Organization eGenix.com Software GmbH; http://www.egenix.com/
Message-ID <[email protected]>
M.-A. Lemburg wrote:
> We have received a note from a user today that mxBeeBase has problems
> on Mac OS X.
> 
> Here's the error message:
> 
> mx.BeeBase.BeeStorage.Error: invalid header at 62144: 'Kj.U\x80C'
> 
> So far, we have confirmed the issue on Mac OS X and also on FreeBSD.
> It doesn't occur on Linux or Windows, which suggests that there's
> some issue related to BSD-based file system code.
> 
> Since we don't want you to lose your data, we advise you *not* to
> use mxBeeBase on these platforms until we've found and fixed the
> problem.

We've tracked down the problem to a synchronization error that
only appears to affect BSD-based systems:

When using a file in r+ mode, you have to insert a dummy
file.seek() whenever switching from reading to writing, in
order to get the file buffers synchronized again.

Since mxBeeBase reads and writes to the file storage frequently,
it was possible for the file buffers to get out of sync on those
platforms that require this extra synchronization fseek() call.

We've fixed that now in mxBeeBase and will do a full release of
egenix-mx-base to address this problem on Monday.

Until then, here's the source archive:

http://downloads.egenix.com/python/egenix-mx-base-3.1.3.zip

Thanks to Ernesto Picardi for bringing this to our attention.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Dec 18 2009)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.