NUnit crashes in quickfix project

Bug #788715 reported by Aric Rosenbaum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Invalid
Undecided
Charlie Poole

Bug Description

A VS C# (2008) project compiled with the QuickFix library (www.quickfixengine.org) generates a runtime error in nunit-x86.exe and nunit-console-x86.exe. Problem Signature 09 in the problem details says "System.ArgumentException". The console app will then report an "Unhandled Exception: System.ArgumentException: Cannot pass a GCHandle across AppDomains. Parameter name: handle" (see attached).

I have tried various default process models in the GUI with the same results.

Please note that quickfix appears to be a 32-bit dll and you need to specify x86 as the platform target. When trying to run under the 64-bit generates a BadImageFormatException error.

Another report on this issue: http://osdir.com/ml/finance.quickfix.user/2007-05/msg00013.html

Attached, please find a sample project.

Thanks

Revision history for this message
Aric Rosenbaum (arosenbaum) wrote :
Revision history for this message
Charlie Poole (charlie.poole) wrote : Re: [Bug 788715] [NEW] NUnit crashes in quickfix project

Hi,

Is it possible that you are throwing an exception which includes the GC
handle
as a property? NUnit would try to pass this back to the console or gui
runner
and fail.

There is a general problem in NUnit when we try to pass custom exceptions
back to the runner. This might be a special case of the same problem.

Charlie

On Thu, May 26, 2011 at 9:32 AM, Aric Rosenbaum
<email address hidden>wrote:

> Public bug reported:
>
> A VS C# (2008) project compiled with the QuickFix library
> (www.quickfixengine.org) generates a runtime error in nunit-x86.exe and
> nunit-console-x86.exe. Problem Signature 09 in the problem details says
> "System.ArgumentException". The console app will then report an
> "Unhandled Exception: System.ArgumentException: Cannot pass a GCHandle
> across AppDomains. Parameter name: handle" (see attached).
>
> I have tried various default process models in the GUI with the same
> results.
>
> Please note that quickfix appears to be a 32-bit dll and you need to
> specify x86 as the platform target. When trying to run under the 64-bit
> generates a BadImageFormatException error.
>
> Another report on this issue:
> http://osdir.com/ml/finance.quickfix.user/2007-05/msg00013.html
>
> Attached, please find a sample project.
>
> Thanks
>
> ** Affects: nunitv2
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are the registrant for
> NUnit V2.
> https://bugs.launchpad.net/bugs/788715
>
> Title:
> NUnit crashes in quickfix project
>

Revision history for this message
Aric Rosenbaum (arosenbaum) wrote :
Download full text (3.2 KiB)

Charlie,

Thanks for your response.

>> Is it possible that you are throwing an exception which includes the GC
Handle as a property?

I don't believe this is the case. I took the lib project, built an exe and that worked fine.

Aric

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Charlie Poole
Sent: Tuesday, May 31, 2011 9:22 AM
To: Aric Rosenbaum
Subject: Re: [Bug 788715] [NEW] NUnit crashes in quickfix project

Hi,

Is it possible that you are throwing an exception which includes the GC
handle
as a property? NUnit would try to pass this back to the console or gui
runner
and fail.

There is a general problem in NUnit when we try to pass custom exceptions
back to the runner. This might be a special case of the same problem.

Charlie

On Thu, May 26, 2011 at 9:32 AM, Aric Rosenbaum
<email address hidden>wrote:

> Public bug reported:
>
> A VS C# (2008) project compiled with the QuickFix library
> (www.quickfixengine.org) generates a runtime error in nunit-x86.exe and
> nunit-console-x86.exe. Problem Signature 09 in the problem details says
> "System.ArgumentException". The console app will then report an
> "Unhandled Exception: System.ArgumentException: Cannot pass a GCHandle
> across AppDomains. Parameter name: handle" (see attached).
>
> I have tried various default process models in the GUI with the same
> results.
>
> Please note that quickfix appears to be a 32-bit dll and you need to
> specify x86 as the platform target. When trying to run under the 64-bit
> generates a BadImageFormatException error.
>
> Another report on this issue:
> http://osdir.com/ml/finance.quickfix.user/2007-05/msg00013.html
>
> Attached, please find a sample project.
>
> Thanks
>
> ** Affects: nunitv2
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are the registrant for
> NUnit V2.
> https://bugs.launchpad.net/bugs/788715
>
> Title:
> NUnit crashes in quickfix project
>

--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/788715

Title:
  NUnit crashes in quickfix project

Status in NUnit V2 Test Framework:
  New

Bug description:
  A VS C# (2008) project compiled with the QuickFix library
  (www.quickfixengine.org) generates a runtime error in nunit-x86.exe
  and nunit-console-x86.exe. Problem Signature 09 in the problem
  details says "System.ArgumentException". The console app will then
  report an "Unhandled Exception: System.ArgumentException: Cannot pass
  a GCHandle across AppDomains. Parameter name: handle" (see attached).

  I have tried various default process models in the GUI with the same
  results.

  Please note that quickfix appears to be a 32-bit dll and you need to
  specify x86 as the platform target. When trying to run under the
  64-bit generates a BadImageFormatException error.

  Another report on this issue:
  http://osdir.com/ml/finance.quickfix.user/2007-05/msg00013.html

  Attached, please find a sample project.

  Thanks

To unsubscribe from ...

Read more...

Changed in nunitv2:
assignee: nobody → Charlie Poole (charlie.poole)
Changed in nunitv2:
status: New → Invalid
Revision history for this message
Charlie Poole (charlie.poole) wrote :

This does not appear to be a problem with NUnit, even though the situation arises under NUnit.

Stepping through your code, everything works fine until I reach the Thread.Sleep() call in the test. At that point, the exception is thrown with the lowest stack entry indicating a call is being made to Log.onEvent(...). I'm not familiar with QuickFix, but could this be something you should be handling?

Charlie

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.