Skip to content

Instantly share code, notes, and snippets.

View andmoos's full-sized avatar
💭
null

Andreas Moos andmoos

💭
null
View GitHub Profile
// A minimal example to reproduce a TSAN crash on calling vkCreateDevice on Linux/NVIDIA:
// [...]
// ThreadSanitizer:DEADLYSIGNAL
// ==73756==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000001048 (pc 0x560233ed6b07 bp 0x000000000010 sp 0x7f3ac37fe580 T73757)
// ==73756==The signal is caused by a READ memory access.
// [...]
//
// github issue: https://github.com/google/sanitizers/issues/1678
// nvidia issue: https://developer.nvidia.com/bugs/4470250
// tested on: Arch Linux 2024-01-19 with NVIDIA driver 545.29.06, clang 16.0.6
@andmoos
andmoos / build-containers.sh
Last active October 7, 2015 07:18
Small util to build a bunch of docker hierarchical containers
#!/bin/bash
SCRIPT_ROOT="$( dirname ${0} )"
CONTAINERS_ROOT="${SCRIPT_ROOT}/containers"
DOCKER="${SCRIPT_ROOT}/docker.sh"
function build_leaf() {
${DOCKER} build -t "${1}" "${CONTAINERS_ROOT}/${1}";
}
function build_node() {
@andmoos
andmoos / unified-pairing-sequence.sh
Last active August 29, 2015 14:18
Creates the binary pairing sequence for a Unified Reciever (e.g. Logitech MXMouse) using a Linux Shell
MAGIC_SEQUENCE="EP+AsgEAAA=="; echo "${MAGIC_SEQUENCE}" | base64 --decode