Overview
| Artifact ID: | 9a5959b37d533c869dd67a9007bd70c7b82306cf36e1a78515d77ba94a3306e5 |
|---|---|
| Ticket: | fab92486a1b05ba6f7cfe8677da95b9efb3beff0
Windows error 14 "Out of memory" mapping to Posix EFAULT "Bad address in system call argument" feels wrong |
| User & Date: | oehhar on 2017-09-15 06:15:07 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
When loading a dll, I got the error "Bad address in system call argument". The DLL was wrong (probably name mangled Init procedure) and it is platform WIN CE 6.5 (etcl 1.0.1), so real source is not available. Source code inspection on tcl8.5.6 tells about a failed "LoadLibrary" windows system call. The windows failure code is translated to a posix error. When looking into "tcl8.7a1/win/tclWinError.c", this error may be caused by two windows errors: <verbatim> EFAULT, /* ERROR_OUT_OF_MEMORY 14 */ EFAULT, /* ERROR_PROTECTION_VIOLATION 115 */ </verbatim> Lets focus on error code 14 "ERROR_OUTOFMEMORY": The description is "Not enough storage is available to complete this operation.". ([https://msdn.microsoft.com/en-us/library/cc231199.aspx]) I suppose, error 14 should be mapped to Posix "ENOMEM" with the message "not enough memory". Anyway, I am not at all sure, but here is a ticket to discuss, forget or merge. Thank you all, Harald
- foundin changed to: "8.7a1"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "52. Portability Support"
- title changed to:
Windows error 14 "Out of memory" mapping to Posix EFAULT "Bad address in system call argument" feels wrong
- type changed to: "Bug"