delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/10/05:39:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-From-Line: nobody Wed Nov 10 10:37:42 1999
To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: strchr bug?
References: <upuxjq1tj DOT fsf AT 1c DOT ru> <199911092106 DOT QAA04200 AT rtl DOT cygnus DOT com>
From: Vadim Egorov <egorovv AT 1c DOT ru>
Date: 10 Nov 1999 10:37:39 +0300
In-Reply-To: Chris Faylor's message of "Tue, 9 Nov 1999 16:06:31 -0500"
Message-ID: <uhfiupzjw.fsf@1c.ru>
User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.4
X-Gnus-Article-Number: 21 Wed Nov 10 10:37:42 1999
Lines: 36
MIME-Version: 1.0
X-MDaemon-Deliver-To: cygwin AT sourceware DOT cygnus DOT com
X-Return-Path: EgorovV AT 1c DOT ru

Sorry for repost - pgnus glitch.
Tor Lillqvist <tml AT iki DOT fi> writes:
> Vadim Egorov writes:
>  > While porting ElectricFence to cygwin I encountered a problem
> 
> Great! Would it be possible to have a copy? (Luckily I got your
> message, as I earlier today was thinking of porting it to Win32
> myself...) (I assume your port doesn't rely on cygwin features, but
> would work as well on "mingw32".)
> 
Chris Faylor <cgf AT cygnus DOT com> writes:
> Thanks for the bug report and especially for the test case.  I've
> forwarded this to our newlib development team and they've come up
> with a fix.  It is below.
> 
> 
Thanks, Chris. Now it works. 
For those who is interested I apply a patch for ElectricFence-2.1 
(from ftp://ftp.perens.com/pub/ElectricFence/)
The main idea was to replace mmap/mprotect calls with native
VirtualAlloc/VirualProtect because cygwin mmap calls 
malloc internally. 
By now it builds and seems to work for cygwin target -- don't
know about mingw32 (but for consistency sake it should also provide
strdup and company) -- with two limitations.
There is long lasting problem with win32 SEH and signals 
which causes eftest to hang - it's okay.
Next, without strchr patch posted by Chris Faylor to this thread
it quite useless - apps linked against it tend to crash at startup.

Any comments will be appreciated.
 
Regards,
Vadim Egorov 

--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment;
  filename=electric-fence-2.1.cygwin.diff.gz
Content-Transfer-Encoding: base64

H4sIAAQGKTgAA71YbXPbNhL+LP6KretmyFDUuxSbrdswEuUo1duIUuI07XBoEbQ4pUgXpOz4evnv
twAoiqIl23c3U48sEsBisXjw7Avk+p4H2qYJ2i1UKlUSkGVC/aXmkXBJtEalXh05fxLPDwhUsldJ
07RnpEvz1QZGDoV6AxoNvd3Q6+dQPz8/k1RVzakqfSIujKM7qNegdqa3mnqDy51Lb9+CVq+XO6Di
d70O2B4ZY3swtubGcGj3BrMLqG5iWl07IftvSjA1ur8al6ZtTRazrnkBM9PojUwI/GvCLaw0IdtN
2rOC3yUopY0l3Do3/EH9MMEn8RISs5ckTlbEucW37ntjfGla0J1MPw/GlxJI6sCyu58vPw3GF6ey
54dujJiENyD6ynAqxysSBLAJnTUBLVYUSfU98hfIp3I2VSmnT0k1r0zzan4BFfKVSCoJXd+TVAm+
h0WoLaP1moQJoDXgRUEQ3bOVfA8eog04lADdhCHrej+tLq4qbFa3PzQurQvQDAe0G9B69vvp4irF
CJtThth0Npmb3flgMrY/DiZDY272bGtwOTaGF/h4t7Bwn+xAGmflN6A2m/iNzZfijZNh8u4DLoB2
pEORwDpKsY5QRnOCQC/tZjtb2NNzkNRjAqeyAE1JJbM2nu1bIMtVlL3AyRwFGERmy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wFu94R8/s
G4vhHB2/WoUe8ZxNgDWCE95scMtH1e7jdnz5NDbsiyvVg91fan88sREGRwFjJXdSKSn2NQoaxQRJ
w4nBmQI/Qw1evUobPzGO2yE2OLcycmEn9gV+nHzhgsgKxu12g3vnG1HaHaV26kZdSpwEPUdEfdZV
5V4ZFtySRbaMtSNjahvoTZ9HkwWrW5hKQH1Tti+hUWb42QlHVxHXpSYPG3W0r8Hrp6PSmf/IQrHC
w6fDfBnh+pbFUZUjhzuB/TCcmqMeXUD9GwuNpeO61E5KpZ12uGCeRxMDR/Dg9kfkdIICH32abJzA
YKNyrQwyFtwK0wyq2JSF78j44/522A/MkT0z0eU+mmXgFx92Zfk0G8xN5aXW7GRyZv0vhnQno9Fg
ftAOztO8MRfIVuXxEmbfNr/6iXyStxA8By+4rg4/xCflA+xkgVV95DOHiKB+Y4JZJt7nAOaJNIay
mRKsb2mUYEbs89VTH+CsbDU5K9+0hb8cFIRStpftuKy8ZCeMrIfdSZjF2cJwuTeWS4wL6T6BnS02
ReGy84u/hckd7uH183a5WcscqYcZH3n+nAIopdLhQ7rknqiwOXOsx36VetWLbWautj3M3qfJrAfu
fS4mci59lxJkmkK7p6lIwTK8cu+VQ3wrHJ2ypUjO7Ny2/xGrxxOj28Wk+n8a/fzJ5g3es65PCSma
xvy7ZwoPZ7/3lJ7lhPrtWM0L+5nBtro227k1+M1EvgkbX1DF7n7Cquzen6hlMxleqH7Ay1ejBrU3
erulNxusUG2n5exOsPBbXl2vNXP3IX4delTRYmW1KhSvgb/2k3i/82R7kzw5XNGmF5w+Fjp2b2aM
e62zAxXtfOXHgB8HYVvfBgSQGjfUWUOCl9avhC599ElW2qZRMKIVGCTbFon5/dPD846l/wDYmERB
ORUAAA==

--=-=-=
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--=-=-=--


- Raw text -


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