[Mono-bugs] [Bug 380649] New: System.Diagnostics.Process. GetProcessesByName causes access violation
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 17 01:43:55 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=380649
Summary: System.Diagnostics.Process.GetProcessesByName causes
access violation
Product: Mono: Runtime
Version: 1.9.0
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: dan at af0.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Using System.Diagnostics.Process.GetProcessesByName appears to cause an access
violation.
Steps to reproduce:
1. Compile the below code into assembly test.exe
2. Run "mono test.exe"
Code:
using System;
namespace test
{
class MainClass
{
public static void Main(string[] args)
{
System.Diagnostics.Process.GetProcessesByName("asdf");
}
}
}
Result:
$ mono test.exe
Stacktrace:
at (wrapper managed-to-native)
System.Diagnostics.Process.ProcessName_internal (intptr) <0x00004>
at (wrapper managed-to-native)
System.Diagnostics.Process.ProcessName_internal (intptr) <0xffffffff>
at System.Diagnostics.Process.get_ProcessName () <0x00022>
at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process.get_ProcessName () <0xffffffff>
at System.Diagnostics.Process.GetProcessesByName (string) <0x0006c>
at test.MainClass.Main (string[]) <0x00012>
at (wrapper runtime-invoke) test.MainClass.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Abort trap
(gdb) file mono
Reading symbols for shared libraries ....... done
Reading symbols from /usr/bin/mono...done.
(gdb) run test.exe
Starting program: /usr/bin/mono test.exe
Program received signal SIGBUS, Bus error.
0x90010ef1 in fclose ()
(gdb) backtrace
#0 0x90010ef1 in fclose ()
#1 0x000c83f8 in EnumProcessModules (process=0x2802, modules=0xbffff63c,
size=4, needed=0xbffff638) at processes.c:1763
#2 0x00140726 in ves_icall_System_Diagnostics_Process_ProcessName_internal
(process=0x2802) at process.c:823
#3 0x007b9d40 in ?? ()
#4 0x007b9b8b in ?? ()
#5 0x007b9b37 in ?? ()
#6 0x007b8365 in ?? ()
#7 0x007b828a in ?? ()
#8 0x007b81f6 in ?? ()
#9 0x000941a5 in mono_runtime_exec_main (method=0x1801104, args=0x77fe70,
exc=0x0) at object.c:3093
#10 0x00097a85 in mono_runtime_run_main (method=0x1801104, argc=1,
argv=0xbffffae0, exc=0x0) at object.c:2881
#11 0x00004620 in mono_main (argc=1, argv=0xbffffadc) at driver.c:888
#12 0x0000303a in _start (argc=2, argv=0xbffffadc, envp=0xbffffae8) at
/SourceCache/Csu/Csu-58/crt.c:272
#13 0x00002f55 in start ()
--
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.
More information about the mono-bugs
mailing list