Skip to content

Instantly share code, notes, and snippets.

@filipnavara
filipnavara / WorkloadManifest.json
Last active November 6, 2023 17:02
Update workload to CI build
{
"microsoft.net.sdk.ios": "15.2.301-preview.13.5",
"microsoft.net.sdk.macos": "12.1.301-preview.13.5"
}
@filipnavara
filipnavara / gist:56c8cc6a0c122d6b4ceab6aa01fb7948
Created November 23, 2021 19:17
UiaDisconnectProvider Windows 11 crashes
04D7B8EC 7742eeee ntdll!WerpWaitForCrashReporting + 0x88, calling ntdll!NtWaitForMultipleObjects
04D7B930 7742e566 ntdll!RtlReportExceptionHelper + 0x220, calling ntdll!WerpWaitForCrashReporting
04D7B9B8 7742dfe1 ntdll!RtlReportException + 0x61, calling ntdll!RtlReportExceptionHelper
04D7B9D4 77459e0d ntdll!RtlReportFatalFailure + 0x3a, calling ntdll!RtlReportException
04D7B9E4 773e8e52 ntdll!_EH4_CallFilterFunc + 0x12
04D7B9F8 773e87b0 ntdll!_except_handler4_common + 0x80, calling ntdll!_EH4_CallFilterFunc
04D7BA24 773ecd50 ntdll!_except_handler4 + 0x20, calling ntdll!_except_handler4_common
04D7BA44 774085f2 ntdll!ExecuteHandler2 + 0x26
04D7BA68 774085c4 ntdll!ExecuteHandler + 0x24, calling ntdll!ExecuteHandler2
04D7BA8C 773d8fb5 ntdll!RtlDispatchException + 0x143, calling ntdll!RtlpExecuteHandlerForException
using System;
using System.Diagnostics;
using System.IO;
namespace bunzip
{
public class BZip2InputStream : Stream
{
bunzip_data bunzip;
@filipnavara
filipnavara / NuGet.config
Last active October 13, 2020 16:32
TestApp Mono Runtime
<configuration>
<!-- Don't use any higher level config files.
Our builds need to be isolated from user/machine state -->
<fallbackPackageFolders>
<clear />
</fallbackPackageFolders>
<packageSources>
<clear />
<!--
'src/test/PrepareTestAssets/PrepareTestAssets.proj' generates a NuGet.config file using this
using System;
public class C
{
public static bool ThirdPartyBuggyFunction(string randomParameter)
{
try
{
return randomParameter[0] == '/';
}
using System.Collections.Generic;
partial class Frameworks {
readonly HashSet<string> iosframeworks = new HashSet<string> {"Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "Foundation", "GameKit", "Network", "SceneKit", "SoundAnalysis", "SpriteKit", "AVKit", "Accounts", "AdSupport", "AddressBook", "AddressBookUI", "ARKit", "AssetsLibrary", "AudioToolbox", "AudioUnit", "BackgroundTasks", "BusinessChat", "CallKit", "CarPlay", "CFNetwork", "ClassKit", "CloudKit", "Contacts", "ContactsUI", "CoreAnimation", "CoreAudioKit", "CoreGraphics", "CoreHaptics", "CoreImage", "CoreLocation", "CoreMIDI", "CoreMotion", "CoreNFC", "CoreSpotlight", "CoreTelephony", "CoreText", "DeviceCheck", "EventKit", "EventKitUI", "ExternalAccessory", "FileProvider", "FileProviderUI", "GLKit", "GameController", "GameplayKit", "HealthKit", "HealthKitUI", "HomeKit", "IdentityLookup", "IdentityLookupUI", "ImageIO", "Intents", "IntentsUI",
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0242DF95-43DB-4690-8C51-A0F3BCAA662F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WinRTApi</RootNamespace>

##[section]Starting: Compare results (baseline: CoreCLR, diff: Mono+LLVM)

Task : Command line Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows Version : 2.151.2 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line

Generating script. ========================== Starting Command Output ===========================

MethodTable* GCToEEInterface::GetFreeObjectMethodTable()
{
if (!array_fill_vtable) {
static char _vtable[sizeof(MonoVTable)+8];
MonoVTable* vtable = (MonoVTable*) ALIGN_TO((size_t)_vtable, 8);
gsize bmap;
vtable->klass = mono_class_create_array_fill_type ();
bmap = 0;
*** Unoptimized LLVM IR for (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object ***
; Function Attrs: noinline uwtable
define monocc i64* @"(wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)"(i64* %arg_this, i64 %arg_params, i64 %arg_exc, i64 %arg_method) #0 personality i32 (...)* @mono_personality {
BB0:
%0 = alloca i64, align 8
%1 = alloca i64, align 8
%2 = alloca i64*, align 1
%3 = alloca i64*, align 1
%4 = alloca i64*, align 1