Skip to content

[mono] Assertion at sgen-stw.c:77, condition not met #76805

Closed
@ayakael

Description

@ayakael

Description

When building Fsharp (commit 430d645d778ec0db10ad7ad0b02de9fab3ce5647) with mono-flavored runtime (commit 06aceb7 - .net 7-rc1), I've run into this error:

 Microsoft (R) F# Compiler version 12.0.5.0 for F# 7.0 (TaskId:260)
                     Copyright (c) Microsoft Corporation. All Rights Reserved. (TaskId:260)
                     Stack overflow in unmanaged: IP: 0x3ff8c9bc8c0, fault addr: 0x3ffcc5e7000 (TaskId:260)
                     Real:  0.4 Realdelta:  0.4 Cpu:  0.6 Cpudelta:  0.3 Mem:  88 G0:  10 G1:  1 G2:  1 [Import mscorlib and FSharp.Core.dll] (TaskId:260)
                     Real:  1.5 Realdelta:  1.1 Cpu:  2.1 Cpudelta:  1.5 Mem: 146 G0:  41 G1:  2 G2:  2 [Parse inputs] (TaskId:260)
                     Real:  1.5 Realdelta:  0.0 Cpu:  2.1 Cpudelta:  0.0 Mem: 146 G0:   0 G1:  0 G2:  0 [Import non-system references] (TaskId:260)
                     * Assertion at /var/build/dotnet7/tefsharp.logsting/dotnet7-stage0/src/dotnet-v7.0.100-rc.1.22431.12/src/runtime/src/mono/mono/metadata/sgen-stw.c:77, condition `info->client_info.stack_start >= info->client_info.info.stack_start_limit && info->client_info.stack_start < info->client_info.info.stack_end' not met (TaskId:260)

Reproduction Steps

Build fsharp with mono flavored runtime in linux-musl environment

Expected behavior

Build should pass

Actual behavior

Build fails with error

Regression?

Not a regression, confirmed existing on dotnet 6.0.9

Known Workarounds

None found

Configuration

dotnet --info

.NET SDK:
 Version:   7.0.100-rc.1.22431.12
 Commit:    cb14812a5c

Runtime Environment:
 OS Name:     alpine
 OS Version:  3.17_alpha20220809
 OS Platform: Linux
 RID:         linux-musl-s390x
 Base Path:   /home/build/dotnet7/testing/dotnet7-stage0/src/bootstrap/sdk/7.0.100-rc.1.22431.12/

Host:
  Version:      7.0.0-rc.1.22426.10
  Architecture: s390x
  Commit:       N/A

.NET SDKs installed:
  7.0.100-rc.1.22431.12 [/home/build/dotnet7/testing/dotnet7-stage0/src/bootstrap/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.0-rc.1.22427.2 [/home/build/dotnet7/testing/dotnet7-stage0/src/bootstrap/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.0-rc.1.22426.10 [/home/build/dotnet7/testing/dotnet7-stage0/src/bootstrap/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Other information

Seems to the same error as reported here

Full log: fsharp.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions