Artifacts Associated With Ticket fab92486a1b05ba6
Ticket change [9a5959b37d] (rid 156279) by oehhar on 2017-09-15 06:15:07:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized 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 initialized to: "8.7a1"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "52. Portability Support"
- title initialized to:
Windows error 14 "Out of memory" mapping to Posix EFAULT "Bad address in system call argument" feels wrong
- type initialized to: "Bug"
Ticket change [9e6900b2c6] (rid 156297) by oehhar on 2017-09-15 13:30:46:
- icomment:
I am now quite certain, that the issue is a lack of memory.
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [9196859997] (rid 158583) by jan.nijtmans on 2017-11-17 15:31:06:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2458075.14660571"
- closer changed to: "jan.nijtmans"
- foundin changed to: "8.5"
- icomment: "Fixed now on all active branches. Thanks!"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"