Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alloc-dealloc-mismatch (operator new vs free) on 0x603000596cb0 #55560

Closed
malaterre opened this issue Jul 13, 2021 · 2 comments
Closed

alloc-dealloc-mismatch (operator new vs free) on 0x603000596cb0 #55560

malaterre opened this issue Jul 13, 2021 · 2 comments
Labels
area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner

Comments

@malaterre
Copy link
Contributor

Description

What's the correct way to debug a segfault in dotnet ? I fail to understand the minimal steps to combine gdb and dotnet:

Currently one my xUnit test produces a segfault. If I compile my native code with -sanitize-=address, here is what I can collect:

The active test run was aborted. Reason: Test host process crashed : =================================================================
==16422==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) on 0x603000596cb0
    #0 0x7f7f57d64fb0 in __interceptor_free (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0xe8fb0)
    #1 0x7f7f54409168  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4c3168)
    #2 0x7f7eda82192b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x3c192b)
0x603000596cb0 is located 0 bytes inside of 23-byte region [0x603000596cb0,0x603000596cc7)
allocated by thread T20 here:
    #0 0x7f7f57d66d30 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0xead30)
    #1 0x7f7f57ba757e in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag) (/lib/x86_64-linux-gnu/libstdc++.so.6+0x12057e)
    #2 0x7f7ee3a952cf  (<unknown module>)
    #3 0x7f7f5441eba7  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4d8ba7)
Thread T20 created by T7 here:
    #0 0x7f7f57cccdb0 in __interceptor_pthread_create (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0x50db0)
    #1 0x7f7f5442e6ee  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e86ee)
    #2 0x7f7f5442e817  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e8817)
    #3 0x7f7f540c285b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c85b)
    #4 0x7f7f540c278b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c78b)
    #5 0x7f7f54110040  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1ca040)
    #6 0x7f7f5410fba4  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c9ba4)
    #7 0x7f7eda9507b6  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f07b6)
    #8 0x7f7eda950733  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f0733)
    #9 0x7f7eda97b7c0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51b7c0)
    #10 0x7f7eda97add2  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51add2)
    #11 0x7f7eda96da0b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50da0b)
    #12 0x7f7eda96d24a  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50d24a)
    #13 0x7f7eda977deb  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x517deb)
    #14 0x7f7ee3a169b4  (<unknown module>)
    #15 0x7f7ee3a17340  (<unknown module>)
    #16 0x7f7ee3a31c74  (<unknown module>)
    #17 0x7f7edbe2ba4e  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Linq.dll+0x3ba4e)
    #18 0x7f7edbe25b37  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Linq.dll+0x35b37)
    #19 0x7f7ee3a310ce  (<unknown module>)
    #20 0x7f7ee3a30634  (<unknown module>)
    #21 0x7f7ee3a2f9f5  (<unknown module>)
    #22 0x7f7ee3a2f353  (<unknown module>)
    #23 0x7f7ee3a2f2ae  (<unknown module>)
    #24 0x7f7ee3a2f24f  (<unknown module>)
    #25 0x7f7ee3a2cd5f  (<unknown module>)
    #26 0x7f7ee3a2c952  (<unknown module>)
    #27 0x7f7ee3a2c85e  (<unknown module>)
    #28 0x7f7ee3a2c7cb  (<unknown module>)
    #29 0x7f7ee3a2c0f4  (<unknown module>)
    #30 0x7f7ee3a2bf73  (<unknown module>)
    #31 0x7f7ee3a2beca  (<unknown module>)
    #32 0x7f7ee3a2be7c  (<unknown module>)
    #33 0x7f7ee3a2bd9d  (<unknown module>)
    #34 0x7f7ee3a2bc96  (<unknown module>)
    #35 0x7f7ee3a06be8  (<unknown module>)
    #36 0x7f7ee3a05e5c  (<unknown module>)
    #37 0x7f7edaaa06e6  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x6406e6)
    #38 0x7f7edd52bcdf  (<unknown module>)
    #39 0x7f7edd526155  (<unknown module>)
    #40 0x7f7edd525c52  (<unknown module>)
    #41 0x7f7edd524c0a  (<unknown module>)
    #42 0x7f7edceaf470  (<unknown module>)
    #43 0x7f7edceaf068  (<unknown module>)
    #44 0x7f7edce8f33d  (<unknown module>)
    #45 0x7f7edce89147  (<unknown module>)
    #46 0x7f7edae093be  (<unknown module>)
    #47 0x7f7edae0909d  (<unknown module>)
    #48 0x7f7edadf5911  (<unknown module>)
    #49 0x7f7edadf4fc6  (<unknown module>)
    #50 0x7f7eda96ea10  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50ea10)
    #51 0x7f7eda974920  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x514920)
    #52 0x7f7eda9598d0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f98d0)
    #53 0x7f7eda96e829  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50e829)
    #54 0x7f7eda96e627  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50e627)
    #55 0x7f7eda97bd46  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51bd46)
    #56 0x7f7eda9598d0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f98d0)
    #57 0x7f7eda950580  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f0580)
    #58 0x7f7f542b0176  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x36a176)
    #59 0x7f7f540fe9ba  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1b89ba)
    #60 0x7f7f5410f6a5  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c96a5)
    #61 0x7f7f540c7719  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x181719)
    #62 0x7f7f540c7d2c  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x181d2c)
    #63 0x7f7f5410f7ef  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c97ef)
    #64 0x7f7f5442ed1d  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e8d1d)
    #65 0x7f7f57c17fa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
