Bug 39932 - Runtime crashed when I operating with ConcurrentDictionary
Summary: Runtime crashed when I operating with ConcurrentDictionary
Status: RESOLVED DUPLICATE of bug 39948
Alias: None
Product: Runtime
Classification: Mono
Component: GC ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-27 16:12 UTC by Kevin.Kline
Modified: 2016-04-05 01:10 UTC (History)
4 users (show)

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

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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 39948

Description Kevin.Kline 2016-03-27 16:12:30 UTC
[root@localhost Debug]# mono ./KAELoadTesting.exe run -e http://XXX:2379/v2/keys/kae/ -i 127.0.0.1 -p 6678 -c 1000 -pa 1 -f demo1_0xFF.txt 
KAE Loading Test Tool [Version 1.0.0.0]
(c) 2016 KJFramework Community Team. Reserved all rights.


Performing some task... Done.
Transfering TCP messages to the remote end-point...* Assertion: should not be reached at sgen-scan-object.h:101

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr) <0xffffffff>
  at (wrapper alloc) object.AllocVector (intptr,intptr) <0xffffffff>
  at System.Collections.Concurrent.ConcurrentDictionary`2<TKey_REF, TValue_REF>.GrowTable (System.Collections.Concurrent.ConcurrentDictionary`2/Tables<TKey_REF, TValue_REF>,System.Collections.Generic.IEqualityComparer`1<T_REF>,bool,int) <0x00321>
  at System.Collections.Concurrent.ConcurrentDictionary`2<TKey_REF, TValue_REF>.TryAddInternal (TKey_REF,TValue_REF,bool,bool,TValue_REF&) <0x004b2>
  at System.Collections.Concurrent.ConcurrentDictionary`2<TKey_REF, TValue_REF>.TryAdd (TKey_REF,TValue_REF) <0x00047>
  at KJFramework.Net.Transaction.TransactionManager`1<T_REF>.Add (KJFramework.Net.Identities.TransactionIdentity,KJFramework.Net.Transaction.IMessageTransaction`1<T_REF>) <0x002e5>
  at KJFramework.ApplicationEngine.Proxies.MessageTransactionProxy`1<T_REF>.CreateTransaction (string,KJFramework.Net.Transaction.Objects.Protocols,System.TimeSpan,string,KJFramework.ApplicationEngine.Resources.KAEResourceUri,KJFramework.Net.Transaction.Enums.NetworkCommunicationTypes,string) <0x00970>
  at KJFramework.ApplicationEngine.Proxies.MessageTransactionProxy`1<T_REF>.CreateTransaction (string,KJFramework.Net.Transaction.Objects.Protocols,string,KJFramework.ApplicationEngine.Resources.KAEResourceUri,KJFramework.Net.Transaction.Enums.NetworkCommunicationTypes,string) <0x0005f>
  at KAELoadTesting.CalculatorProgram/<run>c__AnonStorey0.<>m__0 (int) <0x00295>
  at System.Threading.Tasks.Parallel/<ForWorker>c__AnonStorey3`1<T_REF>.<>m__1 () <0x0030a>
  at System.Threading.Tasks.Task.InnerInvoke () <0x0004c>
  at System.Threading.Tasks.Task.InnerInvokeWithArg (System.Threading.Tasks.Task) <0x00013>
  at System.Threading.Tasks.Task/<ExecuteSelfReplicating>c__AnonStorey0.<>m__0 (object) <0x001cc>
  at System.Threading.Tasks.Task.ExecuteSelfReplicating (System.Threading.Tasks.Task) <0x0012f>
  at System.Threading.Tasks.Task.Execute () <0x0003d>
  at System.Threading.Tasks.Task.ExecutionContextCallback (object) <0x0004e>
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x001c6>
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00020>
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) <0x00116>
  at System.Threading.Tasks.Task.ExecuteEntry (bool) <0x000f3>
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) <0x0003f>
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) <0x000ca>
  at System.Threading.Tasks.Task.InternalRunSynchronously (System.Threading.Tasks.TaskScheduler,bool) <0x000f8>
  at System.Threading.Tasks.Task.RunSynchronously (System.Threading.Tasks.TaskScheduler) <0x00027>
  at System.Threading.Tasks.Parallel.ForWorker<T_REF> (int,int,System.Threading.Tasks.ParallelOptions,System.Action`1<int>,System.Action`2<int, System.Threading.Tasks.ParallelLoopState>,System.Func`4<int, System.Threading.Tasks.ParallelLoopState, T_REF, T_REF>,System.Func`1<T_REF>,System.Action`1<T_REF>) <0x00622>
  at System.Threading.Tasks.Parallel.For (int,int,System.Action`1<int>) <0x00069>
  at KAELoadTesting.CalculatorProgram.run (KAELoadTesting.KAELoadingToolsArgs) <0x0075f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000a3>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at PowerArgs.ArgAction.Invoke () <0x003ae>
  at PowerArgs.Args/<>c__DisplayClass15_1.<InvokeAction>b__3 () <0x00067>
  at PowerArgs.Args.Execute<T_REF> (System.Func`1<T_REF>) <0x00072>
  at PowerArgs.Args/<>c__DisplayClass15_0.<InvokeAction>b__2 (string[]) <0x00143>
  at PowerArgs.REPL.DriveREPL<T_REF> (PowerArgs.TabCompletion,System.Func`2<string[], T_REF>,string[]) <0x00143>
  at PowerArgs.Args.InvokeAction (PowerArgs.CommandLineArgumentsDefinition,string[]) <0x002d3>
  at PowerArgs.Args.InvokeAction<T_REF> (string[]) <0x00057>
  at KAELoadTesting.Program.Main (string[]) <0x00017>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	mono() [0x4a3002]
	/lib64/libpthread.so.0(+0xf100) [0x7fdb09bfa100]
	/lib64/libc.so.6(gsignal+0x37) [0x7fdb096495f7]
	/lib64/libc.so.6(abort+0x148) [0x7fdb0964ace8]
	mono() [0x6347e9]
	mono() [0x634a5c]
	mono() [0x634bf3]
	mono() [0x600676]
	mono() [0x5ee24a]
	mono() [0x5efbbe]
	mono() [0x5f1c92]
	mono() [0x5e529a]
	mono() [0x5d33d6]
	[0x41f098be]


Actually, I was using Mono v4.2.3.

[root@localhost Debug]# mono -V
Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Tue Mar 15 11:39:54 EDT 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen
Comment 1 Alexander Köplinger [MSFT] 2016-04-05 01:10:30 UTC
This seems to be the same underlying issue as the other issue you've opened, closing this one as a duplicate.

*** This bug has been marked as a duplicate of bug 39948 ***