Bug 2694 - System.ServiceModel throws numeric overflow exception when creating channel
Summary: System.ServiceModel throws numeric overflow exception when creating channel
Status: CONFIRMED
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: 4.6.0 (C8)
Hardware: PC Windows
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-12-29 22:51 UTC by Felix Collins
Modified: 2017-09-06 16:48 UTC (History)
4 users (show)

Tags: XATriaged
Is this bug a regression?: ---
Last known good build:


Attachments
Solution originally for trying to repro another issue then hit this one. (11.26 KB, application/zip)
2011-12-29 22:51 UTC, Felix Collins
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 2694 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Felix Collins 2011-12-29 22:51:35 UTC
Created attachment 1112 [details]
Solution originally for trying to repro another issue then hit this one.

Stack trace below.  Repro solution attached.


 	0x1 in System.Diagnostics.Debugger.Mono_UnhandledException at /home/jon/Development/xamarin/mono/mcs/class/corlib/System.Diagnostics/Debugger.cs:124	C#
 	0x21 in System.Object.5d9e19b0-a64e-43db-8671-41439dabd9e0	C#
 	0x51 in System.ServiceModel.Dispatcher.BaseMessagesFormatter..ctor at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs:134	C#
 	0xD in System.ServiceModel.Dispatcher.DataContractMessagesFormatter..ctor at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs	C#
 	0x72 in System.ServiceModel.Dispatcher.BaseMessagesFormatter.Create at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs:162	C#
 	0x11 in System.ServiceModel.Dispatcher.OperationFormatter..ctor at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs:56	C#
 	0x167 in System.ServiceModel.Description.ContractDescription.PopulateClientOperation at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Description/ContractDescription.cs:234	C#
 	0x59 in System.ServiceModel.Description.ContractDescription.FillClientOperations at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Description/ContractDescription.cs:192	C#
 	0x30 in System.ServiceModel.Description.ContractDescription.CreateClientRuntime at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Description/ContractDescription.cs:181	C#
 	0x9 in System.ServiceModel.Description.ServiceEndpoint.CreateClientRuntime at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceEndpoint.cs:136	C#
 	0x3 in System.ServiceModel.MonoInternal.ClientRuntimeChannel..ctor at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs	C#
 	0x5C in System.ServiceModel.ChannelFactory`1[[TestInvokeMember.ITestInvokeMember, TestInvokeMember, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CreateChannel at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs:157	C#
 	0x3 in System.ServiceModel.ChannelFactory`1[[TestInvokeMember.ITestInvokeMember, TestInvokeMember, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CreateChannel at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs:115	C#
 	0x12 in System.ServiceModel.ChannelFactory`1[[TestInvokeMember.ITestInvokeMember, TestInvokeMember, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CreateChannel at /home/jon/Development/xamarin/mono/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs:110	C#
>	0x6B in TestInvokeMember.Activity1.OnCreate at E:\Temp\TestInvokeMember\TestInvokeMember\Activity1.cs:37	C#
 	0x12 in Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ at /home/jpobst/Desktop/monodroid/Mono.Android/platforms/android-8/src/generated/Android.App.Activity.cs:1438	C#
 	0x12 in System.Object.5d9e19b0-a64e-43db-8671-41439dabd9e0	C#
Comment 1 Felix Collins 2011-12-29 22:58:26 UTC
There is a bug in the repro solution. The signature for the begin... method should be ...
IAsyncResult BeginTestInvokeMember(AsyncCallback callback, object state);

However, there still seems to be a bug as numeric overflow is not a very informative exception to throw!
Comment 2 Marek Habersack 2016-09-01 19:17:29 UTC
Still reproducible with Mono 4.6 (it's a Mono BCL issue)