Jason Lewis' issue on 64-bit Linux: 'cannot open filename XXX': FIXED (unless y'all find remaining cruftiness inside the new code)

"Ger Hobbelt" <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
Ladies & Gentlemen,

I consider this issue fixed. It has been tested today and should fix
quite a few older bug reports about the same randomly occurring errors
too.
Verify my work to make sure.

For the Full Monty, see
  http://hebbut.net/crm114/20080525/index.html
where diff's and complete source files are provided.

or go to
  http://www.hebbut.net/
and click:
  Public Offerings > CRM114 > Extra Info & Miscellaneous Tidbits:
2008/05/25 The Fix > (bingo!)


I admit the backport of the GerH code described in the web article is
done sledgehammer style, but I have taken time for the 'long' issue
before and did not plan on replaying THAT particular exercise again
today: hence a backport which should mesh well with the remaining
vanilla 'long'-based source code as is. It may look weird to the
uninitiated, but know a little bit of preprocessor and you're good to
go.
I guarantee you it's safe.

(Hm, I should consider putting up a 'fee per bug' system where anyone
finding a bug in my code gets a fee for quality control... :-) )




Two things of low relevance:

1) Jason's maillib.crm (a BlameSentansoken build) contained a bit of
magic which is not tolerated by a GerH compiled crm114 binary as it
considers this illegal code:

	    eval /:@: :#:m_text: < (:*:decision_length: / 4) :/

which has also been fixed in vanilla BlameJason releases (Jason is
using BlameSentansoken, that's why):

	    eval /:@: :#:m_text: < (:*:decision_length: \/ 4) :/

Note the backslash-escaped division operator. This has been discussed
recently on this or the dev mailing list - I forgot which, but not
really relevant, is it?


2) Of course, GerH compiled binaries on 64-bit DO NOT ACCEPT
vanilla/BillY CSS FILES OUT OF THE BOX.
THIS IS BECAUSE GerH uses exact 32-bit entities to store the 32-bit
feature hashes, while vanilla code uses variable-width 'long's.

A migration path for such (production) files is planned for a future
release using a conversion script and the new cssmigrate command.



That's it for today. Bed time. One weekend down, many more to go.

-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web: http://www.hobbelt.com/
 http://www.hebbut.net/
mail: [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.