cancel
Showing results for 
Search instead for 
Did you mean: 
Raksha
Mission Specialist
Mission Specialist
  • 5,084 Views

How to resolve this- allocatestack.c:194: advise_stack_range: Assertion `freesize < size' failed?

Jump to solution

The Buildah ClusterTask fails when trying to build my Dockerfile in Openshift.

python3: allocatestack.c:194: advise_stack_range: Assertion `freesize < size' failed.

The line where my Dockerfile fails:

STEP 4: RUN dnf -y install     --setopt=deltarpm=0     --setopt=install_weak_deps=false     --setopt=tsflags=nodocs     httpd     gcc     libffi-devel     libpq-devel     mod_auth_gssapi     mod_ssl     mod_wsgi     krb5-devel     python3-pip     python3-setuptools     python-devel     redhat-rpm-config     && dnf clean all

By the error message, I believe this has something to do with the storage. I don't know if this helps but I have set my PVC to 4Gi. The maximum value set for limits.memory is 40Gi.

 

Here is my pod status

 containerStatuses:
- containerID: cri-o://1635b91dd38fb77e41f1327283887de910310ad0d2ed07ae6822c3f297db6609
image: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
imageID: registry.redhat.io/rhel8/buildah@sha256:72dbedf036cbfb351bd5f9e0098c66a5feea2ab7cfc1666b9085ebbd96fe8ce6
lastState: {}
name: step-build
ready: false
restartCount: 0
started: false
state:
terminated:
containerID: cri-o://1635b91dd38fb77e41f1327283887de910310ad0d2ed07ae6822c3f297db6609
exitCode: 134
finishedAt: 2022-02-24T02:38:23Z
message: '[{"key":"StartedAt","value":"2022-02-24T02:37:57.117Z","type":"InternalTektonResult"}]'
reason: Error
startedAt: 2022-02-24T02:37:53Z

 

This dockerfile works fine in my local environment but fails in my pod. Does anyone know how I can resolve this ?

Labels (4)
1 Solution

Accepted Solutions
Raksha
Mission Specialist
Mission Specialist
  • 5,063 Views

Update:

This was resolved upon using a different buildah image.

View solution in original post

3 Replies
Raksha
Mission Specialist
Mission Specialist
  • 5,064 Views

Update:

This was resolved upon using a different buildah image.

Deanna
Community Manager
Community Manager
  • 5,060 Views

Thank you for sharing @Raksha - this will help others navigating a similar scenario. 

--
Deanna
0 Kudos
Bowe
Community Manager
Community Manager
  • 4,678 Views

Indeed it has... Thanks for tip! --b

0 Kudos
Join the discussion
You must log in to join this conversation.