Skip to content

Instantly share code, notes, and snippets.

@alexanderkyte
Created February 14, 2019 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderkyte/634c9f1f25b7eb252e4d5fb4ea3c2fcf to your computer and use it in GitHub Desktop.
Save alexanderkyte/634c9f1f25b7eb252e4d5fb4ea3c2fcf to your computer and use it in GitHub Desktop.
Starting program: /home/akytemono/mono/mono/mini/mono-sgen --debug --runtime=mobile --full-aot ./../../class/lib/testing_aot_full/nunit-lite-console.exe ./../../class/lib/testing_aot_full/tests/testing_aot_full_corlib_test.dll -exclude=MobileNotWorking,PKITS,SRE,NotWorking,CAS -format:nunit2 -result:TestResult-testing_aot_full.xml
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff53ff700 (LWP 15357)]
Thread 1 "mono-sgen" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff2bd321a in System_OutOfMemoryException__ctor_string () from /home/akytemono/mono/mcs/class/lib/testing_aot_full/mscorlib.dll.so
#2 0x0000000000000000 in ?? ()
(gdb) up
#1 0x00007ffff2bd321a in System_OutOfMemoryException__ctor_string () from /home/akytemono/mono/mcs/class/lib/testing_aot_full/mscorlib.dll.so
(gdb) p/a 0x00007ffff2bd321a
$1 = 0x7ffff2bd321a <System_OutOfMemoryException__ctor_string+26>
(gdb) p/a 0x00007ffff2bd321a-26
$2 = 0x7ffff2bd3200 <System_OutOfMemoryException__ctor_string>
(gdb) x/30i 0x7ffff2bd3200
0x7ffff2bd3200 <System_OutOfMemoryException__ctor_string>: push %r14
0x7ffff2bd3202 <System_OutOfMemoryException__ctor_string+2>: push %rbx
0x7ffff2bd3203 <System_OutOfMemoryException__ctor_string+3>: push %rax
0x7ffff2bd3204 <System_OutOfMemoryException__ctor_string+4>: mov %rsi,%r14
0x7ffff2bd3207 <System_OutOfMemoryException__ctor_string+7>: mov %rdi,%rbx
0x7ffff2bd320a <System_OutOfMemoryException__ctor_string+10>: cmpq $0x0,0xb8c346(%rip) # 0x7ffff375f558 <mono_aot_mscorlib_llvm_got+56>
0x7ffff2bd3212 <System_OutOfMemoryException__ctor_string+18>: je 0x7ffff2bd321a <System_OutOfMemoryException__ctor_string+26>
0x7ffff2bd3214 <System_OutOfMemoryException__ctor_string+20>: callq *0xb8c3ee(%rip) # 0x7ffff375f608 <mono_aot_mscorlib_llvm_got+232>
=> 0x7ffff2bd321a <System_OutOfMemoryException__ctor_string+26>: mov %rbx,%rdi
0x7ffff2bd321d <System_OutOfMemoryException__ctor_string+29>: callq 0x7ffff33109c8 <plt_System_Exception_Init>
0x7ffff2bd3222 <System_OutOfMemoryException__ctor_string+34>: lea 0x18(%rbx),%rax
0x7ffff2bd3226 <System_OutOfMemoryException__ctor_string+38>: mov %r14,0x18(%rbx)
0x7ffff2bd322a <System_OutOfMemoryException__ctor_string+42>: shr $0x9,%eax
0x7ffff2bd322d <System_OutOfMemoryException__ctor_string+45>: mov 0xb8c2fc(%rip),%rcx # 0x7ffff375f530 <mono_aot_mscorlib_llvm_got+16>
0x7ffff2bd3234 <System_OutOfMemoryException__ctor_string+52>: movb $0x1,(%rcx,%rax,1)
0x7ffff2bd3238 <System_OutOfMemoryException__ctor_string+56>: movl $0x80131501,0x60(%rbx)
0x7ffff2bd323f <System_OutOfMemoryException__ctor_string+63>: movl $0x8007000e,0x60(%rbx)
0x7ffff2bd3246 <System_OutOfMemoryException__ctor_string+70>: add $0x8,%rsp
0x7ffff2bd324a <System_OutOfMemoryException__ctor_string+74>: pop %rbx
0x7ffff2bd324b <System_OutOfMemoryException__ctor_string+75>: pop %r14
0x7ffff2bd324d <System_OutOfMemoryException__ctor_string+77>: retq
0x7ffff2bd324e: nop
0x7ffff2bd324f: nop
0x7ffff2bd3250 <System_OutOfMemoryException__ctor_string_System_Exception>: push %r15
0x7ffff2bd3252 <System_OutOfMemoryException__ctor_string_System_Exception+2>: push %r14
0x7ffff2bd3254 <System_OutOfMemoryException__ctor_string_System_Exception+4>: push %rbx
0x7ffff2bd3255 <System_OutOfMemoryException__ctor_string_System_Exception+5>: mov %rdx,%r14
0x7ffff2bd3258 <System_OutOfMemoryException__ctor_string_System_Exception+8>: mov %rsi,%r15
0x7ffff2bd325b <System_OutOfMemoryException__ctor_string_System_Exception+11>: mov %rdi,%rbx
0x7ffff2bd325e <System_OutOfMemoryException__ctor_string_System_Exception+14>: cmpq $0x0,0xb8c2f2(%rip) # 0x7ffff375f558 <mono_aot_mscorlib_llvm_got+56>
(gdb)
; Function Attrs: uwtable
define hidden monocc void @System_OutOfMemoryException__ctor_string(i64* %this, i64* %arg_message) #4 gc "mono" {
BB0:
br label %BB3
BB3: ; preds = %BB0
br label %BB2
BB2: ; preds = %BB3
notail call monocc void @System_SystemException__ctor_string(i64* %this, i64* %arg_message)
%0 = bitcast i64* %this to i32*
%1 = getelementptr i32, i32* %0, i32 24
store volatile i32 -2147024882, i32* %1
br label %BB1
BB1: ; preds = %BB2
ret void
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment