Skip to content

Instantly share code, notes, and snippets.

Avatar

Ola Bini olabini

View GitHub Profile
View gist:af4ddc4989fba0938dbb69738be5b818
Storage: /var/lib/systemd/coredump/core.pidgin.1000.499e51879a794df6bd4117beb6e1a595.17221.1535207266000000.lz4
Message: Process 17221 (pidgin) of user 1000 dumped core.
Stack trace of thread 17221:
#0 0x00007fb94b39afeb raise (libc.so.6)
#1 0x00007fb94b3855c1 abort (libc.so.6)
#2 0x000056244d5c61be sighandler (pidgin)
#3 0x00007fb94b39b070 __restore_rt (libc.so.6)
#4 0x00007fb93498023f otrng_prekey_profile_copy (libotr-ng.so.0)
#5 0x00007fb93496d346 otrng_client_state_add_prekey_profile (libotr-ng.so.0)
@olabini
olabini / gist:122f1a4bcaa0ca4bef03160eb5161dc4
Created Aug 24, 2018
alice sends offline to bob, valgrind with track origins, had to force quit
View gist:122f1a4bcaa0ca4bef03160eb5161dc4
==4913== by 0x1438F3: main (gtkmain.c:857)
==4913== Uninitialised value was created by a heap allocation
==4913== at 0x4C2EBAB: malloc (vg_replace_malloc.c:299)
==4913== by 0x2E66282B: ??? (in /usr/lib64/librsvg-2.so.2.42.6)
==4913== by 0x2E669289: ??? (in /usr/lib64/librsvg-2.so.2.42.6)
==4913== by 0x2E655B19: ??? (in /usr/lib64/librsvg-2.so.2.42.6)
==4913== by 0x2E660FF6: ??? (in /usr/lib64/librsvg-2.so.2.42.6)
==4913== by 0x2E663661: ??? (in /usr/lib64/librsvg-2.so.2.42.6)
==4913== by 0x2E59BB25: ??? (in /usr/lib64/librsvg-2.so.2.42.6)
==4913== by 0x2E646D84: ??? (in /usr/lib64/librsvg-2.so.2.42.6)
@olabini
olabini / gist:7221491438d32905cb2768953e7dfc9e
Created Aug 24, 2018
pidgin valgrind alice sends offline message to bob
View gist:7221491438d32905cb2768953e7dfc9e
==3282== Memcheck, a memory error detector
==3282== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==3282== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==3282== Command: pidgin
==3282==
==3282== Conditional jump or move depends on uninitialised value(s)
==3282== at 0xC799A28: ??? (in /usr/lib64/libpixman-1.so.0.34.0)
==3282== by 0xC77D2CC: ??? (in /usr/lib64/libpixman-1.so.0.34.0)
==3282== by 0xC738860: pixman_image_composite32 (in /usr/lib64/libpixman-1.so.0.34.0)
==3282== by 0x6979B8A: ??? (in /usr/lib64/libcairo.so.2.11512.0)
View sadness2.sh
[CoyIM] 2017/10/17 13:58:04 /home/olabini/.gopkgs/coyim/src/github.com/coyim/coyim/gui/conversation.go:522: Conversation does not exist - this shouldn't happen
[CoyIM] 2017/10/17 13:58:04 /home/olabini/.gopkgs/coyim/src/github.com/coyim/coyim/gui/conversation.go:522: Conversation does not exist - this shouldn't happen
[CoyIM] 2017/10/17 13:58:11 /home/olabini/.gopkgs/coyim/src/github.com/coyim/coyim/session/session.go:177: <- to=Susana {?OTRv23? Your peer has requested a private conversation with you, but your client doesn't seem to support the OTR protocol.}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x8f1a6a]
goroutine 1 [running, locked to thread]:
github.com/coyim/coyim/roster.(*Peer).NameForPresentation(...)
/home/olabini/.gopkgs/coyim/src/github.com/coyim/coyim/roster/peer.go:169
github.com/coyim/coyim/gui.(*account).createConversationView(0xc420088a00, 0xc4201ba548, 0x6, 0x0, 0x0, 0xc42018a000, 0x0, 0x0)
View sadness.sh
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x8ec01a]
goroutine 1 [running, locked to thread]:
github.com/coyim/coyim/roster.(*Peer).NameForPresentation(...)
/home/olabini/.gopkgs/coyim/src/github.com/coyim/coyim/roster/peer.go:169
github.com/coyim/coyim/gui.(*account).createConversationView(0xc420264320, 0xc420085f40, 0x16, 0x0, 0x0, 0xc4201ac000, 0x0, 0x0)
/home/olabini/.gopkgs/coyim/src/github.com/coyim/coyim/gui/account.go:92 +0xba
github.com/coyim/coyim/gui.(*roster).openConversationView(0xc42020c000, 0xc420264320, 0xc420085f40, 0x16, 0xc4201a4000, 0x0, 0x0, 0x0, 0x0)
/home/olabini/.gopkgs/coyim/src/github.com/coyim/coyim/gui/roster.go:363 +0x115
View log_keyvals.patch
diff --git a/gui/conversation.go b/gui/conversation.go
index cfde96d..18117c6 100644
--- a/gui/conversation.go
+++ b/gui/conversation.go
@@ -261,6 +261,7 @@ func createConversationPane(account *account, uid string, ui *gtkUI, transientPa
}
func (a *account) isInsertEnter(evk gdki.EventKey) bool {
+ log.Printf("isInsertEnter(state=%v, keyVal=%v)", evk.State(), evk.KeyVal())
return evk.State()&uint(gdki.GDK_SHIFT_MASK) != 0 && hasEnter(evk)
@olabini
olabini / new_entry_guard_selection_algorithm_259.md
Last active Feb 11, 2016
Tor new entry guard selection algorithm
View new_entry_guard_selection_algorithm_259.md

The full algorithm is referred to as ALGO_CHOOSE_ENTRY_GUARD. It is divided into three components, such that the full algorithm is implemented by first invocing ALGO_CHOOSE_ENTRY_GUARD_START, then repeatedly calling ALGO_CHOOSE_ENTRY_GUARD_NEXT and finally calling ALGO_CHOOSE_ENTRY_GUARD_END.

ALGO_CHOOSE_ENTRY_GUARD keeps track of unreachable status for guards in state private to the algorithm - this is initialized every time ALGO_CHOOSE_ENTRY_GUARD_START is called.

  • ALGO_CHOOSE_ENTRY_GUARD_START: (arguments: USED_GUARDS, EXCLUDE_NODES, N_PRIMARY_GUARDS)
    • If selecting directory guards, GUARDS is all guards from the consensus with the V2Flag,
View gist:ab158d32704e6de81101
ʎ bin/tahoe -V
allmydata-tahoe: 1.10.0
foolscap: 0.8.0
pycryptopp: 0.6.0.1206569328141510525648634803928199668821045408958
zfec: 1.4.24
Twisted: 13.0.0
Nevow: 0.11.1
zope.interface: unknown
python: 2.7.9
platform: Linux-fedora_22-x86_64-64bit_ELF
View keybase.md

Keybase proof

I hereby claim:

  • I am olabini on github.
  • I am ola (https://keybase.io/ola) on keybase.
  • I have a public key whose fingerprint is 698E 2885 C1DE 74E3 2CD5 03AD 295C 7469 84AF 7F0C

To claim this, I am signing this object:

@olabini
olabini / gist:1359366
Created Nov 11, 2011
Updates since last Ioke release
View gist:1359366
- IKover
- Improved performance
- ISpec JUnit XML output
- Number char
- One pass parser
- Number Decimal **
- Number Integer divmod
- Number Integer div
- ICheck
- FlowControl dip