Skip to content

Realm.open() crashes compiler #8761

@tsheninger-c4

Description

@tsheninger-c4

How frequently does the bug occur?

Always

Description

I use the line:
realm = try await Realm.open(configuration: config)
which should be calling
public static func open(configuration: Realm.Configuration = .defaultConfiguration, _isolation actor: isolated any Actor = #isolation, downloadBeforeOpen: OpenBehavior = .never) async throws -> Realm

When I build, the compiler always crashes:
Command SwiftCompile failed with a nonzero exit code

Here is more output from SwiftCompile:
Invalid bitcast %83 = bitcast i64 %77 to ptr, !dbg !254 Invalid bitcast %84 = bitcast i64 %78 to ptr, !dbg !254

Stacktrace & log output

Can you reproduce the bug?

Always

Reproduction Steps

Just build with Xcode 16.3.

I don't understand Atlas Services question.

Version

Problem happens with 10.54.4 and also with 20.0.2

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Mac OS 15.4.1

Build environment

ProductName: macOS
ProductVersion: 15.4.1
BuildVersion: 24E263

/Applications/Xcode.app/Contents/Developer
Xcode 16.3
Build version 16E140

/usr/local/bin/pod
1.11.3
(not in use here)

/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin24)

/usr/local/bin/carthage
0.38.0
(not in use here)

/usr/bin/git
git version 2.39.5 (Apple Git-154)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tsheninger-c4

        Issue actions

          Realm.open() crashes compiler · Issue #8761 · realm/realm-swift