Skip to content

Instantly share code, notes, and snippets.

View gist:6eee694c5f4748f89d3168cbf760d5fe
@ valgrind --undef-value-errors=no --freelist-vol=10000000000 ./binaryninja/binaryninja /tmp/main_301.bndb
==65305== Memcheck, a memory error detector
==65305== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==65305== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==65305== Command: ./binaryninja/binaryninja /tmp/main_301.bndb
==65305==
==65305== Invalid read of size 8
==65305== at 0x4025964: strncmp (strcmp.S:170)
==65305== by 0x4005EAD: is_dst (dl-load.c:216)
==65305== by 0x4006F26: _dl_dst_count (dl-load.c:253)
View gist:ec5b05486c493521305b83adf7b499d4
@ valgrind --undef-value-errors=no ./binaryninja/binaryninja /tmp/main_301.bndb
==64468== Memcheck, a memory error detector
==64468== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==64468== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==64468== Command: ./binaryninja/binaryninja /tmp/main_301.bndb
==64468==
==64468== Invalid read of size 8
==64468== at 0x4025964: strncmp (strcmp.S:170)
==64468== by 0x4005EAD: is_dst (dl-load.c:216)
==64468== by 0x4006F26: _dl_dst_count (dl-load.c:253)
View gist:4e1528003df497b17afaa17d0a48f34b
@ valgrind --undef-value-errors=no ./binaryninja/binaryninja /tmp/main_301.bndb
==54086== Memcheck, a memory error detector
==54086== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==54086== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==54086== Command: ./binaryninja/binaryninja /tmp/main_301.bndb
==54086==
==54086== Invalid read of size 8
==54086== at 0x4025964: strncmp (strcmp.S:170)
==54086== by 0x4005EAD: is_dst (dl-load.c:216)
==54086== by 0x4006F26: _dl_dst_count (dl-load.c:253)
View gist:fb46ad70f49b13524e02eacf70e9e12f
==52619== Memcheck, a memory error detector
==52619== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==52619== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==52619== Command: ./binaryninja/binaryninja /tmp/main_301.bndb
==52619==
==52619== Invalid read of size 8
==52619== at 0x4025964: strncmp (strcmp.S:170)
==52619== by 0x4005EAD: is_dst (dl-load.c:216)
==52619== by 0x4006F26: _dl_dst_count (dl-load.c:253)
==52619== by 0x4007127: expand_dynamic_string_token (dl-load.c:395)
View gist:595b97f7625f4c3a4de6583d9e3e2284
# Uncrustify-0.74.0_f
indent_with_tabs = 0
# option(s) with 'not default' value: 1
#
# -=====-
# number of loops = 0
# -=====-
# language = C
# -=====-
# Line Tag Parent_type Type of the parent Columns Br/Lvl/pp Flag Nl Text
View Makefile
export CCACHE_BASEDIR=$(CURDIR)
$(CURDIR)/foo.o: $(CURDIR)/foo.c Makefile
ccache cc -c -o $@ $< -MD
clean:
rm -f $(CURDIR)/foo.o $(CURDIR)/foo.d
-include $(CURDIR)/foo.d
@comex
comex / # gdb - 2022-02-20_23-40-05.txt
Created Feb 21, 2022
gdb on macOS 12 - Homebrew build logs
View # gdb - 2022-02-20_23-40-05.txt
Homebrew build logs for gdb on macOS 12
Build date: 2022-02-20 23:40:05
View argc0.c
// To build: gcc -o argc0 argc0.c
// To use: ./argc0 /bin/whatever
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
int main(int argc, char **argv) {
assert(argc == 2);
execl(argv[1], NULL);
perror("execl");
}
View sthack.diff
--- glibc-2.33/nptl/pthreadP.h 2022-01-02 23:37:20.000000000 -0500
+++ glibc-2.33-modified/nptl/pthreadP.h 2022-01-03 00:56:39.622447597 -0500
@@ -220,7 +220,7 @@
hidden_proto (__pthread_keys)
/* Number of threads running. */
-extern unsigned int __nptl_nthreads attribute_hidden;
+extern unsigned int __nptl_nthreads;
#ifndef __ASSUME_SET_ROBUST_LIST
View gist:9fa0899293d1c6e748faa81b875b25ac
testbed akregator[7715]: sthack: setenv("force_s3tc_enable", "true", 1)
testbed akregator[7715]: sthack: setenv("QTWEBENGINE_CHROMIUM_FLAGS", " --disable-in-process-stack-traces", 1)
testbed cheese[7833]: sthack: setenv("PULSE_PROP_media.role", "production", 1)
testbed firefox-esr[5545]: sthack: putenv("__GL_ALLOW_FXAA_USAGE=0")
testbed firefox-esr[5545]: sthack: putenv("XRE_BINARY_PATH=")
testbed firefox-esr[5545]: sthack: putenv("XRE_PROFILE_LOCAL_PATH=")
testbed firefox-esr[5545]: sthack: putenv("XRE_PROFILE_PATH=")
testbed firefox-esr[5545]: sthack: putenv("XRE_RESTARTED_BY_PROFILE_MANAGER=")
testbed firefox-esr[5545]: sthack: putenv("XRE_START_OFFLINE=")
testbed firefox-esr[5545]: sthack: putenv("XUL_APP_FILE=")