Thread T7 created by T0 here:
    #0 0x7f7f57cccdb0 in __interceptor_pthread_create (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0x50db0)
    #1 0x7f7f5442e6ee  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e86ee)
    #2 0x7f7f5442e817  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e8817)
    #3 0x7f7f540c285b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c85b)
    #4 0x7f7f540c278b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c78b)
    #5 0x7f7f54110040  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1ca040)
    #6 0x7f7f5410fba4  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c9ba4)
    #7 0x7f7eda9507b6  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f07b6)
    #8 0x7f7eda950733  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f0733)
    #9 0x7f7eda97b7c0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51b7c0)
    #10 0x7f7eda97add2  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51add2)
    #11 0x7f7eda96da0b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50da0b)
    #12 0x7f7eda96cf5f  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50cf5f)
    #13 0x7f7eda96cefe  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50cefe)
    #14 0x7f7edadf3ec5  (<unknown module>)
    #15 0x7f7edadf326b  (<unknown module>)
    #16 0x7f7edadedcbd  (<unknown module>)
    #17 0x7f7edadedc19  (<unknown module>)
    #18 0x7f7edaded7ae  (<unknown module>)
    #19 0x7f7edadebf67  (<unknown module>)
    #20 0x7f7edade6066  (<unknown module>)
    #21 0x7f7f542b0176  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x36a176)
    #22 0x7f7f540fe9ba  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1b89ba)
    #23 0x7f7f53fd20d9  (/usr/share/dotnet

Test Run Aborted.

Configuration

Here is my config:

% apt-cache policy dotnet-runtime-5.0
dotnet-runtime-5.0:
  Installed: 5.0.7-1
  Candidate: 5.0.7-1
  Version table:
 *** 5.0.7-1 500
        500 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages
        100 /var/lib/dpkg/status

Here is how I load the asan library:

% export LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so

@dotnet-issue-labeler dotnet-issue-labeler bot added area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner labels Jul 13, 2021
@ghost
Copy link

ghost commented Jul 13, 2021

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

What's the correct way to debug a segfault in dotnet ? I fail to understand the minimal steps to combine gdb and dotnet:

Currently one my xUnit test produces a segfault. If I compile my native code with -sanitize-=address, here is what I can collect:

The active test run was aborted. Reason: Test host process crashed : =================================================================
==16422==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) on 0x603000596cb0
    #0 0x7f7f57d64fb0 in __interceptor_free (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0xe8fb0)
    #1 0x7f7f54409168  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4c3168)
    #2 0x7f7eda82192b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x3c192b)
0x603000596cb0 is located 0 bytes inside of 23-byte region [0x603000596cb0,0x603000596cc7)
allocated by thread T20 here:
    #0 0x7f7f57d66d30 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0xead30)
    #1 0x7f7f57ba757e in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag) (/lib/x86_64-linux-gnu/libstdc++.so.6+0x12057e)
    #2 0x7f7ee3a952cf  (<unknown module>)
    #3 0x7f7f5441eba7  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4d8ba7)
