Skip to content

Instantly share code, notes, and snippets.

Fatal Python error: Segmentation fault
Thread 0x0000730aa34916c0 (most recent call first):
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 534 in read
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 567 in from_io
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 1160 in _thread_receiver
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 341 in run
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 411 in _perform_spawn
Current thread 0x0000730aa5f0e740 (most recent call first):
[2469010.901237] traps: python[2468223] general protection fault ip:78e1eff33c00 sp:7ffff5600ef8 error:0 in libpython3.8.so.1.0[333c00,78e1efd78000+c97000]
Fatal Python error: Segmentation fault
Thread 0x0000704b0f63f6c0 (most recent call first):
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 316 in wait
File "/code/operator/.tox/unit/lib/python3.9/site-packages/opentelemetry/sdk/trace/export/__init__.py", line 258 in worker
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 917 in run
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x0000704b160516c0 (most recent call first):
Hi peacekeepers, PTAL@ https://github.com/juju/python-libjuju/issues/1263
Juju 3.6.1.1, CK8s, they hit a timeout trying to deploy a locally-built charm, presumably immediately after model has been created.
Feel free to move the issue to juju/juju or bounce it to k8s people.
│ 2025-05-05T21:16:52.400Z [pebble] HTTP API server listening on ":38812". │
│ 2025-05-05T21:16:52.400Z [pebble] Started daemon. │
│ 2025-05-05T21:16:52.419Z [pebble] POST /v1/services 17.917425ms 202 │
│ 2025-05-05T21:16:52.422Z [pebble] Service "container-agent" starting: /charm/bin/containeragent unit --data-dir /var/lib/juju --append-env "PATH=$PATH:/charm/bin" --show-log --charm-modified-version 0 │
│ 2025-05-05T21:16:52.437Z [container-agent] 2025-05
│ 2025-03-13T22:54:50.612Z [container-agent] 2025-03-13 22:54:50 ERROR juju-log Uncaught exception while in charm code: │
│ 2025-03-13T22:54:50.612Z [container-agent] Traceback (most recent call last): │
│ 2025-03-13T22:54:50.612Z [container-agent] File "/var/lib/juju/agents/unit-hexanator-0/charm/venv/ops/model.py", line 3373, in _run │
│ 2025-03-13T22:54:50.612Z [container-agent] result = subprocess.run(args, **kwargs) # type: ig
class TracingEvents(Protocol):
@property
def request(self) -> EventSource: ...
def broken(self) -> EventSource: ...
class CertEvents(Protocol):
@property
def something(self) -> EventSource: ...
def other(self) -> EventSource: ...
2025-02-21T02:59:07.1894071Z Current runner version: '2.322.0'
2025-02-21T02:59:07.1921812Z ##[group]Operating System
2025-02-21T02:59:07.1922656Z Ubuntu
2025-02-21T02:59:07.1923194Z 24.04.1
2025-02-21T02:59:07.1923692Z LTS
2025-02-21T02:59:07.1924185Z ##[endgroup]
2025-02-21T02:59:07.1924733Z ##[group]Runner Image
2025-02-21T02:59:07.1925472Z Image: ubuntu-24.04
2025-02-21T02:59:07.1926052Z Version: 20250209.1.0
2025-02-21T02:59:07.1927083Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20250209.1/images/ubuntu/Ubuntu2404-Readme.md
@dataclass
class Status:
# important bits pulls from juju FullStatus
...
def check(full_status: juju.FullStatus, **kwargs) -> Status:
# simple, sync code here
...
diff --color=auto -ur juju-2.9.49.0/PKG-INFO juju-2.9.49.1/PKG-INFO
--- juju-2.9.49.0/PKG-INFO 2024-05-02 19:20:55
+++ juju-2.9.49.1/PKG-INFO 2024-11-29 16:15:21
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: juju
-Version: 2.9.49.0
+Version: 2.9.49.1
Summary: Python library for Juju
Home-page: https://github.com/juju/python-libjuju