[Mono-dev] crashes while executing System.Buffer.BlockCopyInternal

Daniel Weuthen daniel.weuthen-ml at deepinvent.com
Wed Nov 18 06:54:26 EST 2009


Hi everybody,

I have got a major problem with out software running with mono 2.4.x. No
matter what distribution, it keeps crashing with segmentation fault
randomly with the following last output when debugging. These were three
different runs of the software. To me it looks like something is wrong
with mono or am I totally wrong?

   0x08125ee5 in ves_icall_System_Buffer_BlockCopyInternal
(src=0x1842000,  src_offset=4096, dest=0x989aa0, dest_offset=0, count=1024)

    0x08125ee5 in ves_icall_System_Buffer_BlockCopyInternal
(src=0x818000, src_offset=12288, dest=0x7f3aa0, dest_offset=0, count=1024)

    0x08125ee5 in ves_icall_System_Buffer_BlockCopyInternal
(src=0x767000, src_offset=9216, dest=0x555aa0, dest_offset=0, count=1024)


a mono stack trace returns the following:

(gdb) mono_stack

"<threadpool thread>" tid=0x0xadcfeb90 this=0x0x24d960 thread handle
0x44b state : not waiting owns ()
  at (wrapper managed-to-native) System.Buffer.BlockCopyInternal
(System.Array,int,System.Array,int,int) <0x00004>
  at (wrapper managed-to-native) System.Buffer.BlockCopyInternal
(System.Array,int,System.Array,int,int) <0xffffffff>
  at System.Buffer.BlockCopy (System.Array,int,System.Array,int,int)
[0x00077] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System/Buffer.cs:108
  at deepinvent.MailStore.Core.MSMemoryStream.Read (byte[],int,int)
<0x00065>
  at System.IO.StreamReader.ReadBuffer () [0x00012] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.IO/StreamReader.cs:338
  at System.IO.StreamReader.ReadLine () [0x000e5] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.IO/StreamReader.cs:476
  at xfcc26217118f7b95.xe96b66f83ff2e739.x1f490eac106aee12
(System.IO.Stream,bool) <0x00180>
  at x36f657baf5fa29c1.x2bef70a2295987a7.x299c2cb497a5a777
(System.IO.Stream,x4fae9c9f245c1f90.xfbf781c4b53e037a[]) <0x001a1>
  at x36f657baf5fa29c1.x40bdcf514da56bb9.x299c2cb497a5a777
(System.IO.Stream,x4fae9c9f245c1f90.xfbf781c4b53e037a[]) <0x0009f>
  at xbad23d244f2208e4.x1cc5e0fb4b785694.x299c2cb497a5a777
(RemObjects.SDK.Types.Binary,x4fae9c9f245c1f90.xfbf781c4b53e037a[])
<0x000af>
  at
xcc814749757ed9fe.x568551ab397ac200/<>c__DisplayClass1.<MessageArchive>b__0
() <0x00020>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) <0xffffffff>

-- 
regards

Daniel Weuthen


More information about the Mono-devel-list mailing list