Skip to content

Instantly share code, notes, and snippets.

@ArtemGr
ArtemGr / gdb and JNI SIGSEGV.txt
Created October 7, 2010 11:27
gdb and JNI SIGSEGV
Suppose we have a following stack trace:
Stack: [...,...], sp=..., free space=...
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libcpp_mem_i_40.so+0xAAAA] _ZN3Mem10setCounterExii+0xBBB
--- Using the first offset (0xAAAA) -------
Open the gdb:
@pistol
pistol / build-tmux.sh
Last active June 10, 2021 09:59
compile tmux from source and statically link with libevent + ncurses
# ncurses
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar xvzf ncurses-5.9.tar.gz
cd ncurses-5.9
./configure --prefix=$HOME/local
make -j8
make install
cd ..
# libevent