-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
dotnet/coreclr
#22775Closed
Copy link
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIbugos-linuxLinux OS (any supported distro)Linux OS (any supported distro)
Milestone
Description
On a specific project the release build is passing incorrect parameters under linux-x64.
Platform: Linux x64. I tested on Debian GNU/Linux 9 (stretch) and Red Hat Enterprise Linux Server release
7.5 (Maipo).
Steps to replicate:
- Install .Net Core 2.2 on linux
- Use this project: https://github.com/abelykh0/NetCoreIssue
- Open the solution LinuxNetCoreBug.sln in Visual Studio 2017
- Right click on Publish project, Publish, then choose "Release linux-x64". Change the folder if needed (it is currently set to C:\Projects\Issue). Click Publish
- Run dotnet exec LinuxNetCoreBug.dll on linux
Here is the implementation of the abstract method (the implementation is in the LoadedLibrary assembly, which is loaded dynamically with Assembly.LoadFrom by the main program):
protected override IList<Guid> DbFileSystemQuery(
int pageNumber,
int pageSize,
ICollection<Guid> queryTargetId,
FileSystemQueryOptions queryOptions,
IList<Tuple<FileSystemQueryField, SortDirection>> orderBy,
ICollection<FileSystemQueryFilterRule> filter)
{
Console.WriteLine(orderBy.GetType().ToString());
Console.WriteLine(filter.GetType().ToString());
Console.WriteLine(orderBy == filter);
return null;
}
Actual result (on linux x64):
CoreLibrary.FileSystemQueryFilterRule[]
CoreLibrary.FileSystemQueryFilterRule[]
True
This output shows that the orderBy and filter parameters are the same object. However, this should be impossible because the types don’t even work out.
Expected result (works in debug build or in debug or release build in Windows):
System.Tuple`2[CoreLibrary.FileSystemQueryField,CoreLibrary.SortDirection][]
CoreLibrary.FileSystemQueryFilterRule[]
False
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIbugos-linuxLinux OS (any supported distro)Linux OS (any supported distro)