[Mono-bugs] [Bug 79995][Nor] New - nant randomly fails on x86_64 linux

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 20 20:23:23 EST 2006


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 wberrier at novell.com.

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

--- shadow/79995	2006-11-20 20:23:23.000000000 -0500
+++ shadow/79995.tmp.24361	2006-11-20 20:23:23.000000000 -0500
@@ -0,0 +1,71 @@
+Bug#: 79995
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: wberrier at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: nant randomly fails on x86_64 linux
+
+To reproduce:
+
+Download:
+
+http://easynews.dl.sourceforge.net/sourceforge/nant/nant-0.85-src.tar.gz
+
+keep running:
+
+make
+make clean
+
+Until this error shows up:
+
+NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
+Copyright (C) 2001-2006 Gerry Shaw
+http://nant.sourceforge.net
+
+
+BUILD FAILED
+
+The current runtime framework 'mono-2.0' is not correctly configured in the
+NAnt configuration file.
+    Function call failed.
+Expression: ${path::combine(prefix, 'lib/mono/1.0')}
+              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+        Illegal characters in path
+Parameter name: path1
+
+For more information regarding the cause of the build failure, run the
+build again in debug mode.
+
+Try 'nant -help' for more information
+make: *** [build-nant] Error 1
+
+
+I've tracked it down to:
+
+src/NAnt.Core/Functions/PkgConfigFunctions.cs
+
+so far, and changed inside of RunPkgConfigString:
+
+string output = sr.ReadLine();
+
+to:
+
+string output = sr.ReadLine().Replace("\x00", "");
+
+For some reason, this ReadLine is randomly prepending many hex chars ('00')
+in front, which is returned by the nant task pkg-config::get-variable,
+causing path::combine in NAnt.exe.config to fail.
+
+Don't think it's a nant bug since in only happens on non x86 platforms. 
+(Seen so far on x86_64, ia64, which are the most common, and once on ppc).


More information about the mono-bugs mailing list