This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: second call to mmap() results in error


> 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.
> 
> 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

I have attached the output from 'strace'. Thanks for looking into this.
Steve

Attachment: strace.out
Description: Binary data

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]