[Mono-dev] dlopen(libSystem.Data.dll, 9): image not found

Alexander Köplinger alkpli at microsoft.com
Wed Mar 1 20:39:04 UTC 2017


Yep, it does indeed come from referencesource: https://github.com/mono/mono/blob/d01c819b05550d430d3c1bf0cc6842a2e8a47a0d/mcs/class/referencesource/System.Data/System/Data/Common/System.Data_BID.cs#L70

This should be harmless as I don't think any code on Mono reaches this (otherwise you'd get a crash).
We can probably just ifdef this out on Mono.

- Alex

> On 01 Mar 2017, at 19:56, Robert Jordan <robertj at gmx.net> wrote:
> 
> On 01.03.2017 15:54, Jonathan Mitchell wrote:
>> While fixing a Dll import issue on MacOS I noticed the following:
>> 
>> Mono: DllImport error loading library 'libSystem.Data.dll.so': 'dlopen(libSystem.Data.dll.so, 9): image not found'.
>> Mono: DllImport error loading library 'libSystem.Data.dll.bundle': 'dlopen(libSystem.Data.dll.bundle, 9): image not found'.
>> Mono: DllImport error loading library 'libSystem.Data.dll': 'dlopen(libSystem.Data.dll, 9): image not found'.
>> Mono: DllImport unable to load library 'dlopen(libSystem.Data.dll, 9): image not found'.
>> Mono: DllImport attempting to load: 'System.Data.dll’.
>> 
>> By the time my app launches  dlopen() has attempted to load libSystem.Data.dll.whatever 1600 times.
>> My MacOS app launches and exceutes okay.
>> 
>> Is this normal behaviour on 4.8.0?
> 
> It happens on 4.6.x as well, and it seems to be caused by actual
> DllImports of 'System.Data.dll':
> 
> 
> 
> $ monodis System.Data.dll | grep pinvoke | grep System
> 
> .method assembly static hidebysig pinvokeimpl ("System.Data.dll" as "DllBidTraceCW" unicode cdecl )
>    .method assembly static hidebysig pinvokeimpl ("System.Data.dll" as "DllBidTraceCW" unicode cdecl )
> ...
> 
> 
> These look to me like some MS Reference Source artifacts. Maybe
> there is a native System.Data.dll under MS.NET which is providing
> these exports :) No idea what it is.
> 
> See also
> 
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freferencesource.microsoft.com%2F%23System.Data%2FSystem%2FData%2FCommon%2FSystem.Data_BID.cs&data=02%7C01%7Calkpli%40microsoft.com%7C95701d1e99b348f34a6308d460d4afe7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636239913989378069&sdata=RYFPq%2F7PJb2xlR%2BWG7%2FVhWGzoVrmLa4MuWqV4QkUnPg%3D&reserved=0
> 
> 
> Robert
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.dot.net%2Fmailman%2Flistinfo%2Fmono-devel-list&data=02%7C01%7Calkpli%40microsoft.com%7C95701d1e99b348f34a6308d460d4afe7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636239913989378069&sdata=mUIjQGYdRfyJXN%2BM%2FLHeDrPKfcx9f3jRyNrwAtXOxd0%3D&reserved=0



More information about the Mono-devel-list mailing list