Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladimir Smirnov Civil

  • Google
  • Zurich, Switzerland
View GitHub Profile
View bintuils-2.34-avr-size.patch
--- a/binutils/size.c 2020-03-24 23:26:39.742781006 +0100
+++ b/binutils/size.c 2020-03-24 23:26:20.790781347 +0100
@@ -51,7 +51,8 @@
{
FORMAT_BERKLEY,
FORMAT_SYSV,
- FORMAT_GNU
+ FORMAT_GNU,
+ FORMAT_AVR
};
@Civil
Civil / gist:1db9fb2fa25d5af8dc04
Last active Jan 7, 2016
List of ASAN complains for OpenJK
View gist:1db9fb2fa25d5af8dc04
==15503==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7fb39e95c080 at pc 0x00000063633e bp 0x7ffe768b9c00 sp 0x7ffe768b9bf8
READ of size 4 at 0x7fb39e95c080 thread T0
#0 0x63633d in Z_IsFromZone(void const*, unsigned int) /home/civil/src/OpenJK/code/qcommon/z_memman_pc.cpp:509:15
#1 0x7fb39e327aea in G_FreeEntity(gentity_s*) /home/civil/src/OpenJK/code/game/g_utils.cpp:942:23
#2 0x7fb39e23a2d4 in SP_waypoint(gentity_s*) /home/civil/src/OpenJK/code/game/g_nav.cpp:210:3
#3 0x7fb39e2d22a1 in G_CallSpawn(gentity_s*) /home/civil/src/OpenJK/code/game/g_spawn.cpp:893:4
#4 0x7fb39e2d3f84 in G_SpawnGEntityFromSpawnVars() /home/civil/src/OpenJK/code/game/g_spawn.cpp:1108:8
#5 0x7fb39e2d689c in G_SpawnEntitiesFromString(char const*) /home/civil/src/OpenJK/code/game/g_spawn.cpp:1653:3
#6 0x7fb39e1d6d77 in InitGame(char const*, char const*, int, char const*, int, int, int, SavedGameJustLoaded_e, int) /home/civil/src/OpenJK/code/game/g_main.cpp:784:2
#7 0x6464c0 in SV_InitGam
View gist:77cc27dca38eaa467123
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -mtune=native -D_REENTRANT -Wall -W -fPIE -DQT_STATICPLUGIN -DHAVE_ASPELL -DPSI_PLUGINS -DHAVE_CONFIG -DHAVE_QT5 -DHAVE_X11 -DUSE_PEP -DTC_PSIFILE -DTC_MPRIS -DIRIS_XMPP_JID_DEPRECATED -DFILETRANSFER -DGROUPCHAT -DNEWCONTACTLIST -DHAVE_PGPUTIL -DPSI_PLUGINS -DUSE_DBUS -DWEBKIT -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -isystem /usr/include/Qca-qt5/QtCrypto -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtCore -isystem /usr/include/minizip -Iprivacy -Icapabilities -Itabs -I. -Itools/iconset -Itools/optionstree -Itools/advwidget -Ilibpsi/dialogs -Ilibpsi/tools -Itools/tunecontroller -Itools/tunecontroller/plugins/psifile -Itools/tunecontroller/plugins/mpris -I. -Iwidgets -I../iris/include -I../iris/include/iris -I../iris/src -Ioptions -Iplugins/
@Civil
Civil / graphite-web grammar parser non-sense
Created Aug 28, 2014
What graphite-web's grammar.parseString generates for a simple query
View graphite-web grammar parser non-sense
QUERY: 'render/?width=586&height=308&_salt=1409223151.417&target=hostname.cpu.user&target=hostname.cpu.system&target=hostname.cpu.steal&target=hostname.cpu.softirq&target=hostname.cpu.nice&target=hostname.cpu.irq&target=hostname.cpu.iowait&target=hostname.cpu.idle&target=perSecond(hostname.cpu.guest)&target=aliasSub(ip.*TCP*,"^.*TCP(\d+)","\1")&target=asPercent(Server01.connections.{failed,succeeded},%20Server01.connections.attempted)'
Result:
([([u'hostname.cpu.user'], {'pathExpression': [(u'hostname.cpu.user', 0)]})], {'expression': [(([u'hostname.cpu.user'], {'pathExpression': [(u'hostname.cpu.user', 0)]}), 0)]})
([([u'hostname.cpu.system'], {'pathExpression': [(u'hostname.cpu.system', 0)]})], {'expression': [(([u'hostname.cpu.system'], {'pathExpression': [(u'hostname.cpu.system', 0)]}), 0)]})
([([u'hostname.cpu.steal'], {'pathExpression': [(u'hostname.cpu.steal', 0)]})], {'expression': [(([u'hostname.cpu.steal'], {'pathExpression': [(u'hostname.cpu.steal', 0)]}), 0)]})
([([u'hostname.cpu.softirq'], {'pat
@Civil
Civil / gdb_thread_apply_bt
Created Aug 20, 2014
gdb thread apply bt full for influxdb
View gdb_thread_apply_bt
(gdb) thread apply all bt full
Thread 31 (Thread 0x7f4499a50700 (LWP 9419)):
#0 runtime.usleep () at /home/vagrant/.gvm/gos/go1.3/src/pkg/runtime/sys_linux_amd64.s:77
No locals.
#1 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 30 (Thread 0x7f449914f700 (LWP 9420)):
#0 runtime.futex () at /home/vagrant/.gvm/gos/go1.3/src/pkg/runtime/sys_linux_amd64.s:269
@Civil
Civil / shard_spaces_test
Created Aug 20, 2014
Test JSON to create shard spaces for graphite. Based on docs for influxdb
View shard_spaces_test
{
"spaces": [
{
"name": "everything_30d",
"retentionPolicy": "1h",
"shardDuration": "3d",
"regex": "/.*/",
"replicationFactor": 1,
"split": 1
},