Skip to content

Compiled dotnet core clr don't work #11471

Closed

Description

@johnww89

Hi,
i am using linux dotnet core 2.0.9 and i compile dotnet clrcore branch origin/release/2.0.0 the compile success. then i copy libcoreclr.so to replace the libcoreclr.so in 2.0.9 after that i run dotnet run to run a project then an error occur:
Failed to initialize CoreCLR, HRESULT: 0x80004005

Activity

  1. jkotas commented on Nov 14, 2018

    @jkotas
    Member

    Try replacing all files produced by the coreclr build, not just libcoreclr.so.. Binaries produced by coreclr build are tightly coupled and it is best to replace all of them to get a consistent set.

    The most likely reason why you see the error is mismatch between debug and release flavor. ./build.sh builds debug flavor by default, but the shipping coreclr flavor is release.

  2. johnww89 commented on Nov 14, 2018

    @johnww89
    Author

    Hi jkotas,
    i rebuild the clr using release then copy everything to the installed clr directory, but running dotnet still have error. dotnet exit at once without any error message.
    i copy the binary like:
    root@w-VirtualBox:~/coreclr/bin/Product/Linux.x64.Release# cp

  3. johnww89 commented on Nov 14, 2018

    @johnww89
    Author

    actually it is a segmentation fault. the error message is:

    Program received signal SIGSEGV, Segmentation fault.
    HndWriteBarrier (handle=, objref=)
    at /root/coreclr/src/gc/handletable.cpp:832
    832 /root/coreclr/src/gc/handletable.cpp: No such file or directory.

  4. jkotas commented on Nov 14, 2018

    @jkotas
    Member

    What does the rest of the stacktrace look like?

  5. johnww89 commented on Nov 15, 2018

    @johnww89
    Author

    (gdb) bt
    #0 HndWriteBarrier (handle=, objref=)
    at /root/coreclr/src/gc/handletable.cpp:832
    dotnet/coreclr#1 HndAssignHandle (handle=, objref=)
    at /root/coreclr/src/gc/handletable.inl:32
    dotnet/coreclr#2 HndCreateHandle (hTable=, uType=2, object=0x7ffa6ffff048,
    lExtraInfo=) at /root/coreclr/src/gc/handletable.cpp:348
    dotnet/coreclr#3 0x00007ffff61a1ea2 in CreateHandle (store=0x6b02a0,
    object=0x7ffff6835f00 EventPipe::s_configCrst+64)
    at /root/coreclr/src/vm/gchandleutilities.h:73
    dotnet/coreclr#4 CreateHandle (object=0x7ffff6835f00 EventPipe::s_configCrst+64,
    this=) at /root/coreclr/src/vm/appdomain.hpp:1261
    dotnet/coreclr#5 SystemDomain::CreatePreallocatedExceptions (
    this=0x7ffff6837620 <g_pSystemDomainMemory>)
    at /root/coreclr/src/vm/appdomain.cpp:2335
    dotnet/coreclr#6 0x00007ffff61a227e in SystemDomain::Init (
    this=0x7ffff6837620 <g_pSystemDomainMemory>)
    at /root/coreclr/src/vm/appdomain.cpp:2465
    dotnet/coreclr#7 0x00007ffff60aec4d in EEStartupHelper (fFlags=)
    at /root/coreclr/src/vm/ceemain.cpp:1050
    dotnet/coreclr#8 0x00007ffff60adee1 in operator() (this=,
    pfFlags=) at /root/coreclr/src/vm/ceemain.cpp:1236
    dotnet/coreclr#9 EEStartup (fFlags=) at /root/coreclr/src/vm/ceemain.cpp:1238
    dotnet/coreclr#10 0x00007ffff60adde9 in EnsureEEStarted (flags=COINITEE_DEFAULT)
    ---Type to continue, or q to quit---
    at /root/coreclr/src/vm/ceemain.cpp:374
    dotnet/coreclr#11 0x00007ffff5fef809 in Start (this=)
    at /root/coreclr/src/vm/corhost.cpp:242
    dotnet/coreclr#12 CorHost2::Start (this=0x6aa2f0) at /root/coreclr/src/vm/corhost.cpp:189
    dotnet/coreclr#13 0x00007ffff5fca879 in coreclr_initialize (exePath=,
    appDomainFriendlyName=, propertyCount=10,
    propertyKeys=, propertyValues=,
    hostHandle=0x7fffffffc9d0,
    domainId=0x7ffff6835f00 EventPipe::s_configCrst+64)
    at /root/coreclr/src/dlls/mscoree/unixinterface.cpp:216
    dotnet/coreclr#14 0x00007ffff68eb326 in coreclr::initialize(char const*, char const*, char const**, char const**, int, void**, unsigned int*) ()
    from /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.9/libhostpolicy.so
    dotnet/coreclr#15 0x00007ffff68dfb0b in run(arguments_t const&) ()
    from /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.9/libhostpolicy.so
    dotnet/coreclr#16 0x00007ffff68e0772 in corehost_main ()
    from /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.9/libhostpolicy.so
    dotnet/coreclr#17 0x00007ffff6b83cbf in ?? ()
    from /usr/share/dotnet/host/fxr/2.1.0-rc1/libhostfxr.so
    dotnet/coreclr#18 0x00007ffff6b8f36c in ?? ()
    from /usr/share/dotnet/host/fxr/2.1.0-rc1/libhostfxr.so
    dotnet/coreclr#19 0x00007ffff6b904c5 in ?? ()
    from /usr/share/dotnet/host/fxr/2.1.0-rc1/libhostfxr.so
    ---Type to continue, or q to quit---
    dotnet/coreclr#20 0x00007ffff6b8fa39 in ?? ()
    from /usr/share/dotnet/host/fxr/2.1.0-rc1/libhostfxr.so
    dotnet/coreclr#21 0x00007ffff6b83f0c in hostfxr_main_startupinfo ()
    from /usr/share/dotnet/host/fxr/2.1.0-rc1/libhostfxr.so
    dotnet/coreclr#22 0x000000000040ac74 in ?? ()
    dotnet/coreclr#23 0x000000000040af05 in ?? ()
    dotnet/coreclr#24 0x00007ffff6df4ec5 in __libc_start_main (main=0x40ae60, argc=2,
    argv=0x7fffffffde38, init=, fini=,
    rtld_fini=, stack_end=0x7fffffffde28) at libc-start.c:287
    #3858 0x0000000000408a54 in _start ()

    this is the whole stacktrace.
    832 line of handletable.cpp is
    if (*pClumpAge != 0) // Perf optimization: if clumpAge is 0, nothing more to do

  6. johnww89 commented on Nov 15, 2018

    @johnww89
    Author

    i copy the compiled binary to installed folder like:
    root@w-VirtualBox:~/coreclr/bin/Product/Linux.x64.Release# cp * /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.9/ -r

  7. janvorli commented on Nov 15, 2018

    @janvorli
    Member

    @johnww89 what Linux distro are you running on? And does the original unchanged dotnet work fine for you there?

  8. johnww89 commented on Nov 15, 2018

    @johnww89
    Author

    Hi Janvorli,
    i am using ubuntu 14.04 and dotnet core clr is branch origin/release/2.0.0
    the original file installed by apt-get works fine.

  9. janvorli commented on Nov 15, 2018

    @janvorli
    Member

    Ok, to make sure you are building from exactly the same source tree as the stuff in the package was built from, please do the following (with the original binaries in place):

    strings /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.9/libcoreclr.so | grep "@(#)"
    

    You'll get something like

    @(#)Version 4.6.26614.01 @BuiltBy: root-/tmp/tmp6162051e84024d5a8c0f4c6b6aef460a.exec.cmd: line 2: hostname: command not found @Commit: a536e7eec55c538c94639cefe295aa672996bf9b
    

    See the commit hash at the end of the result. Now in your coreclr repo clone, run

    git checkout  a536e7eec55c538c94639cefe295aa672996bf9b
    

    (replace the commit hash in the above command if your one is different)

    Now your sources will exactly match the ones from which we have built the stuff.

    Then delete the whole bin directory in your coreclr clone and run ./build.sh release there. After that, do the copy you did and things should work.
    Actually, I have one more idea on what could be wrong. What clang version are you compiling it with? The build process reports that early after running the build.sh.

  10. johnww89 commented on Nov 16, 2018

    @johnww89
    Author

    Hi Jan,
    i checkout the version like you said. but its commit comment is "2.0.8 stable".

    i recompile it and copy everything to the installed folder but still can not run, the same result.
    the clang i used is 3.5 if i use other version the build.sh will shows "Please install clang-3.5 before running this script" then exit.

  11. janvorli commented on Nov 16, 2018

    @janvorli
    Member

    @johnww89 maybe the clang 3.5 doesn't work anymore. We have not been using it for quite some time. The build scripts can use any clang upto version 7, you just need to pass in an extra argument to the build.sh. So, for example, if you want to build with clang 3.9, which is the version we use for our official builds for x64, you would use ./build.sh release clang3.9

    Thanks,

    Jan

  12. johnww89 commented on Nov 16, 2018

    @johnww89
    Author

    @janvorli Hi, I use clang3.9 but still have this problem. i make sure there is no object left by clang3.5 by removing everything in coreclr/bin/ before recompile

  13. johnww89 commented on Nov 19, 2018

    @johnww89
    Author

    @janvorli, Hi, is there any runnable version that can use the compiled clr binary? i don't need any specific version, just any version.

  14. johnww89 commented on Nov 19, 2018

    @johnww89
    Author

    @janvorli is there any way to compile the coreclr to use. i need to compile it to check an issue of CLR. so any version is ok. so how do you compile and use coreclr? can you suggest me an environment to work?

  15. janvorli commented on Nov 19, 2018

    @janvorli
    Member

    I do it the way I've described several times a month to debug coreclr issues. So there must be something on your system or in your steps that is causing the troubles you have with it. It is true that I have not done it on Ubuntu 14.04 for about 6 months, since I've upgraded to Ubuntu 16.04. But Ubuntu 14.04 used to be my primary development system before.
    May be can try it in a little bit different way:

    • Publish your app using the unmodified dotnet tool (dotnet publish -r linux-x64)
    • Note the path that ends with "/publish/" that gets printed at the end of the publish step
    • Use strings libcoreclr.so | grep "@(#)" (replace the libcoreclr.so with full path to the above mentioned publish folder.
    • In your coreclr repo, use "git checkout" with the commit number that you got from the previous step.
    • Run ./build.sh release in there
    • Copy all the files from bin/Product/Linux.x64.Release/ to the publish folder of your app
    • cd into the publish folder
    • Run your app using its name (so, no dotnet run)
  16. johnww89 commented on Nov 20, 2018

    @johnww89
    Author

    i have tried at beggining that copy everything to the published folder of my app. but dotnet don't use the so under the published folder. it still use the one in /usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.6/
    i tried just now again it still do not use the so under published folder.

    but i copy every thing to /usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.6/ then run again dotnet it seems work. i will test further

  17. janvorli commented on Nov 20, 2018

    @janvorli
    Member

    but dotnet don't use the so under the published folder

    It does. Here is an example:

    dotnet new console
    The template "Console Application" was created successfully.
    
    Processing post-creation actions...
    Running 'dotnet restore' on /home/janvorli/test/testapp/testapp.csproj...
      Restoring packages for /home/janvorli/test/testapp/testapp.csproj...
      Generating MSBuild file /home/janvorli/test/testapp/obj/testapp.csproj.nuget.g.props.
      Generating MSBuild file /home/janvorli/test/testapp/obj/testapp.csproj.nuget.g.targets.
      Restore completed in 353.6 ms for /home/janvorli/test/testapp/testapp.csproj.
    
    Restore succeeded.
    
    janvorli@JANVORLI-UBUNTU2:~/test/testapp$ ~/dotnet2.0/dotnet publish -r linux-x64
    Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core
    Copyright (C) Microsoft Corporation. All rights reserved.
    
      Restoring packages for /home/janvorli/test/testapp/testapp.csproj...
      Restore completed in 450.57 ms for /home/janvorli/test/testapp/testapp.csproj.
      testapp -> /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/testapp.dll
      testapp -> /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/
    janvorli@JANVORLI-UBUNTU2:~/test/testapp$ cd /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/
    janvorli@JANVORLI-UBUNTU2:~/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish$ gdb ./testapp
    GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
    Copyright (C) 2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from ./testapp...(no debugging symbols found)...done.
    (gdb) b coreclr_initialize
    Function "coreclr_initialize" not defined.
    Make breakpoint pending on future shared library load? (y or [n]) y
    Breakpoint 1 (coreclr_initialize) pending.
    (gdb) r
    Starting program: /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/testapp
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7ffff4b26700 (LWP 10834)]
    [New Thread 0x7ffff4325700 (LWP 10835)]
    
    Thread 1 "testapp" hit Breakpoint 1, 0x00007ffff6141784 in coreclr_initialize ()
       from /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclr.so
    (gdb) info proc map
    process 10830
    Mapped address spaces:
    
              Start Addr           End Addr       Size     Offset objfile
                0x400000           0x416000    0x16000        0x0 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/testapp
                0x616000           0x617000     0x1000    0x16000 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/testapp
                0x617000           0x618000     0x1000    0x17000 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/testapp
                0x618000           0x66e000    0x56000        0x0 [heap]
          0x7fffe4000000     0x7fffe4021000    0x21000        0x0
          0x7fffe4021000     0x7fffe8000000  0x3fdf000        0x0
          0x7fffec000000     0x7fffec021000    0x21000        0x0
          0x7fffec021000     0x7ffff0000000  0x3fdf000        0x0
          0x7ffff3b25000     0x7ffff3b26000     0x1000        0x0
          0x7ffff3b26000     0x7ffff4326000   0x800000        0x0
          0x7ffff4326000     0x7ffff4327000     0x1000        0x0
          0x7ffff4327000     0x7ffff4b27000   0x800000        0x0
          0x7ffff4b27000     0x7ffff4b2e000     0x7000        0x0 /usr/lib/x86_64-linux-gnu/liburcu-cds.so.4.0.0
          0x7ffff4b2e000     0x7ffff4d2d000   0x1ff000     0x7000 /usr/lib/x86_64-linux-gnu/liburcu-cds.so.4.0.0
          0x7ffff4d2d000     0x7ffff4d2e000     0x1000     0x6000 /usr/lib/x86_64-linux-gnu/liburcu-cds.so.4.0.0
          0x7ffff4d2e000     0x7ffff4d2f000     0x1000     0x7000 /usr/lib/x86_64-linux-gnu/liburcu-cds.so.4.0.0
          0x7ffff4d2f000     0x7ffff4d36000     0x7000        0x0 /usr/lib/x86_64-linux-gnu/liburcu-bp.so.4.0.0
          0x7ffff4d36000     0x7ffff4f35000   0x1ff000     0x7000 /usr/lib/x86_64-linux-gnu/liburcu-bp.so.4.0.0
          0x7ffff4f35000     0x7ffff4f36000     0x1000     0x6000 /usr/lib/x86_64-linux-gnu/liburcu-bp.so.4.0.0
          0x7ffff4f36000     0x7ffff4f37000     0x1000     0x7000 /usr/lib/x86_64-linux-gnu/liburcu-bp.so.4.0.0
          0x7ffff4f37000     0x7ffff4f40000     0x9000        0x0 /usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0.0.0
          0x7ffff4f40000     0x7ffff5140000   0x200000     0x9000 /usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0.0.0
          0x7ffff5140000     0x7ffff5141000     0x1000     0x9000 /usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0.0.0
          0x7ffff5141000     0x7ffff5142000     0x1000     0xa000 /usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0.0.0
          0x7ffff5142000     0x7ffff5152000    0x10000        0x0
          0x7ffff5152000     0x7ffff51ac000    0x5a000        0x0 /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0.0.0
          0x7ffff51ac000     0x7ffff53ac000   0x200000    0x5a000 /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0.0.0
          0x7ffff53ac000     0x7ffff53af000     0x3000    0x5a000 /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0.0.0
          0x7ffff53af000     0x7ffff53b5000     0x6000    0x5d000 /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0.0.0
          0x7ffff53b5000     0x7ffff5408000    0x53000        0x0 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclrtraceptprovider.so
          0x7ffff5408000     0x7ffff5607000   0x1ff000    0x53000 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclrtraceptprovider.so
          0x7ffff5607000     0x7ffff5653000    0x4c000    0x52000 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclrtraceptprovider.so
          0x7ffff5653000     0x7ffff5654000     0x1000    0x9e000 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclrtraceptprovider.so
          0x7ffff5654000     0x7ffff5675000    0x21000        0x0 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
          0x7ffff5675000     0x7ffff5874000   0x1ff000    0x21000 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
          0x7ffff5874000     0x7ffff5875000     0x1000    0x20000 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
          0x7ffff5875000     0x7ffff5876000     0x1000    0x21000 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
          0x7ffff5876000     0x7ffff5886000    0x10000        0x0 /usr/lib/x86_64-linux-gnu/libunwind-x86_64.so.8.0.1
          0x7ffff5886000     0x7ffff5a85000   0x1ff000    0x10000 /usr/lib/x86_64-linux-gnu/libunwind-x86_64.so.8.0.1
          0x7ffff5a85000     0x7ffff5a86000     0x1000     0xf000 /usr/lib/x86_64-linux-gnu/libunwind-x86_64.so.8.0.1
          0x7ffff5a86000     0x7ffff5a87000     0x1000    0x10000 /usr/lib/x86_64-linux-gnu/libunwind-x86_64.so.8.0.1
          0x7ffff5a87000     0x7ffff5a95000     0xe000        0x0
          0x7ffff5a95000     0x7ffff5a99000     0x4000        0x0 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
          0x7ffff5a99000     0x7ffff5c98000   0x1ff000     0x4000 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
          0x7ffff5c98000     0x7ffff5c99000     0x1000     0x3000 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
          0x7ffff5c99000     0x7ffff5c9a000     0x1000     0x4000 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
          0x7ffff5c9a000     0x7ffff5ca6000     0xc000        0x0 /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1
          0x7ffff5ca6000     0x7ffff5ea5000   0x1ff000     0xc000 /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1
          0x7ffff5ea5000     0x7ffff5ea6000     0x1000     0xb000 /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1
          0x7ffff5ea6000     0x7ffff5ea7000     0x1000     0xc000 /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1
          0x7ffff5ea7000     0x7ffff5eb5000     0xe000        0x0
          0x7ffff5eb5000     0x7ffff5ebc000     0x7000        0x0 /lib/x86_64-linux-gnu/librt-2.23.so
          0x7ffff5ebc000     0x7ffff60bb000   0x1ff000     0x7000 /lib/x86_64-linux-gnu/librt-2.23.so
          0x7ffff60bb000     0x7ffff60bc000     0x1000     0x6000 /lib/x86_64-linux-gnu/librt-2.23.so
          0x7ffff60bc000     0x7ffff60bd000     0x1000     0x7000 /lib/x86_64-linux-gnu/librt-2.23.so
          0x7ffff60bd000     0x7ffff6769000   0x6ac000        0x0 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclr.so
          0x7ffff6769000     0x7ffff67a4000    0x3b000   0x6ac000 /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclr.so
    
    

    See the /home/janvorli/test/testapp/bin/Debug/netcoreapp2.0/linux-x64/publish/libcoreclr.so above.

  18. johnww89 commented on Nov 20, 2018

    @johnww89
    Author

    the difference i publish is that i didnot add "-r linux-x64" then the so file do not put in the publish folder.
    after publish there is a runable bin app and a app.dll
    when i run ./app it use the so under the published folder
    when i run dotnet app.dll it use so from other folder such as /home/w/.nuget/packages/runtime.linux-x64.microsoft.netcore.app/2.0.0/runtimes/linux-x64/native/libcoreclr.so
    the differnt run way will use different so. why will keep two run way. that is confused.

  19. janvorli commented on Nov 20, 2018

    @janvorli
    Member

    These are two different ways of publishing your app. The way with "-r linux-x64" means that you are publishing completely standalone app that doesn't need dotnet to be installed on the machine where you want to run that app. It contains all the dependencies (managed assemblies and runtime native shared libraries - not dependencies like openssl, libicu though) that the app needs. You can also publish an app for e.g. ARM Linux on Windows x64 machine this way.
    If you publish without the "-r" option, then it will publish only the non-runtime assemblies. You can take the contents of the publish folder and run it on any machine that has dotnet installed.
    So if you run your app using the dotnet app.dll, then you are asking it to be run using the dotnet runtime installed on the machine.

  20. johnww89 commented on Nov 22, 2018

    @johnww89
    Author

    @janvorli i have maked some tests. that for dotnet runtime 2.1.6 i can replace the installed binary with the compiled one and dotnet runs well. but if for dotnet runtime 2.0.x version if i replace the binaries with the comipled one it actually have the segmentation fault in my previous comments.

    if there is one worked version that mybe ok too but now i have another problem:
    i want to compile coreclr that want to track the problem in my profiler project. the profiler will rewrite the IL during the jit compile.
    but now the problem is dotnet 2.1.6 do not run the profiler well no matter the compiled binary or the installed binary when i run with my profiler it have problem:
    Unhandled Exception: System.BadImageFormatException: Bad IL range.
    and dotnet 2.0.x runs well with my profiler. but can not run with the compiled binary.

    i remember that dotnet 2.1 have such problem that can not run well for profiler. many company have reported this bug.

    can anyone run well for the compiled dotnet 2.0.x binary? and what is the environment?

  21. RussKeldorph commented on Mar 21, 2019

    @RussKeldorph
    Contributor

    Closing stale bugs. If there is a still a problem, please open a new issue with a clear description and instructions to reproduce.

  22. transferred this issue fromdotnet/coreclron Jan 31, 2020
  23. ghost locked as resolved and limited conversation to collaborators on Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructure-coreclrquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions