Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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>
at StatsdClient.Metrics.CreateStatsD (StatsdClient.MetricsConfig) <IL 0x00036, 0x000d1>
at StatsdClient.Metrics.Configure (StatsdClient.MetricsConfig) <IL 0x0003f, 0x000b3>
at Tests.IPV4ParsingTests.Main (string[]) <IL 0x00014, 0x0008b>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00060, 0xffffffff>
Native stacktrace:
mono() [0x4b1fac]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f2a59254340]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f2a58eb5cc9]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f2a58eb90d8]
mono() [0x629309]
mono() [0x629517]
mono() [0x6295c2]
mono() [0x624c35]
mono() [0x578b26]
[0x41f84da0]
Debug info from gdb:
Mono support loaded.
Mono support loaded.
[New LWP 29936]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f2a59253ee9 in __libc_waitpid (pid=pid@entry=29937, stat_loc=stat_loc@entry=0x7fff51e2f70c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Id Target Id Frame
2 Thread 0x7f2a5677b700 (LWP 29936) "Finalizer" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
* 1 Thread 0x7f2a59d867c0 (LWP 29935) "mono" 0x00007f2a59253ee9 in __libc_waitpid (pid=pid@entry=29937, stat_loc=stat_loc@entry=0x7fff51e2f70c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
Thread 2 (Thread 0x7f2a5677b700 (LWP 29936)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1 0x000000000061e6a8 in mono_sem_wait (sem=sem@entry=0x944e60 <finalizer_sem>, alertable=alertable@entry=1) at mono-semaphore.c:101
#2 0x00000000005a1c5e in finalizer_thread (unused=<optimized out>) at gc.c:1074
#3 0x0000000000586f98 in start_wrapper_internal (data=<optimized out>) at threads.c:664
#4 start_wrapper (data=<optimized out>) at threads.c:711
#5 0x00000000006234d6 in inner_start_thread (arg=0x7fff51e30c80) at mono-threads-posix.c:92
#6 0x00007f2a5924c182 in start_thread (arg=0x7f2a5677b700) at pthread_create.c:312
#7 0x00007f2a58f7947d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 1 (Thread 0x7f2a59d867c0 (LWP 29935)):
#0 0x00007f2a59253ee9 in __libc_waitpid (pid=pid@entry=29937, stat_loc=stat_loc@entry=0x7fff51e2f70c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1 0x00000000004b2039 in mono_handle_native_sigsegv (signal=<optimized out>, ctx=<optimized out>, info=<optimized out>) at mini-exceptions.c:2347
#2 <signal handler called>
#3 0x00007f2a58eb5cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#4 0x00007f2a58eb90d8 in __GI_abort () at abort.c:89
#5 0x0000000000629309 in monoeg_log_default_handler (log_domain=<optimized out>, log_level=<optimized out>, message=<optimized out>, unused_data=<optimized out>) at goutput.c:233
#6 monoeg_log_default_handler (log_domain=<optimized out>, log_level=G_LOG_LEVEL_ERROR, message=<optimized out>, unused_data=<optimized out>) at goutput.c:221
#7 0x0000000000629517 in monoeg_g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7fff51e30688) at goutput.c:113
#8 0x00000000006295c2 in monoeg_g_log (log_domain=log_domain@entry=0x0, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x6e69f8 "Cannot handle address family %d") at goutput.c:123
#9 0x0000000000624c35 in mono_get_address_info (hostname=hostname@entry=0x23478d0 "localhost", port=port@entry=0, flags=<optimized out>, result=result@entry=0x7fff51e307f8) at networking-posix.c:94
#10 0x0000000000578b26 in ves_icall_System_Net_Dns_GetHostByName_internal (host="localhost", h_name=0x7fff51e309a8, h_aliases=0x7fff51e309b0, h_addr_list=0x7fff51e309b8) at socket-io.c:2357
#11 0x0000000041f84da0 in ?? ()
#12 0x0000000002136380 in ?? ()
#13 0x00007f2a58000d70 in ?? ()
#14 0x00007f2a58624140 in ?? ()
#15 0x00007f2a58624140 in ?? ()
#16 0x00007f2a58624140 in ?? ()
#17 0x0000000002131640 in ?? ()
#18 0x0000000041f84d23 in ?? ()
#19 0x00007fff51e30b80 in ?? ()
#20 0x00007fff51e30950 in ?? ()
#21 0x0000000041f84c8e in ?? ()
#22 0x00007f2a58624140 in ?? ()
#23 0x0000000000000000 in ?? ()
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment