@lambdageek@mastodon.social avatar

lambdageek

@lambdageek@mastodon.social

λgeek: Aleksey Kliger. I ❤ types, and 🚲&🚃 infra. Ban 🚗🚛.
I work on the .NET runtime at Microsoft but do not speak for them. Previously Xamarin.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mcc, to random
@mcc@mastodon.social avatar

I am (unfortunately) on a Macintosh. A program is segfaulting, and I need to run in a debugger to find out why. I run lldb executable-name, and then "run". It prints:

error: the platform is not currently connected.

I do not know what this means. Googling for this error message turns up various things involving iOS and XCode, but I am not using either of those things, I am using lldb at the command line.

What should I do?

lambdageek,
@lambdageek@mastodon.social avatar

@mcc the "dotnet" executable does a bunch of different jobs. assuming you just want to do something like:
lldb dotnet -- ./bin/Debug/..../MyApp.dll

that should work just fine.

I would actually start by doing something like:
mkdir MyApp && cd MyApp
dotnet new console
dotnet run # should print "Hello World"
lldb dotnet -- ./bin/Debug/net8.0/MyApp.dll

and just verify that LLDB does a reasonable thing.

1/?

lambdageek,
@lambdageek@mastodon.social avatar

@mcc
Once you're debugging a real program, you might want to disable lldb breaking on SIGUSR1 (see step 5 here
https://github.com/dotnet/runtime/blob/main/docs/workflow/debugging/coreclr/debugging-runtime.md#debugging-coreclr-with-lldb

2/?

lambdageek,
@lambdageek@mastodon.social avatar

@mcc

If you need debug symbols for CoreCLR itself, install the "dotnet-symbol" tool (https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-symbol)

and then do

dotnet symbol /path/to/libcoreclr.dylib

that will dump a dsym .dbg file into your current directory.

then inside lldb (once you are paused with coreclr loaded) you do

(lldb) add-dsym /path/to/libcoreclr.dylib.dbg

3/?

lambdageek,
@lambdageek@mastodon.social avatar

@mcc if lldb just refuses to attach for some reason, sometimes it helps to ad-hoc codesign the affected binary

sudo codesign -s - -f /usr/local/share/dotnet

