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)
[mizhka@gidrarium ~/temp/20170725/pstack]$ ./pstack -v -T 101293 8142
8142: /usr/local/lib/firefox/firefox
----------------- thread 101293 (running) -----------------
0x8021390a4 0x7fffd5a45d70 _init (2135138, 8, 80, 0, 250b6ac5, 8) + 144e7c in libc.so.7
0x802135138 0x7fffd5a45d90 __call_hash (2131ff2, 8, 0, 0, 1045, 0) + 18 in libc.so.7
0x802131ff2 0x7fffd5a45e80 __split_page (2135757, 8, 6d, 0, 6d, 0) + 4b2 in libc.so.7
0x802135757 0x7fffd5a45f10 _init (1edce556, 8, 11b0ef20, 8, 2394ba0, 8) + 14152f in libc.so.7
0x81edce556 0x7fffd5a460d0 ???????? (1eddc3fb, 8, d5a46110, 7fff, 40f8e020, 8) in libnssdbm3.so
0x81eddc3fb 0x7fffd5a46170 ???????? (1eddfc4c, 8, 4bddd3d0, 8, 16, 0) in libnssdbm3.so
0x81eddfc4c 0x7fffd5a46220 ???????? (1eddc535, 8, 0, 0, 1eff0fa0, 8) in libnssdbm3.so
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