[Mono-bugs] [Bug 554898] New: Unbreak `csharp --attach'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 12 08:26:41 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=554898


           Summary: Unbreak `csharp --attach'
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: romain at blogreen.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=327132)
 --> (http://bugzilla.novell.com/attachment.cgi?id=327132)
Fix (ensure startup_files != null before using startup_files.Length)

User-Agent:       Mozilla/5.0 (X11; U; FreeBSD amd64; fr-fr) AppleWebKit/531.2+
(KHTML, like Gecko) Safari/531.2+

The --attach option of csharp makes it crash.

Reproducible: Always

Steps to Reproduce:
1. Find a process such as Banshee using ps, get it's PID (e.g. 54630)
2. Ask csahrp to attach to it (e.g.csharp --attach 54630 )
Actual Results:  
romain at marvin ...ono-2-6/mcs/class/lib/net_2_0 % ps alxw | grep banshe          
 1001 54630 97806   0  44  0 740356 388192 select S+     5   22:56,63
banshee-1: banshee-1 (mono)
 1001 71338 62390   0  44  0  8060  1588 piperd S+     8    0:00,00 grep
--color banshe
romain at marvin ...ono-2-6/mcs/class/lib/net_2_0 % csharp --attach 54630          
Connected.

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Mono.CSharpShell.ReadEvalPrintLoop () [0x00000] 
  at Mono.ClientCSharpShell.Run (System.String[] startup_files) [0x00000] 
  at Mono.Driver.Main (System.String[] args) [0x00000] 


Expected Results:  
csharp attach itself to the process

-- 
Configure bugmail: http://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