Skip to content

Seg Fault on Ubuntu 22 (using OpenSSL3); Does not exist on Ubuntu 20 (using OpenSSL 1.1) and Windows  #74345

Closed as not planned
@RobbieLePommie

Description

@RobbieLePommie

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Summary:

Periodic (seemingly random) but frequent Segmentation Faults when running code on Ubuntu 22; code is fine on Ubuntu 20 and Windows.

Details:

After upgrading Ubuntu 22; dotnet application results in Segmentation Fault.

A trace shows this appears to come immediately after a socket send message (sendmsg) command with .NET ThreadPool[40301]: segfault at 10 ip 00007fefec22c6b0 sp 00007fefbf7f9f80 error 4 in libcrypto.so.3[7fefec11d000+25d000] in the logs. Note: there are multiple prior successful sendmsg commands; so may more may not be related.

Trace shows it could be related to MD5()

StackTrace:

#0  0x00007fff2c5786b0 in MD5_Update () from /lib/x86_64-linux-gnu/libcrypto.so.3
#1  0x00007fff81296fa4 in ?? ()
#2  0x00007ffee177f850 in ?? ()
#3  0x0061005000740075 in ?? ()
#4  0x000000000003e59b in ?? ()
#5  0x00007ffff7955f28 in ?? () from /usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.NETCore.App/6.0.8/libcoreclr.so
#6  0x00007ffee1781c50 in ?? ()
#7  0x00007fff81c0dd58 in ?? ()
#8  0x00007fff81c0dd58 in ?? ()
#9  0x00007ffee177f850 in ?? ()
#10 0x00007fff81296fa4 in ?? ()
#11 0x00007ffee177f8f0 in ?? ()
#12 0x00007ffee177f8f0 in ?? ()
#13 0x00007fff81c0dd58 in ?? ()
#14 0x00007fff501de090 in ?? ()
#15 0x00007fff5185d760 in ?? ()
#16 0x00007fff00000001 in ?? ()
#17 0x00007fff501de038 in ?? ()
#18 0x0000000000000000 in ?? ()

Possible cause:

Similar bugs in other applications (e.g. FreeRADIUS/freeradius-server#4539) have been made because of an upgrade from OpenSSL1.1 to OpenSSL3 in Ubuntu 20 -> Ubuntu 22

Expected Behavior

No Seg Fault.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6.0.7 and 6.0.8

Anything else?

DotNet was in installed both through

First install:

dotnet --info

global.json file:
  Not found

Host:
  Version:      6.0.7
  Architecture: x64
  Commit:       0ec02c8c96

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.7 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

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

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

(Also happens after upgrade to 6.0.8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Securityneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions