Skip to content

Instantly share code, notes, and snippets.

View mweinelt's full-sized avatar

Martin Weinelt mweinelt

View GitHub Profile
kernel: libceph: mon2 (1)[2001:41b8:41:41:9618:82ff:fe08:ea7c]:6789 session established
kernel: libceph: another match of type 1 in addrvec
kernel: libceph: corrupt full osdmap (-22) epoch 245 off 1427 (00000000006127bc of 0000000070fef346-00000000c6c70005)
kernel: osdmap: 00000000: 08 07 9c 26 00 00 09 01 01 10 00 00 5e e1 c8 ae ...&........^...
kernel: osdmap: 00000010: f6 7f 11 ee 83 69 fd 74 aa d6 94 cc f5 00 00 00 .....i.t........
kernel: osdmap: 00000020: e9 53 15 66 6b 97 e5 1f 5b 25 1d 66 2d 5c 37 39 .S.fk...[%.f-\79
kernel: osdmap: 00000030: 03 00 00 00 01 00 00 00 00 00 00 00 1d 05 64 01 ..............d.
kernel: osdmap: 00000040: 00 00 01 03 00 02 01 00 00 00 01 00 00 00 00 00 ................
kernel: osdmap: 00000050: 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 00 ................
kernel: osdmap: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
@mweinelt
mweinelt / gdb
Last active April 11, 2024 17:24
ovn-controller crash 22.03.3-0ubuntu0.22.04.3
Core was generated by `ovn-controller unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -v'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000559a6980f115 in tunnel_add (ovs_table=0x559a6b9b9ad0, encap=0x559a6ba76260, new_chassis_id=0x559a6ba638f0 "991d2cd7-fb73-42f4-aaba-7accc5697c77",
sbg=0x0, tc=0x7ffd53a19810) at controller/encaps.c:201
201 controller/encaps.c: No such file or directory.
[Current thread is 1 (Thread 0x7fc5bac41a40 (LWP 524608))]
(gdb)
(gdb) bt full
#0 0x0000559a6980f115 in tunnel_add (ovs_table=0x559a6b9b9ad0, encap=0x559a6ba76260, new_chassis_id=0x559a6ba638f0 "991d2cd7-fb73-42f4-aaba-7accc5697c77",
sbg=0x0, tc=0x7ffd53a19810) at controller/encaps.c:201
pytest-mpl> ============================= test session starts ==============================
pytest-mpl> platform linux -- Python 3.11.8, pytest-8.0.2, pluggy-1.4.0 -- /nix/store/7wz6hm9i8wljz0hgwz1wqmn2zlbgavrq-python3-3.11.8/bin/python3.11
pytest-mpl> cachedir: .pytest_cache
pytest-mpl> Matplotlib: 3.8.3
pytest-mpl> Freetype: 2.13.2
pytest-mpl> rootdir: /build/pytest-mpl-0.17.0
pytest-mpl> configfile: setup.cfg
pytest-mpl> testpaths: tests
pytest-mpl> plugins: mpl-0.17.0
pytest-mpl> collected 120 items / 2 deselected / 118 selected
Machine state will be reset. To keep it, pass --keep-vm-state
start all VLans
start vlan
running vlan (pid 5; ctl /build/vde1.ctl)
(finished: start all VLans, in 0.00 seconds)
Test will time out and terminate in 3600 seconds
run the VM test script
additionally exposed symbols:
acme, client, dnsserver, webserver,
vlan1,
debugpy> tests/debugpy/test_args.py::test_args[attach_connect(cli)-code] PASSED [ 1%]
debugpy> tests/debugpy/test_args.py::test_args[attach_pid-program]
debugpy> +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
debugpy>
debugpy> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Captured stderr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
debugpy> I+00.027: Starting Session[1]
debugpy>
debugpy> I+00.028: Listening for incoming connection from BackChannel[1] on port 41745...
debugpy>
debugpy> I+00.028: Attaching Session[1] to program "/build/pytest-of-nixbld/pytest-0/test_args_attach_pid_program_0/code_to_debug.py" by PID.
@mweinelt
mweinelt / gist:6a9ec50a06d96630f50be58c388f895c
Created January 30, 2024 19:04
Python 3.12 PGO Performance Gain (Intel i7-8700K 6C/12T, 64GB DDR4-2400)
python312-no-pgo.json
=====================
Performance version: 1.10.0
Report on Linux-6.6.14-x86_64-with-glibc2.38
Number of logical CPUs: 12
Start date: 2024-01-30 18:57:43.076973
End date: 2024-01-30 20:01:50.659574
python312-pgo.json
@mweinelt
mweinelt / bupstash.nix
Created January 12, 2024 17:13
Bupstash NixOS module mock-up
{ config
, lib
, pkgs
, ...
}:
let
inherit (lib)
concatMapStringsSep
escapeShellArgs
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
❯ poetry run pytest
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.0.0
rootdir: /tmp/bleak
plugins: asyncio-0.22.0, cov-3.0.0
asyncio: mode=Mode.STRICT
collected 0 items
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/home/hexa/.cache/pypoetry/virtualenvs/bleak-bSnE_Rog-py3.11/lib/python3.11/site-packages/_pytest/python.py", line 617, in _importtestmodule
INTERNALERROR> mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
This file has been truncated, but you can view the full file.
Running phase: qmakePrePhase
Running phase: qtPreHook
Running phase: unpackPhase
unpacking source archive /nix/store/vy5mjw87j4kf4c24y9x7kxj1w62yx4lg-qtquickcontrols-dcc9055
source root is qtquickcontrols-dcc9055
unpackPhase completed in 49 seconds
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
fixQtBuiltinPaths: Fixing Qt builtin paths in `./examples/quickcontrols/extras/gallery/gallery.pro'...