Skip to content

Instantly share code, notes, and snippets.

View jpasichnyk's full-sized avatar

Jesse Pasichnyk jpasichnyk

  • GeoRiot
  • Seattle, WA
View GitHub Profile
@jpasichnyk
jpasichnyk / gist:c41e2585901a704c341b
Created June 13, 2015 22:16
repro for mono dns lookup crash strace with options3 and WITH nscd
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], ["SHELL=/bin/bash", "TERM=xterm", "USER=root", "LS_COLORS=rs=0:di=01;34:ln=01;36"..., "SUDO_USER=jpasichnyk", "SUDO_UID=1004", "USERNAME=root", "MAIL=/var/mail/root", "PATH=/usr/local/sbin:/usr/local/"..., "PWD=/var/www/vhost/georiot.com/s"..., "SHLVL=1", "SUDO_COMMAND=/bin/bash", "HOME=/root", "LOGNAME=root", "LESSOPEN=| /usr/bin/lesspipe %s", "SUDO_GID=1004", "LESSCLOSE=/usr/bin/lesspipe %s %"..., "_=/usr/bin/strace", "OLDPWD=/usr/lib/debug/usr/bin"]) = 0
brk(0) = 0x1310000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7a2e37d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_dev=makedev(202, 0), st_ino=16841, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=80, st_size=38805, st_at
@jpasichnyk
jpasichnyk / gist:b31cdeaf1d58210c914b
Created June 13, 2015 22:15
repro for mono dns lookup crash strace with options3 and NO nscd
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], ["SHELL=/bin/bash", "TERM=xterm", "USER=root", "LS_COLORS=rs=0:di=01;34:ln=01;36"..., "SUDO_USER=jpasichnyk", "SUDO_UID=1004", "USERNAME=root", "MAIL=/var/mail/root", "PATH=/usr/local/sbin:/usr/local/"..., "PWD=/var/www/vhost/georiot.com/s"..., "SHLVL=1", "SUDO_COMMAND=/bin/bash", "HOME=/root", "LOGNAME=root", "LESSOPEN=| /usr/bin/lesspipe %s", "SUDO_GID=1004", "LESSCLOSE=/usr/bin/lesspipe %s %"..., "_=/usr/bin/strace", "OLDPWD=/usr/lib/debug/usr/bin"]) = 0
brk(0) = 0xb46000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f03121c4000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_dev=makedev(202, 0), st_ino=16841, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=80, st_size=38805, st_ati
@jpasichnyk
jpasichnyk / gist:002a049977c53c40fef0
Created June 13, 2015 22:09
repro for mono dns lookup crash strace with options2 and WITH nscd
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], [/* 19 vars */]) = 0
brk(0) = 0x26be000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7eff300ee000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=38805, ...}) = 0
mmap(NULL, 38805, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7eff300e4000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@jpasichnyk
jpasichnyk / gist:0ef4d9e051633eaa1370
Created June 13, 2015 22:08
repro for mono dns lookup crash strace with options2 and NO nscd
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], [/* 19 vars */]) = 0
brk(0) = 0x25bc000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f216f633000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=38805, ...}) = 0
mmap(NULL, 38805, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f216f629000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@jpasichnyk
jpasichnyk / gist:83c1e0b963bfbb064cb6
Created June 13, 2015 21:57
repro for mono dns lookup crash strace with options WITH nscd
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], [/* 19 vars */]) = 0
brk(0) = 0x27c7000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4e88e8a000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=38805, ...}) = 0
mmap(NULL, 38805, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4e88e80000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@jpasichnyk
jpasichnyk / gist:468627eb1e844afcdeab
Created June 13, 2015 21:56
repro for mono dns lookup crash strace with options and NO nscd
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], [/* 19 vars */]) = 0
brk(0) = 0x1866000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4fe17ac000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=38805, ...}) = 0
mmap(NULL, 38805, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4fe17a2000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@jpasichnyk
jpasichnyk / gist:84f2c262f5bb26ca75d5
Created June 13, 2015 21:40
repro for mono dns lookup crash strace without nscd
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], [/* 19 vars */]) = 0
brk(0) = 0x1976000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f53e8dba000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=38805, ...}) = 0
mmap(NULL, 38805, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f53e8db0000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@jpasichnyk
jpasichnyk / gist:cbc091a602239e82f61a
Created June 13, 2015 21:32
repro for mono dns lookup crash results mono-runtime-dbg
$ mono --debug test3.exe
Cannot handle address family 1360
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Net.Dns.GetHostByName_internal (string,string&,string[]&,string[]&) <IL 0x00010, 0xffffffff>
at System.Net.Dns.GetHostByName (string) [0x00011] in /tmp/buildd/mono-4.0.1.44/mcs/class/System/System.Net/Dns.cs:419
at System.Net.Dns.GetHostEntry (string) [0x00061] in /tmp/buildd/mono-4.0.1.44/mcs/class/System/System.Net/Dns.cs:382
at StatsdClient.StatsdUDP.GetIpv4Address (string) <IL 0x00012, 0x0004f>
at StatsdClient.StatsdUDP..ctor (string,int,int) <IL 0x0002c, 0x000f9>
@jpasichnyk
jpasichnyk / gist:d66cd35815f68522c51c
Created June 13, 2015 21:17
repro for mono dns lookup crash results dgb custom py
$ mono --debug test3.exe
Cannot handle address family 48704
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Net.Dns.GetHostByName_internal (string,string&,string[]&,string[]&) <IL 0x00010, 0xffffffff>
at System.Net.Dns.GetHostByName (string) [0x00011] in /tmp/buildd/mono-4.0.1.44/mcs/class/System/System.Net/Dns.cs:419
at System.Net.Dns.GetHostEntry (string) [0x00061] in /tmp/buildd/mono-4.0.1.44/mcs/class/System/System.Net/Dns.cs:382
at StatsdClient.StatsdUDP.GetIpv4Address (string) <IL 0x00012, 0x0004f>
at StatsdClient.StatsdUDP..ctor (string,int,int) <IL 0x0002c, 0x000f9>
@jpasichnyk
jpasichnyk / gist:c997f4117a44ad84234a
Created June 13, 2015 21:08
repro for mono dns lookup crash results dgb
$ mono --debug test3.exe
Cannot handle address family 7136
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Net.Dns.GetHostByName_internal (string,string&,string[]&,string[]&) <IL 0x00010, 0xffffffff>
at System.Net.Dns.GetHostByName (string) [0x00011] in /tmp/buildd/mono-4.0.1.44/mcs/class/System/System.Net/Dns.cs:419
at System.Net.Dns.GetHostEntry (string) [0x00061] in /tmp/buildd/mono-4.0.1.44/mcs/class/System/System.Net/Dns.cs:382
at StatsdClient.StatsdUDP.GetIpv4Address (string) <IL 0x00012, 0x0004f>
at StatsdClient.StatsdUDP..ctor (string,int,int) <IL 0x0002c, 0x000f9>