GNU bug report logs - #74805
30.0.92; Trying to build scratch/igc on Cygwin

Previous Next

Package: emacs;

Reported by: Ken Brown <kbrown <at> cornell.edu>

Date: Wed, 11 Dec 2024 22:56:02 UTC

Severity: normal

Found in version 30.0.92

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ken Brown <kbrown <at> cornell.edu>
To: Pip Cet <pipcet <at> protonmail.com>, Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: 74805 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, rb <at> ravenbrook.com
Subject: bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin
Date: Sat, 21 Dec 2024 15:25:45 -0500
On 12/21/2024 12:34 PM, Pip Cet wrote:
> Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
> 
>> Ken Brown <kbrown <at> cornell.edu> writes:
>>
>>> On 12/21/2024 2:24 AM, Eli Zaretskii wrote:
>>>>> Date: Fri, 20 Dec 2024 18:48:37 -0500
>>>>> Cc: 74805 <at> debbugs.gnu.org, Richard Brooksby <rb <at> ravenbrook.com>
>>>>> From: Ken Brown <kbrown <at> cornell.edu>
>>>>> 3. The "mmap" branch is a straightforward port, mostly imitating the
>>>>> FreeBSD port.  It currently (with Cygwin 3.5.5) fails because of a
>>>>> limitation of Cygwin's mmap.  But I have a simple patch to Cygwin in the
>>>>> works that removes that limitation.  With that patch, 37 of the 38 MPS
>>>>> tests pass.  I still need to debug the failing test.  I'm cautiously
>>>>> optimistic that I can get this approach to work.  Either way, I expect
>>>>> the Cygwin patch to soon be available in a test release of Cygwin 3.6.0
>>>>> so that other Cygwin users can try it.
>>>> Thanks for the update, I think this is very good news.
>>>
>>> I could use some help from the MPS experts in debugging the failing
>>> test, which is arenacv.  I ran the test under strace and didn't see
>>> any mmap or munmap failures.  I'm attaching the test log, which
> 
> What about mprotect, or whatever the equivalent is?

I can't find any calls to mprotect when this test is run.

>>> doesn't mean a thing to me.  I also built an unoptimized arenacv and
>>> can run it under gdb if someone tells me what to look for.
>>>
>>> TIA.
>>>
>>> Ken
>>
>> Hi Ken.
>>
>> I'm not an MPS internals expert, but AFAICT, this likely comes from here
>> in arenacv.c, but without being able to debug this, I find it hard to
>> tell what's going on in the allocator->alloc.
>>
>> static void testAllocAndIterate(Arena arena, Pool pool,
>>                                  Size pageSize, Count numPerPage,
>>                                  AllocatorClass allocator)
> 
> Can you check pageSize is correct?

pageSize is 65536, which is the Windows allocation granularity.  It 
should be OK.

Ken




This bug report was last modified 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.