[Mono-bugs] [Bug 75923][Nor] Changed - Mono compilation leaks semaphores

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 30 23:40:18 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 tmclaugh at sdf.lonestar.org.


--- shadow/75923	2005-08-30 05:48:11.000000000 -0400
+++ shadow/75923.tmp.9283	2005-08-30 23:40:18.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 75923
 Product: Mono: Runtime
 Version: 1.1
 OS: other
 OS Details: FreeBSD 5.4-RELEASE-p6
-Status: RESOLVED   
-Resolution: NOTABUG
+Status: REOPENED   
 Severity: Unknown
 Priority: Normal
 Component: io-layer
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: tmclaugh at sdf.lonestar.org               
 QAContact: mono-bugs at ximian.com
@@ -117,6 +117,53 @@
 appropriate semctl(..., IPC_RMID) call ?
 ------- Additional Comments From gonzalo at ximian.com  2005-08-30 05:48 -------
 That semaphore will be reused everytime you run mono with the same
 user and same .wapi directory.
+------- Additional Comments From tmclaugh at sdf.lonestar.org  2005-08-30 23:40 -------
+Hi Gonzalo, thanks for the help on IRC.  I did some diging through how
+we build Mono in the FreeBSD ports system and I we set MONO_SHARED_DIR
+to the ports's work/ directory.
+[root at compass:ttyp1 mono-svn]# ls -al work/
+drwxr-xr-x   2 root  wheel   512 Aug 30 22:40 .wapi
+drwxr-xr-x  15 root  wheel  1536 Aug 30 22:36 mono-
+I ran the semdel-wrapper manually after building Mono but the one
+remaing semaphore was not removed.  We need this semaphore to be
+removed because we remove the work/.wapi/ at the end of the build
+during the cleanup process.  We cannot write to ~/.wapi because we can
+only assume work/ is writeable during package building.
+I see that two .wapi/ directories are created during the build,
+work/.wapi/ and work/mono-
+[root at compass:ttyp1 mono-svn]# ls -al work/.wapi/
+total 116
+drwxr-xr-x  2 root  wheel      512 Aug 30 22:40 .
+drwxr-xr-x  4 root  wheel      512 Aug 30 22:53 ..
+-rw-------  1 root  wheel  1277964 Aug 30 22:41
+-rw-------  1 root  wheel  2867204 Aug 30 22:41
+[root at compass:ttyp1 mono-svn]# ls -al
+total 196
+drwxr-xr-x  2 root  wheel      512 Aug 30 22:40 .
+drwxr-xr-x  4 root  wheel      512 Aug 30 22:41 ..
+-rw-------  1 root  wheel  1277964 Aug 30 22:53
+-rw-------  1 root  wheel  2867204 Aug 30 22:53
+The shared_*-6-0 files under work/.wapi/ have file creation times
+which match the CTIME of the leftover semaphore.  I set
+MONO_SHARED_DIR=work/mono- hoping this
+would clear up the problem but instead the four files in the two
+directories listed above are all created under
+work/mono-  I'm guessing the shared_*-6-0
+files are the problem.  Is there a way to prevent them from being
+created?  Thanks.

More information about the mono-bugs mailing list