https://bugzilla.novell.com/show_bug.cgi?id=661356
https://bugzilla.novell.com/show_bug.cgi?id=661356#c0 Summary: DllImport errors preceding DllNotFoundException printing "(null)" instead of actual loader error Classification: Mono Product: Mono: Runtime Version: 2.8.x Platform: 64bit OS/Version: Mac OS X 10.6 Status: NEW Severity: Normal Priority: P5 - None Component: interop AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 when a dllimport fails, i re-run with MONO_LOG_LEVEL=debug so i can see the dllimport errors. since mono 2.8, the error messages have been replaced with the string "(null)". Reproducible: Always Steps to Reproduce: run the following with MONO_LOG_LEVEL=debug: using System; using System.Runtime.InteropServices; class Program { [DllImport("nonexistent_lib")] static extern void nonexistent_symbol(); static void Main(string[] args) { nonexistent_symbol(); } } Actual Results: Mono: DllImport attempting to load: 'nonexistent_lib'. Mono: DllImport loading location: 'libnonexistent_lib'. Mono: DllImport error loading library: '(null)'. Mono: DllImport loading location: 'libnonexistent_lib.dylib'. Mono: DllImport error loading library: '(null)'. Mono: DllImport loading location: 'libnonexistent_lib.so'. Mono: DllImport error loading library: '(null)'. Mono: DllImport loading location: 'libnonexistent_lib.bundle'. Mono: DllImport error loading library: '(null)'. .. Mono: DllImport unable to load library '(null)'. Unhandled Exception: System.DllNotFoundException: nonexistent_lib at (wrapper managed-to-native) Program:nonexistent_symbol () at Program.Main (System.String[] args) [0x0000a] in Program.cs:12 Expected Results: Mono: DllImport attempting to load: 'nonexistent_lib'. Mono: DllImport loading location: 'libnonexistent_lib'. Mono: DllImport error loading library: 'dlopen(libnonexistent_lib, 9): image not found'. Mono: DllImport loading location: 'libnonexistent_lib.dylib'. Mono: DllImport error loading library: 'dlopen(libnonexistent_lib.dylib, 9): image not found'. Mono: DllImport loading location: 'libnonexistent_lib.so'. Mono: DllImport error loading library: 'dlopen(libnonexistent_lib.so, 9): image not found'. Mono: DllImport loading location: 'libnonexistent_lib.bundle'. Mono: DllImport error loading library: 'dlopen(libnonexistent_lib.bundle, 9): image not found'. .. Mono: DllImport unable to load library 'dlopen(libnonexistent_lib, 9): image not found'. Unhandled Exception: System.DllNotFoundException: nonexistent_lib at (wrapper managed-to-native) Program:nonexistent_symbol () at Program.Main (System.String[] args) [0x0000a] in Program.cs:12 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
