Uh oh!
There was an error while loading. Please reload this page.
test: fix test-module-loading-error for AlpineLinux - #3657
Conversation
bnoordhuis
commented
Nov 4, 2015
LGTM but please see CONTRIBUTING.md on how to format the commit log. |
hmalphettes
commented
Nov 9, 2015
@bnoordhuis sorry I had missed the guideline on formatting the commit message. |
jbergstroem
commented
Nov 10, 2015
I'd replace references regarding AlpineLinux to musl instead since this isn't really specific to Alpine. |
When a compiled library file does not have the proper format, musl returns the error message ENOEXEC as 'Exec format error' but glibc returns 'file too short' if the file is under a certain size. Reference: http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46 This patch consists of tolerating musl's error.
hmalphettes
commented
Nov 10, 2015
@jbergstroem Good point! Done. |
jbergstroem
commented
Nov 10, 2015
LGTM |
There was a problem hiding this comment.
Bug: platform should be process.platfom here.
There was a problem hiding this comment.
Embarrassed! Sorry about that.
When a compiled library file does not have the proper format, musl returns the error message ENOEXEC as 'Exec format error' but glibc returns 'file too short' if the file is under a certain size. Reference: http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46 This patch consists of tolerating musl's error. PR-URL: #3657 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
bnoordhuis
commented
Nov 10, 2015
Okay, landed with a fix-up in 1bacf37. The CI is still down unfortunately but tests and lint pass locally. |
When a compiled library file does not have the proper format, musl returns the error message ENOEXEC as 'Exec format error' but glibc returns 'file too short' if the file is under a certain size. Reference: http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46 This patch consists of tolerating musl's error. PR-URL: #3657 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
When a compiled library file does not have the proper format, musl returns the error message ENOEXEC as 'Exec format error' but glibc returns 'file too short' if the file is under a certain size. Reference: http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46 This patch consists of tolerating musl's error. PR-URL: #3657 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
MylesBorins
commented
Nov 17, 2015
landed in v4.x-staging in 2570cb7 |
When a compiled library file does not have the proper format, musl returns the error message ENOEXEC as 'Exec format error' but glibc returns 'file too short' if the file is under a certain size. Reference: http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46 This patch consists of tolerating musl's error. PR-URL: #3657 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
When a compiled library file does not have the proper format, musl returns the error message ENOEXEC as 'Exec format error' but glibc returns 'file too short' if the file is under a certain size. Reference: http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46 This patch consists of tolerating musl's error. PR-URL: #3657 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
When a compiled library file does not have the proper format, musl returns the error message ENOEXEC as 'Exec format error' but glibc returns 'file too short' if the file is under a certain size. Reference: http://git.musl-libc.org/cgit/musl/tree/src/errno/__strerror.h#n46 This patch consists of tolerating musl's error. PR-URL: #3657 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
node's testsuite fails only 3 cases on AlpineLinux: nodejs/docker-iojs#44 (comment)
Please let us know if it is a good idea to tackle this even if we are not officially supporting a musl-libc build of node.
Here is a patch for one of those tests.
Thanks!