-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shellcheck: unable to decommit memory: Invalid argument (0.4.4) #785
Comments
Makes sense. How should I proceed? I can reliably reproduce, so I can file
a Ubuntu bug, but I'm curious if there's a testcase you would like to to
try, or something else, first.
|
I don't really have any good suggestions. If your Ubuntu kernel and all related packages are up to date and you're still getting this, I would just file a Ubuntu bug and see what they say. |
Well it's travis-ci, so I assume they are ;). I didn't know if you wanted some sort of logs or something. Thanks. |
Reported upstream: |
We're experiencing the same thing over at alexa-pi/AlexaPi#120 This is very unfortunate. |
@renekliment I'm testing under trusty / 14.04: |
If you need an IRC channel, you could try #bash on freenode. It's not strictly a shellcheck channel, but Koalaman and I both hang out there, as do a number of other serious shellcheck users. |
@austin987 I've tried it also and wasn't able to make it work. I see it doesn't work for you either (almost wasn't able to spot those error messages in the build log - https://travis-ci.org/Winetricks/winetricks/jobs/187364963#L360, haha). Too bad 😞 |
@austin987 Ended up using There is a PR for whitelisting that repo ( travis-ci/apt-source-safelist#308 ), but looking at the number of PRs and issues, I wouldn't be very enthusiastic about it, although this is a repo that makes sense. |
Thanks for the suggestion, but downgrading isn't a serious solution for me.
…On Dec 30, 2016 8:24 AM, "René Kliment" ***@***.***> wrote:
@austin987 <https://github.com/austin987> Ended up using trusty-backports/universe
shellcheck amd64 0.3.3-1~ubuntu14.04.1. At least trusty-backports is
available when using sudo: required and the thing builds and works
(example: https://travis-ci.org/alexa-pi/AlexaPi/jobs/187689160).
There is a PR for whitelisting that repo ( travis-ci/apt-source-
whitelist#308 <travis-ci/apt-source-safelist#308>
), but looking at the number of PRs and issues, I wouldn't be very
enthusiastic about it, although this is a repo that makes sense.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#785 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAcXCDQk-hFEJEza1XcUhrinSamJjAWyks5rNQXzgaJpZM4K9dZ3>
.
|
Hi! I also get this error when using shellcheck in conjunction with travics ci, but not using the debian package. I use the latest docker image: Here you can see the config and errors on travis-ci.org: glsysbackup |
Same issue here: - os: linux
sudo: required
language: ruby
addons:
apt:
sources:
- debian-sid
packages:
- shellcheck Generates:
Link to job: https://travis-ci.org/sobolevn/git-secret/jobs/208007733 |
I can confirm the issue, but it doesn't seem to affect the test outcome. Valid code passes the build, lint warnings are detected and fail the build. The |
This also happens when running inside docker (koalamans image) on Debian 3.16.39 |
This also happens when running inside official docker image (v0.4.6) |
Also seeing this in containerized jenkins builds based on debian-stretch. Shellcheck 0.4.4 from the distro package. |
Same issue within a gitlab pipeline.
Any suggestions how to avoid or just fix this errors? Thanks |
@ZeldoR |
@runejuhl thank you for your reply and constructive suggestion. |
Howdy,
I recently upgraded my project to using shellcheck 0.4.4 on travis-ci.org to take advantage of the new global file exclusions (#777). After doing so, shellcheck is throwing lots of errors on my project, with the message:
+shellcheck -s sh src/winetricks
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
shellcheck: unable to decommit memory: Invalid argument
What's interesting is that it only occurs on Linux (Ubuntu):
https://travis-ci.org/Winetricks/winetricks/jobs/177866938
But not OS X with 0.4.5:
https://travis-ci.org/Winetricks/winetricks/jobs/177866939
is this a known issue with 0.4.4? I glanced through the commits between 0.4.4 and 0.4.5, but didn't see anything relevant. Unfortunately, Ubuntu's latest is 0.4.4:
https://launchpad.net/ubuntu/+source/shellcheck
so if it is fixed in 0.4.5, I'd like to know so I can ask Ubuntu to bump it.
P.S., I hate filing a bug for this since it's a previous version, but I couldn't find an IRC channel to ask about this. Is there one I'm unaware of?
The text was updated successfully, but these errors were encountered: