Skip to content

Instantly share code, notes, and snippets.

@lewurm
lewurm / .gitignore
Last active June 30, 2022 08:50
Reproducer for https://openradar.appspot.com/FB10500605 / rdar://FB10500605
driver
sub
; ModuleID = 'hello'
source_filename = "ld-temp.o"
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx12.0.0"
%0 = type opaque
%struct._class_t = type { %struct._class_t*, %struct._class_t*, %struct._objc_cache*, i8* (i8*, i8*)**, %struct._class_ro_t* }
%struct._objc_cache = type opaque
%struct._class_ro_t = type { i32, i32, i32, i8*, i8*, %struct.__method_list_t*, %struct._objc_protocol_list*, %struct._ivar_list_t*, i8*, %struct._prop_list_t* }
%struct.__method_list_t = type { i32, i32, [0 x %struct._objc_method] }
@lewurm
lewurm / .gitignore
Last active December 8, 2022 11:52
Fun with Rosetta 2 and atomic instructions
ua_*
runner
# newfailures.txt
compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/NativeCallTest.java
gtest/GTestWrapper.java
runtime/CompressedOops/CompressedClassPointers.java
@lewurm
lewurm / launch.sh
Last active December 22, 2020 15:49
launch.sh port of https://gist.github.com/tanmayb123/d55b16c493326945385e815453de411a for Windows+AArch64 (run it via WSL1)
UUID=$(python3 getuuid.py $1 $2)
USERNAME=$(python3 getusername.py $1 $2)
AUTH_TOKEN=$(python3 getauthtoken.py $1 $2)
cp launchscript launchscript2
echo param --gameDir >> launchscript2
echo param `wslpath -w "$(pwd)"/minecraft` >> launchscript2
echo param --assetsDir >> launchscript2
echo param `wslpath -w "$(pwd)"/assets` >> launchscript2
echo param --accessToken >> launchscript2
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000109a56f10, pid=74073, tid=24579
#
# JRE version: OpenJDK Runtime Environment (16.0) (slowdebug build 16-internal+0-adhoc.lewurm.openjdk-jdk)
# Java VM: OpenJDK 64-Bit Server VM (slowdebug 16-internal+0-adhoc.lewurm.openjdk-jdk, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0xa56f10] AdapterHandlerEntry::get_i2c_entry() const+0x14
#
c.dylib
c.o

Keybase proof

I hereby claim:

  • I am lewurm on github.
  • I am lewurm (https://keybase.io/lewurm) on keybase.
  • I have a public key ASCntjtvj4Eie4oZ7i1dmDK70xNOhV0IdgZO_yot9zjI9wo

To claim this, I am signing this object:

commit 36e68c6ccb7349a1298fb7551e5da0581fbf1a40
Author: Bernhard Urban <lewurm@gmail.com>
Date: Tue Apr 16 13:54:25 2019 +0200
[android sdk] package wrap.sh
diff --git a/sdks/android/Makefile b/sdks/android/Makefile
index dfecc7e4ab9..6894224d171 100644
--- a/sdks/android/Makefile
+++ b/sdks/android/Makefile
Oct 19 10:14:28 iPhone7 backboardd(IOKit)[56] <Notice>: <private> set batch interval 16667 for <private>
at <unknown> <0xffffffff>
at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (intptr,intptr,intptr) [0x0000b] in <0ee042f2af524abf992df069e69c9514>:0
at Foundation.NSRunLoop.RunUntil (Foundation.NSDate) [0x0001f] in /Users/lewurm/work/xiinterp/xamarin-macios/src/build/mac/mobile/Foundation/NSRunLoop.g.cs:252
at Xamarin.Utils.NSRunLoopExtensions.RunUntilEvent (Foundation.NSRunLoop,System.Threading.ManualResetEvent,System.Nullable`1<System.TimeSpan>) [0x00027] in /Users/lewurm/work/xiinterp/maciostools/Xamarin.Hosting/Xamarin.Utils/Extensions.cs:16
at Xamarin.Hosting.Services.RunMainLoopUntil (System.Threading.ManualResetEvent) [0x00001] in /Users/lewurm/work/xiinterp/maciostools/Xamarin.Hosting/Xamarin.Hosting/Services.cs:1367
at Xamarin.Hosting.Logger.LogToConsole (string) [0x0002c] in /Users/lewurm/work/xiinterp/maciostools/Xamarin.Hosting/Xamarin.Hosting/Logger.cs:1