On 29/01/2014 19:12, Corinna Vinschen wrote: > On Jan 29 09:00, Steven Bardwell wrote: >> My application needs several areas of shared memory, and I am getting an >> error ("No such device") on the second call to mmap(). The first call works >> fine. >> >> >> The problem does not seem to depend on the size of the requested memory. The >> program >> always returns with "Couldn't map memory for /block2 (No such device)" > > Try stracing it. I tried it on the latest Cygwin from CVS as well > as on Cygwin 1.7.27 (32 bit versions) and it works fine for me. just as info also on my Windows 7 Professional Ver 6.1 Build 7601 Service Pack 1 CYGWIN_NT-6.1-WOW64 1.7.28s(0.271/5/3) 20140128 10:55:59 i686 Cygwin the program fails (No such device) and it segfaults on 64 bit CYGWIN_NT-6.1 1.7.28s(0.271/5/3) 20140128 10:55:59 x86_64 Cygwin attached the stackdump > > Your testcase is missing an ftruncate or two., btw. I guess you're > aware of that and just dropped them to get a the simple testcase. > > > Corinna Marco