Skip to content

Instantly share code, notes, and snippets.

View jpasichnyk's full-sized avatar

Jesse Pasichnyk jpasichnyk

  • GeoRiot
  • Seattle, WA
View GitHub Profile
// route added in AppHost like: .Add<ReportFilter>("/Report/{StartDate}/{EndDate}");
// call like: http://localhost:22015/api/Report/09-03-2012/09-07-2012
public class ReportFilter
{
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
}
@jpasichnyk
jpasichnyk / gist:e4bca663138cad192881
Created June 13, 2015 20:41
repro for mono dns lookup crash
using System;
using StatsdClient;
namespace Tests
{
public class IPV4ParsingTests
{
public static void Main(String[] argv)
{
var metricsConfig = new MetricsConfig
@jpasichnyk
jpasichnyk / gist:5e2ddfda6a372ee8044b
Created June 13, 2015 20:43
repro for mono dns lookup crash results
$ mono --debug test3.exe
Cannot handle address family 51520
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) <IL 0x00018, 0x0004d>
at System.Net.Dns.GetHostEntry (string) <IL 0x00062, 0x000a5>
at StatsdClient.StatsdUDP.GetIpv4Address (string) <IL 0x00012, 0x0004f>
at StatsdClient.StatsdUDP..ctor (string,int,int) <IL 0x0002c, 0x000f9>
@jpasichnyk
jpasichnyk / gist:06d047f61eb8246ff469
Created June 13, 2015 20:49
repro for mono dns lookup crash strace
execve("/usr/bin/mono", ["mono", "--debug", "test3.exe"], [/* 19 vars */]) = 0
brk(0) = 0x9ec000
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) = 0x7fcb0d641000
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=38689, ...}) = 0
mmap(NULL, 38689, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcb0d637000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@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>
@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: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: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: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: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)