[Mono-bugs] [Bug 75623][Nor] New - Profiling module loader hardcodes .so extension on Mac OS X

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 24 17:57:19 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by brion at pobox.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75623

--- shadow/75623	2005-07-24 17:57:19.000000000 -0400
+++ shadow/75623.tmp.19989	2005-07-24 17:57:19.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 75623
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: Mac OS X 10.4.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: brion at pobox.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Profiling module loader hardcodes .so extension on Mac OS X
+
+Description of Problem:
+Profiling plug-ins are loaded with a hardcoded .so extension, but shared libraries on Mac OS X 
+carry a .dylib extension. This causes an attempt to load a profiling extension with eg --
+profile=desc-heap to fail unless the file is renamed or symlinked with a .so extension.
+
+
+Steps to reproduce the problem:
+1. Checkout heap-prof from SVN and install it
+2. Run some program with the profiling module:
+  mono --profile=heap-desc MWUpdateDaemon.exe
+
+Actual Results:
+ ** (MWUpdateDaemon.exe:6672): WARNING **: Error loading profiler module 'mono-profiler-
+desc-heap': dlopen(libmono-profiler-desc-heap.so, 9): image not found
+
+
+Expected Results:
+Should load the .dylib file and do profiling stuff.
+
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+Mac OS X has both 'bundle' code files, which may have a .so extension, and 'shared libraries' 
+which carry the .dylib extension. A look in my mono/lib directory shows a number of files of both 
+types; it may not be totally clear which is the 'correct' type to use.
+
+
+Workaround: symlink the .dylib file to a .so extension.


More information about the mono-bugs mailing list