Skip to content

Instantly share code, notes, and snippets.

View mizhka's full-sized avatar

Michael Zhilin mizhka

  • PostgresPro
  • Moscow
View GitHub Profile
import java.lang.*;
public class MyJava{
}
@mizhka
mizhka / freebsd-mips-rtld-debug-libc-write.lst
Created April 28, 2016 23:17
FreeBSD mips attempt to debug rtld
BAD_PAGE_FAULT: pid 20 tid 100032 (sh), uid 0: pc 0x15a60 got a read fault (type 0x2) at 0x15a60
Trapframe Register Dump (0xc2b81e98):
zero: 0 at: 0 v0: 0x4046c8d0 v1: 0x2
a0: 0x2 a1: 0x7ffeec18 a2: 0x33 a3: 0
t0: 0 t1: 0 t2: 0 t3: 0
t4: 0 t5: 0 t6: 0 t7: 0
t8: 0 t9: 0x15a60 s0: 0x7ffeee18 s1: 0x7ffeee18
s2: 0x4043c000 s3: 0x16088 s4: 0x1 s5: 0x4043c73c
s6: 0x4043cfec s7: 0x18 k0: 0 k1: 0
gp: 0x40474960 sp: 0x7ffeebc0 s8: 0x7ffeee80 ra: 0x404515f8
@mizhka
mizhka / english.lst
Last active July 13, 2016 12:28
English
until cows come home - infinite & useless
head over heels - out of control in love
chaser - запивон
chin wag - поболтать
name is mud -
wamp - слабак
have-a-chip-on-your-shoulder - заморочки
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_lock': Resource deadlock avoided. Aborting.
Abort trap (core dumped)
root@gidrarium:/home/mizhka # sysctl net.wlan.devices
net.wlan.devices:
root@gidrarium:/home/mizhka # kldload /boot/kernel/if_rtwn_pci.ko
root@gidrarium:/home/mizhka # sysctl net.wlan.devices
net.wlan.devices: rtwn0
root@gidrarium:/home/mizhka # ifconfig wlan0
ifconfig: interface wlan0 does not exist
root@gidrarium:/home/mizhka # ifconfig wlan0 create wlandev rtwn0
root@gidrarium:/home/mizhka # ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Tracing pid 1 tid 100001 td 0x80642000
[kernel] kdb_enter+0x48 (?,?,?,?) ra 80183ae4 sp c2b03b90 sz 24 subr 80183994
[kernel] kdb_sysctl_enter+0xbc (?,?,?,?) ra 801457e8 sp c2b03ba8 sz 48 subr 80183a28
[kernel] sysctl_root_handler_locked+0xa4 (?,?,?,?) ra 80145aa0 sp c2b03bd8 sz 56 subr 80145744
[kernel] sysctl_root+0xd8 (?,?,?,?) ra 80145efc sp c2b03c10 sz 96 subr 801459c8
[kernel] userland_sysctl+0x110 (80642000,?,?,?) ra 801461ac sp c2b03c70 sz 112 subr 80145dec
[kernel] sys___sysctl+0xac (?,?,?,?) ra 80339dcc sp c2b03ce0 sz 168 subr 80146100
[kernel] trap+0x1018 (?,?,?,?) ra 80326524 sp c2b03d88 sz 248 subr 80338db4
[kernel] MipsUserGenException+0x10c (?,?,?,?) ra 00000000 sp c2b03e80 sz 0 subr 80326418
--- exception, cause 0 badvaddr 0 ---
--- all_subdir_lib/libzstd ---
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn)
Target: armv6--freebsd12.0-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
...
cc: note: diagnostic msg:
Closing network.
Starting program at 0x80900000
entry: mips_init()
Cache info:
picache_stride = 4096
picache_loopcount = 8
pdcache_stride = 4096
pdcache_loopcount = 8
max line size = 32
cpu0: MIPS Technologies processor v73.151
CFE version 5.70.55.33 @VERSION_TYPE@ based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: 三 1月 2 13:05:22 CST 2013 (root@raymonddev-vm)
Copyright (C) 2000-2008 Broadcom Corporation.
Init Arena
Init Devs.
Boot partition size = 131072(0x20000)
Found a 8MB ST compatible serial flash
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.70.55.33 @VERSION_TYPE@
CPU type 0x19749: 500MHz
db> bt
Tracing pid 215 tid 100061 td 0x80862b40
[kernel] kdb_enter+0x48 (?,?,?,?) ra 8018e6e4 sp c0473b90 sz 24 subr 8018e594
[kernel] kdb_sysctl_enter+0xbc (?,?,?,?) ra 8014f7b0 sp c0473ba8 sz 48 subr 8018e628
[kernel] sysctl_root_handler_locked+0xa4 (?,?,?,?) ra 8014fa78 sp c0473bd8 sz 56 subr 8014f70c
[kernel] sysctl_root+0xd8 (?,?,?,?) ra 8014fed4 sp c0473c10 sz 96 subr 8014f9a0
[kernel] userland_sysctl+0x110 (80862b40,?,?,?) ra 80150184 sp c0473c70 sz 112 subr 8014fdc4
[kernel] sys___sysctl+0xac (?,?,?,?) ra 80349874 sp c0473ce0 sz 168 subr 801500d8
[kernel] trap+0x1000 (?,?,?,?) ra 80336304 sp c0473d88 sz 248 subr 80348874
[kernel] MipsUserGenException+0x10c (?,?,?,?) ra 00000000 sp c0473e80 sz 0 subr 803361f8