[Mono-bugs] [Bug 465323] New: process_set_current: error creating process handle
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jan 12 06:26:43 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=465323
Summary: process_set_current: error creating process handle
Classification: Mono
Product: Mono: Runtime
Version: 2.0.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: io-layer
AssignedTo: dick at novell.com
ReportedBy: csvadiraj at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: Other
Created an attachment (id=264462)
--> (https://bugzilla.novell.com/attachment.cgi?id=264462)
stack trace of the above reported issue
Test app crashes when terminated by pressing CTRL+C on multiple runs.
After the crash the app fails to run.
The behavior is seen only with mono-2.0.1
Intention of this app?
Trying to write a test case to reproduce the issue with mono2.0 throwing
sharing violation on file error. Instead hit this issue.
Stack trace, gdb trace attached
Steps to reproduce
1. Compile the app.
2. run the exe on mono-2.0.1(shipped with sle-11)
3. Kill the process while it is running using CTRL+C
4. repeat step 2 and 3.
5. after 3-4 time it dumps.
6. once the dump is thrown, you will not be able to run app. Step 2 keeps
failing continuously.
Same steps when executed on mono-1.2.2 (shipped with SLE-10) will not have any
issue.
class procStart
{
private static int getPid(string processName)
{
int pid = 0;
ProcessStartInfo pinfo = new ProcessStartInfo("/bin/pidof");
pinfo.Arguments = processName;
pinfo.UseShellExecute = false;
pinfo.RedirectStandardOutput = true;
Process p = new Process();
p.StartInfo = pinfo;
p.Start();
using (StreamReader pstream = p.StandardOutput){
string exitcode = pstream.ReadLine();
try {
pid = Convert.ToInt32(exitcode);
}
catch(Exception e){
}
}
return pid;
}
public static void Main(string[] args)
{
int i = 0;
while(true)
{
Console.WriteLine("*** {0} *** {1}",getPid("gnome-terminal"), i++);
using (StreamWriter stream = new StreamWriter("/tmp/pid.txt")){
stream.WriteLine("Hello World") ;
}
}
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list