X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <2e7d31500811211807w74c6bae4wd11449b0f30f4561@mail.gmail.com> Date: Sat, 22 Nov 2008 10:07:41 +0800 From: "Carlo Florendo" To: cygwin AT cygwin DOT com Subject: Re: mmap call gives invalid argument In-Reply-To: <20081121102028.GC2982@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2e7d31500811182249m6c38119cv67686eaaf2e1e5e1 AT mail DOT gmail DOT com> <20081119112813 DOT GG10351 AT calimero DOT vinschen DOT de> <2e7d31500811190656k28244d3ev89a3c6b5ffd571e7 AT mail DOT gmail DOT com> <20081119154450 DOT GJ9927 AT calimero DOT vinschen DOT de> <2e7d31500811201920y30c8e775wa7096411c6ac5d09 AT mail DOT gmail DOT com> <20081121102028 DOT GC2982 AT calimero DOT vinschen DOT de> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Fri, Nov 21, 2008 at 6:20 PM, Corinna Vinschen wrote: > > 156 133660 [main] dmidecode 2092 mmap64: addr 0, len 13783, prot 1, flags 1, fd 3, off 1005453312 > 101 133761 [main] dmidecode 2092 MapViewNT: 0 = NtMapViewOfSection (h:6F8, addr:0, len:13783, off:1005453312, protect:2, type:0) > 85 133846 [main] dmidecode 2092 seterrno_from_win_error: /home/Administrator/cygwin-1.5.25-15/winsup/cygwin/mmap.cc:1871 windows error 87 > 79 133925 [main] dmidecode 2092 geterrno_from_win_error: windows error 87 == errno 22 > 74 133999 [main] dmidecode 2092 __set_errno: void seterrno_from_win_error(const char*, int, DWORD):310 val 22 > 82 134081 [main] dmidecode 2092 mmap64: 0xFFFFFFFF = mmap() > > Now you get the error message directly from Windows. Unfortunately, > we don't see the actual NTSTATUS value returned by NtMapViewOfSection > because I left the value out of the debug message. Silly me! > > What you see is the converted Win32 error code 87, which is > ERROR_INVALID_PARAMETER. The actual NTSTATUS code might give you > another hint. Just change the debug_printf statement in the MapViewNT > function (mmap.cc line 384) to > > debug_printf ("%p (status %p) = NtMapViewOfSection (h:%x, addr:%x, len:%u," > " off:%D, protect:%x, type:%x)", > base, ret, h, addr, len, off, protect, 0); > > recompile, rerun, and look for the "NtMapViewOfSection" lines in > the strace output. What's the hex status code? > > However, since this fails on the native NT level, I don't think this is > just a simple Cygwin problem. It seems that this SMBIOS stuff is > somehow broken on that system. Thank you very much Corinna. I will definitely try that out. The machine in question, unfortunately, had been pulled out and I would have access to it only in the next week or two. Hence, my updates regarding this topic would come a little bit later. I am, however, interested in a resolution, if there is any. Thanks to all you've suggested. Until then. Best Regards, Carlo -- Carlo Florendo Software Engineer Astra Philippines - Software Development and Outsourcing R&D: http://astra.ph, Astra Group: http://astra.co.jp -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/