delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/08/09:50:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <200304081349.h38DnZkx018439@phys-nfs1.tvi.cc.nm.us>
Date: Tue, 8 Apr 2003 07:49:25 -0600 (MDT)
From: dmay AT tvi DOT edu
Reply-To: dmay AT tvi DOT edu
Subject: Re: Problem with database engine on Cygwin
To: ronald AT landheer DOT com
cc: cygwin AT cygwin DOT com
In-Reply-To: <Pine.LNX.4.44.0304081045190.880-100000@localhost.localdomain>
MIME-Version: 1.0

On  8 Apr, Ronald Landheer-Cieslak wrote:
| I've grepped your code for the usual binmode vs textmode problem - every 
| fopen you call is in the "default" mode, which may be textmode.
| In textmode, \n will be translated to \r\n when saving, which will corrupt 
| your (binary) files.
| Add a "b" to the open options in each fopen call - this will not disturb 
| anything on any other platform, and probably fix your problem :)
| 
| HTH
| 
| rlc
| 
| 
It was a good thought and a careless oversight on my part, but it is not the
cause of this problem.  Most of the instances where fopen is used is in a test
function.  For each module, I write a main() program that tests the
functionality.  These are only compiled if you compile the code with 

-DTEST_MODULENAME

Otherwise, they are masked out.  There was one instance where the fopen thingy
could have bitten me (in token.c) and I updated that.

Again, thanks for the suggestion, but it didn't fix the problem.

A gentleman named Andrew Markebo contacted me yesterday and asked if I tried
using Purify or some similar tool.  I didn't respond to the list as well as to
him, so I wanted to say something about that.  I have compiled the code and
used valgrind and ElectricFence on Linux. When I used valgrind, it did find
some issues that I fixed (this was some months ago - it is listed in the
CHANGELOG).

I read some about ElectricFence being available for cygwin...there was even an
entry where the URL for a binary was available, but the binary wasn't there.
Has there been any more effort porting ElectricFence to Cygwin?  The stock
ElectricFence v.2.1 from perens.com does not work out of the box on Cygwin. I
would certainly be interested if it is available.

Thanks again for the suggestions.
-- 
=================================
David May
Senior UNIX System Administrator
Albuquerque TVI
505-224-3015

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019