Thread T20 created by T7 here:
    #0 0x7f7f57cccdb0 in __interceptor_pthread_create (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0x50db0)
    #1 0x7f7f5442e6ee  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e86ee)
    #2 0x7f7f5442e817  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e8817)
    #3 0x7f7f540c285b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c85b)
    #4 0x7f7f540c278b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c78b)
    #5 0x7f7f54110040  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1ca040)
    #6 0x7f7f5410fba4  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c9ba4)
    #7 0x7f7eda9507b6  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f07b6)
    #8 0x7f7eda950733  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f0733)
    #9 0x7f7eda97b7c0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51b7c0)
    #10 0x7f7eda97add2  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51add2)
    #11 0x7f7eda96da0b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50da0b)
    #12 0x7f7eda96d24a  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50d24a)
    #13 0x7f7eda977deb  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x517deb)
    #14 0x7f7ee3a169b4  (<unknown module>)
    #15 0x7f7ee3a17340  (<unknown module>)
    #16 0x7f7ee3a31c74  (<unknown module>)
    #17 0x7f7edbe2ba4e  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Linq.dll+0x3ba4e)
    #18 0x7f7edbe25b37  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Linq.dll+0x35b37)
    #19 0x7f7ee3a310ce  (<unknown module>)
    #20 0x7f7ee3a30634  (<unknown module>)
    #21 0x7f7ee3a2f9f5  (<unknown module>)
    #22 0x7f7ee3a2f353  (<unknown module>)
    #23 0x7f7ee3a2f2ae  (<unknown module>)
    #24 0x7f7ee3a2f24f  (<unknown module>)
    #25 0x7f7ee3a2cd5f  (<unknown module>)
    #26 0x7f7ee3a2c952  (<unknown module>)
    #27 0x7f7ee3a2c85e  (<unknown module>)
    #28 0x7f7ee3a2c7cb  (<unknown module>)
    #29 0x7f7ee3a2c0f4  (<unknown module>)
    #30 0x7f7ee3a2bf73  (<unknown module>)
    #31 0x7f7ee3a2beca  (<unknown module>)
    #32 0x7f7ee3a2be7c  (<unknown module>)
    #33 0x7f7ee3a2bd9d  (<unknown module>)
    #34 0x7f7ee3a2bc96  (<unknown module>)
    #35 0x7f7ee3a06be8  (<unknown module>)
    #36 0x7f7ee3a05e5c  (<unknown module>)
    #37 0x7f7edaaa06e6  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x6406e6)
    #38 0x7f7edd52bcdf  (<unknown module>)
    #39 0x7f7edd526155  (<unknown module>)
    #40 0x7f7edd525c52  (<unknown module>)
    #41 0x7f7edd524c0a  (<unknown module>)
    #42 0x7f7edceaf470  (<unknown module>)
    #43 0x7f7edceaf068  (<unknown module>)
    #44 0x7f7edce8f33d  (<unknown module>)
    #45 0x7f7edce89147  (<unknown module>)
    #46 0x7f7edae093be  (<unknown module>)
    #47 0x7f7edae0909d  (<unknown module>)
    #48 0x7f7edadf5911  (<unknown module>)
    #49 0x7f7edadf4fc6  (<unknown module>)
    #50 0x7f7eda96ea10  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50ea10)
    #51 0x7f7eda974920  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x514920)
    #52 0x7f7eda9598d0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f98d0)
    #53 0x7f7eda96e829  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50e829)
    #54 0x7f7eda96e627  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50e627)
    #55 0x7f7eda97bd46  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51bd46)
    #56 0x7f7eda9598d0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f98d0)
    #57 0x7f7eda950580  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f0580)
    #58 0x7f7f542b0176  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x36a176)
    #59 0x7f7f540fe9ba  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1b89ba)
    #60 0x7f7f5410f6a5  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c96a5)
    #61 0x7f7f540c7719  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x181719)
    #62 0x7f7f540c7d2c  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x181d2c)
    #63 0x7f7f5410f7ef  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c97ef)
    #64 0x7f7f5442ed1d  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e8d1d)
    #65 0x7f7f57c17fa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
Thread T7 created by T0 here:
    #0 0x7f7f57cccdb0 in __interceptor_pthread_create (/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so+0x50db0)
    #1 0x7f7f5442e6ee  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e86ee)
    #2 0x7f7f5442e817  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x4e8817)
    #3 0x7f7f540c285b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c85b)
    #4 0x7f7f540c278b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x17c78b)
    #5 0x7f7f54110040  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1ca040)
    #6 0x7f7f5410fba4  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1c9ba4)
    #7 0x7f7eda9507b6  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f07b6)
    #8 0x7f7eda950733  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x4f0733)
    #9 0x7f7eda97b7c0  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51b7c0)
    #10 0x7f7eda97add2  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x51add2)
    #11 0x7f7eda96da0b  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50da0b)
    #12 0x7f7eda96cf5f  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50cf5f)
    #13 0x7f7eda96cefe  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll+0x50cefe)
    #14 0x7f7edadf3ec5  (<unknown module>)
    #15 0x7f7edadf326b  (<unknown module>)
    #16 0x7f7edadedcbd  (<unknown module>)
    #17 0x7f7edadedc19  (<unknown module>)
    #18 0x7f7edaded7ae  (<unknown module>)
    #19 0x7f7edadebf67  (<unknown module>)
    #20 0x7f7edade6066  (<unknown module>)
    #21 0x7f7f542b0176  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x36a176)
    #22 0x7f7f540fe9ba  (/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so+0x1b89ba)
    #23 0x7f7f53fd20d9  (/usr/share/dotnet

Test Run Aborted.

Configuration

Here is my config:

% apt-cache policy dotnet-runtime-5.0
dotnet-runtime-5.0:
  Installed: 5.0.7-1
  Candidate: 5.0.7-1
  Version table:
 *** 5.0.7-1 500
        500 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages
        100 /var/lib/dpkg/status

Here is how I load the asan library:

% export LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/8/libasan.so

Author: malaterre
Assignees: -
Labels:

area-Diagnostics-coreclr, untriaged

Milestone: -

@malaterre
Copy link
Contributor Author

The above is the symptoms of an invalid string / const char* pinvoke signature. Full reference:

@ghost ghost locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant