Hello,
This bug does not affect only Docky, but it is a more general issue.
At Fedora, we have had the same problem, and it is about LargeArrayBuilder.
See for details: https://bugzilla.redhat.com/show_bug.cgi?id=1704847
That bug report includes a small C# test code, that reproduces the
error: https://bugzilla.redhat.com/attachment.cgi?id=1560358
The output looks very similar:
LINQed list:
#%&
ToArray'd list:
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance
of an object
at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer
(System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0
at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo
(System.Collections.Generic.CopyPosition position, T[] array,
System.Int32 arrayIndex, System.Int32 count) [0x00041] in
<13c0993ff82548209b09f271bd5e6a78>:0
at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[]
array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in
<13c0993ff82548209b09f271bd5e6a78>:0
at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray ()
[0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0
at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray ()
[0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0
at System.Linq.Enumerable.ToArray[TSource]
(System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in
<13c0993ff82548209b09f271bd5e6a78>:0
at Program.Explodinate (System.Char[] list) [0x00056] in
<e7619700c39b4c0585f39918020fd879>:0
at Program.Main (System.String[] args) [0x00005] in
<e7619700c39b4c0585f39918020fd879>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object
reference not set to an instance of an object
at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer
(System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0
at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo
(System.Collections.Generic.CopyPosition position, T[] array,
System.Int32 arrayIndex, System.Int32 count) [0x00041] in
<13c0993ff82548209b09f271bd5e6a78>:0
at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[]
array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in
<13c0993ff82548209b09f271bd5e6a78>:0
at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray ()
[0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0
at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray ()
[0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0
at System.Linq.Enumerable.ToArray[TSource]
(System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in
<13c0993ff82548209b09f271bd5e6a78>:0
at Program.Explodinate (System.Char[] list) [0x00056] in
<e7619700c39b4c0585f39918020fd879>:0
at Program.Main (System.String[] args) [0x00005] in
<e7619700c39b4c0585f39918020fd879>:0
The solution is to backport this commit from upstream, to Mono 5.18:
https://github.com/mono/corefx/commit/0bf46dbe2cf0a215ca6e64793b7c434433f50722
I am new to Debian packaging, if I should prepare a merge request at
https://salsa.debian.org/dotnet-team/mono/merge_requests, I would be
happy to do that.
All the best,
Timotheus Pokorra