(note, I would reinstall dotnet when you're done with the ad-hoc binary. I'm not sure if there's any issue running an ad-hoc signed dotnet, but it seems better to get back to a clean slate)

lambdageek,
@lambdageek@mastodon.social avatar

@mcc Hey... is... is your shell x86_64 (Rosetta) for some reason?

I can repro your failure mode if I do this:

(I start in my normal terminal)
$ arch
arm64
$ arch -x86_64 zsh
$ arch
i386
$ lldb ./bin/Debug/net8.0/abcd
(lldb) r
error: the platform is not currently connected

so um... maybe try this:
$ arch -arm64 zsh
$ lldb ...
(lldb) r

lambdageek,
@lambdageek@mastodon.social avatar

@mcc also try running dotnet --info
and see if there's anything suspicious in the "Runtime Environment" section of the output or the "Other Architectures Found" section (if you have one)

Also
$ file which dotnet
/usr/local/share/dotnet/dotnet: Mach-O 64-bit executable arm64

streetsblogmass, to boston
@streetsblogmass@urbanists.social avatar
lambdageek,
@lambdageek@mastodon.social avatar

@streetsblogmass

  1. So when do we start organizing for contra-flow lane on Boylston?
  2. Still nothing on Charles St 😭
mcc, (edited ) to random
@mcc@mastodon.social avatar

Programming languages that practice the doctrine of Anattā: C++, C#, Java, JavaScript

Programming languages that do not practice the doctrine of Anattā: Lua, Ruby, Objective-C, OCaml, Swift, Rust

Programming languages which are ambiguous with respect to the doctrine of Anattā: Python

lambdageek,
@lambdageek@mastodon.social avatar

@mcc now do CLOS

mcc, to random
@mcc@mastodon.social avatar

Hey. Question.

What the fuck is this?

Is my phone doing this? If so, how long has it been doing it? Also, why wasn't I informed? Also, why can't I find a setting to turn it off?

lambdageek,
@lambdageek@mastodon.social avatar

@mcc seems to be off by default on my pixel phone. (At least I don't remember turning it off myself and it was off when I went to find it just now)

lambdageek, to Bluey
@lambdageek@mastodon.social avatar

Happy "The Sign" day to all who celebrate

mcc, (edited ) to random
@mcc@mastodon.social avatar

Holy fuck I have just discovered that the phone app in Android 13 [EDIT: no; see below] vibrates when an outgoing call connects

An outgoing call

There is no way to turn this off except to disable all vibration on your phone

So you make a phone call, you put it up to your ear, and then this thing that you've put up to the side of your face vibrates intensely. It is the most deeply unpleasant, unnecessary thing. I already knew I was making a fucking phone call I pressed the button

lambdageek,
@lambdageek@mastodon.social avatar

@gsuberland @mcc I wonder if this "feature" is actually good UX for people who do that. You dial a number, you hold the phone flat - you can't see the screen anymore. The person on the other end of the call is silent. You're silent. No idea that a call has happened. So the phone vibrates to alert you that the call has started.

Of course they can also sense if there's a person pressed up against the screen and NOT do that.

mcc, to random
@mcc@mastodon.social avatar

Tag yourself

lambdageek,
@lambdageek@mastodon.social avatar

@mcc 11, 8 and 2, kind of. Leaving the USSR is a whole thing...

mcc, to random
@mcc@mastodon.social avatar

Unity (the game engine) is just really ruining my week. This program is crashing in a way that the actual Unity process (standalone exe or the Editor) just crashes, hard C crashes inside Unity's closed source code. I'm reduced to turning objects on and off and seeing the minimal set of objects to cause a crash, but I still have no idea what [my] C# code was doing before [Unity's] C++ code crashed!

I wish I could get, like… a trace of every unmanaged to managed transition. Every C# entry point.

lambdageek,
@lambdageek@mastodon.social avatar

@mcc
It's frustrating that this is almost solvable with Mono (so... Editor).

Mono has a --trace=NAME_OR_GLOB option. You can pass options to mono through environment variables (so potentially even if Unity doesn't expose the functionality). unmanaged-to-managed transitions are totally a thing that we can see.

But unmanaged-to-managed wrappers have a name that the --trace=NAME_OR_GLOB option can't parse properly. It's probably not too hard to make it work. but... we never did.

lambdageek, to markdown
@lambdageek@mastodon.social avatar

Today I proposed we use YAML for something at work.

I feel like I am the cause of my own ruin

lambdageek,
@lambdageek@mastodon.social avatar

@mcc like what? i'm genuinely curious. it didn't seem like the base spec of it is that bloated. maybe I just don't know it enough.

is it the newline continuation stuff for freeform text?

lambdageek,
@lambdageek@mastodon.social avatar

@mcc oh no!

mcc, to random
@mcc@mastodon.social avatar

Here is a product called "Veggie Love" from an establishment named "Leaf Doner". Tell me if there is anything that stands out as unusual to you about it

lambdageek,
@lambdageek@mastodon.social avatar

@mcc ah the "Leaf Done-'er" each one lovingly made with real meat by a real Toronto Maple Leaf

Migueldeicaza, to random
@Migueldeicaza@mastodon.social avatar

An important Godot for iPad milestone.

These are two instances of a full-blown Godot running side-by-side in the same process.

The next step on the virtualization idea that I shared on the blog post [1]

But this time, rather than being one-at-a-time, they are simultaneous.

This was necessary to support debugging of Godot apps on the iPad (and soon Vision).

[1] https://blog.la-terminal.net/making-godot-viable-on-ipados/

video/mp4

lambdageek,
@lambdageek@mastodon.social avatar

@Migueldeicaza I wonder if instead of making everything into instance variables, you could mark the important globals to go into a particular segment and then play virtual memory tricks with mmap. Probably wouldn't work for two simultaneous instances, but might be ok for switching between editor and game.

mcc, to random
@mcc@mastodon.social avatar

Google is changing the rules for what GMail will accept in terms of incoming email. This is either fine or alarming, I don't have enough information right now to have an opinion.

Google is introducing this major GMail policy change on April 1. This is one of the worst ideas I've ever heard.

https://www.forbes.com/sites/daveywinder/2024/03/19/new-mass-gmail-rejections-will-start-in-14-days-google-says/?sh=5eea77a62cc0

lambdageek,
@lambdageek@mastodon.social avatar

@mcc So this will break FOSS mailing lists?

lambdageek,
@lambdageek@mastodon.social avatar

@mcc looking at the archives of the GNU Mailman mailing list I don't see anything about it (but of course it hasn't rolled out yet, so who knows)

lambdageek,
@lambdageek@mastodon.social avatar

@jason @mcc yea that's exactly my question. it seems like this is about DKIM, SPF and RFC 8058.

https://mastodon.social/@lambdageek/112128740571863098

lzg, to random
@lzg@mastodon.social avatar

deleted_by_author

  • Loading...
  • lambdageek,
    @lambdageek@mastodon.social avatar

    @lzg ok. But which one is more fun though

    lambdageek, to ADHD
    @lambdageek@mastodon.social avatar

    Took a day off to do taxes.

    Doing a bunch of other chores and procrastinating on taxes.

    Also: it's ridiculous that I need to devote time to doing taxes.

    lambdageek,
    @lambdageek@mastodon.social avatar

    oh for fuck's sake...
    "we didn't bother to implement this part of your state return in our website, so you'll have to pay us money to have a tax accountant review your shit. or we can delete all the info you entered so far in your state return"

    extortion

    mcc, to random
    @mcc@mastodon.social avatar

    At some point semi-recently I learned what the actual definition of a "third world" country is/was and now every single time I see that phrase used I try to test against whether it's being used according to the definition and I get annoyed

    lambdageek,
    @lambdageek@mastodon.social avatar

    @mcc I mean... It's an <the question is ill-posed>-world country if you want to get pedantic. It did not exist when USSR did

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • tester
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • GTA5RPClips
  • JUstTest
  • cisconetworking
  • InstantRegret
  • khanakhh
  • cubers
  • everett
  • Durango
  • tacticalgear
  • Leos
  • modclub
  • normalnudes
  • provamag3
  • anitta
  • lostlight
  • All magazines