[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Issue with Windows fork CreateProcess
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] Issue with Windows fork CreateProcess
- From: Ed Day <edday2006@xxxxxxxxx>
- Date: Wed, 8 Jun 2011 13:49:58 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 08 Jun 2011 13:50:07 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=hWH1TdeUryp3zGbY1/K5XH4kgkItnd+e0nIz1tddWQs=; b=G6ElsIo4BzV9TbHB4qCZSjSi91Q/rhSBB4Nia5TtHvgY74XbCLzrjrA7WFAOLWdGio gwWcFU9N5iZQKButE6EGczPGvZmlIfQNlEurpS7qrre6HeJPaMNSJRG/uyWknZfO0zrW DjQM2DCjT+vvxC150wJ8HkOGGoWVl++UPSuAk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=OROqBdId4j5IbxFMHNhUe8F7UwCtXxLeL5qpYCO8+lRu8m8/yu9y//dzzZ2haeUb9/ Iwq8yuGozjt+IB0VcyOQ6VOaf6JYjR7EzKxTShJRy6wpNKIDOPc/rJqkkHNwJB55cQEQ bQMcNwJ35p4v782F6K+K/gcIHf++1juOOtFiY=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi everyone,
I am new to the list. This post is in response to a posting last
December on a Windows regression fork failure ([Libevent-users] Re:
Libevent 2.0.10-stable is released by Dongsheng Song). I noticed the
question was not answered and I recently experienced the same error
myself when trying to run the Windows regression tests myself.
I checked the return status from the CreateProcess call and found it
was "file not found". This led me to look at the command-line I was
using which was .\regress in a Visual Studio 2008 command prompt
window. Windows could not find the file because it did not have the
.exe extension on the end. The code that builds the command should be
modified to ensure the extension is present (I can submit a patch if
you like).
Regards,
Ed
On Wed, Jun 8, 2011 at 1:29 PM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
> On Tue, Jun 7, 2011 at 5:58 PM, Nir Soffer <nirsof@xxxxxxxxx> wrote:
>>
>> On Jun 7, 2011, at 8:48 PM, Gilad Benjamini wrote:
>>
>>>>> 955 buf->first = chain;
>>>>> 956 if (chain) {
>>>>> 957 chain->misalign += remaining;
>>>>> 958 chain->off -= remaining;
>>>>> 959 }
>>>>
>>>> Draining all the buffer trigger this code.
>>>>
>>>> Adding an assert in line 957 cause the tests to die, so this code is
>>>> certainly not dead yet ;-)
>>>
>>> Perhaps I wasn't clear.
>>
>> No, its my fault :-)
>>
>>> I was referring to line 956. If the code was able to reach line 956, the
>>> value of chain cannot be NULL and therefore there is no need for the test.
>>> A NULL value for chain would have broken the code earlier.
>>
>> Indeed, chain is always non-null in line 956.
>>
>> This check was added in 03afa209 - I don't see why but maybe the author can
>> explain why.
>
> Hm. I think the check is indeed needless. If we get into the else
> case starting on line 928 (of the current patches-2.0 HEAD
> 4461f1a09662), then either the amount that we want to drain is less
> than the total buffer length, or the last data-containing chain in the
> buffer is read-pinned, or both.
>
> In the first case we will exit the loop because of the "remaining >=
> chain->off" loop condition, and so 'chain' will point to a chain with
> less than "remaining" bytes in it. In the second case, we will exit
> because of the CHAIN_PINNED_R() test on line 946; chain will be set
> (and incidentally, remaining will be 0). So I believe the test is
> indeed needless.
>
> I'm removing this check in the master branch but leaving it as-is in
> 2.0, on the grounds that it isn't actually causing undesirable
> behavior and as such is a clean-up, not a critical bugfix.
>
> yrs,
> --
> Nick
> ***********************************************************************
> To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
> unsubscribe libevent-users in the body.
>
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.