[Mono-dev] Crash in System.IO.Compression.DeflateStream
David Brown
mono at davidb.org
Fri Jan 5 01:52:50 EST 2007
Running mono-1.2.2.1, I'm trying to make use of
System.IO.Compression.DeflateStream, rather than my own binding I made up.
However, rarely, I'm getting a crash. Any ideas on how I might debug this?
It appears to happen when closing the compression stream.
Thanks,
David Brown
crash info:
*** glibc detected *** /usr/bin/mono: free(): invalid pointer:
0x00007fff ***
======= Backtrace: =========
/lib/libc.so.6[0xb7e1edd0]
/lib/libc.so.6(__libc_free+0x84)[0xb7e20414]
/lib/libz.so.1[0xb6ec609b]
[0xb6ef265d]
[0xb6ef25db]
[0xb6ef252d]
[0xb6ef24ee]
[0xb6ef1878]
[0xb6ef1535]
[0xb7003f00]
[0xb7002a16]
[0xb7002938]
[0xb70028a1]
/usr/bin/mono(mono_runtime_delegate_invoke+0x36)[0x808edc6]
/usr/bin/mono[0x80c35c0]
/usr/bin/mono[0x810a5e7]
/usr/bin/mono[0x811f883]
/lib/libpthread.so.0[0xb7f04294]
/lib/libc.so.6(__clone+0x5e)[0xb7e77eae]
======= Memory map: ========
00001000-00069000 rw-p 00001000 00:00 0
00069000-0006b000 ---p 00069000 00:00 0
0006b000-00071000 rw-p 0006b000 00:00 0
00071000-00073000 ---p 00071000 00:00 0
00073000-0008f000 rw-p 00073000 00:00 0
0008f000-00092000 ---p 0008f000 00:00 0
00092000-00096000 rw-p 00092000 00:00 0
00096000-00098000 ---p 00096000 00:00 0
00098000-00099000 rw-p 00098000 00:00 0
00099000-0009b000 ---p 00099000 00:00 0
0009b000-000ad000 rw-p 0009b000 00:00 0
000ad000-000b3000 ---p 000ad000 00:00 0
000b3000-000b4000 rw-p 000b3000 00:00 0
000b4000-000b7000 ---p 000b4000 00:00 0
000b7000-000f9000 rw-p 000b7000 00:00 0
000f9000-00101000 ---p 000f9000 00:00 0
00101000-00184000 rw-p 00101000 00:00 0
00184000-0019c000 ---p 00184000 00:00 0
0019c000-001a2000 rw-p 0019c000 00:00 0
001a2000-001a4000 ---p 001a2000 00:00 0
001a4000-001a6000 rw-p 001a4000 00:00 0
001a6000-001c0000 ---p 001a6000 00:00 0
001c0000-001c1000 rw-p 001c0000 00:00 0
001c1000-001c3000 ---p 001c1000 00:00 0
001c3000-001c5000 rw-p 001c3000 00:00 0
001c5000-001f5000 ---p 001c5000 00:00 0
001f5000-001f6000 rw-p 001f5000 00:00 0
001f6000-00200000 ---p 001f6000 00:00 0
00200000-002b3000 rw-p 00200000 00:00 0
002b3000-002cb000 ---p 002b3000 00:00 0
002cb000-002cc000 rw-p 002cb000 00:00 0
002cc000-002de000 ---p 002cc000 00:00 0
002de000-002df000 rw-p 002de000 00:00 0
002df000-002e8000 ---p 002df000 00:00 0
002e8000-002e9000 rw-p 002e8000 00:00 0
002e9000-002fd000 ---p 002e9000 00:00 0
002fd000-002fe000 rw-p 002fd000 00:00 0
002fe000-00303000 ---p 002fe000 00:00 0
00303000-00304000 rw-p 00303000 00:00 0
00304000-00313000 ---p 00304000 00:00 0
00313000-00314000 rw-p 00313000 00:00 0
00314000-00316000 ---p 00314000 00:00 0
00316000-00317000 rw-p 00316000 00:00 0
00317000-00323000 ---p 00317000 00:00 0
00323000-00324000 rw-p 00323000 00:00 0
00324000-0032a000 ---p 00324000 00:00 0
0032a000-0032b000 rw-p 0032a000 00:00 0
0032b000-00333000 ---p 0032b000 00:00 0
00333000-00334000 rw-p 00333000 00:00 0
00334000-00358000 ---p 00334000 00:00 0
00358000-00359000 rw-p 00358000 00:00 0
00359000-00363000 ---p 00359000 00:00 0
00363000-00364000 rw-p 00363000 00:00 0
00364000-00371000 ---p 00364000 00:00 0
00371000-00372000 rw-p 00371000 00:00 0
00372000-00382000 ---p 00372000 00:00 0
00382000-003ca000 rw-p 00382000 00:00 0
003ca000-003d0000 ---p 003ca000 00:00 0
003d0000-003d1000 rw-p 003d0000 00:00 0
003d1000-003d4000 ---p 003d1000 00:00 0
003d4000-00423000 rw-p 003d4000 00:00 0
00423000-0045b000 ---p 00423000 00:00 0
0045b000-0045c000 rw-p 0045b000 00:00 0
0045c000-00461000 ---p 0045c000 00:00 0
00461000-00462000 rw-p 00461000 00:00 0
00462000-00465000 ---p 00462000 00:00 0
00465000-00469000 rw-p 00465000 00:00 0
00469000-0046e000 ---p 00469000 00:00 0
0046e000-0046f000 rw-p 0046e000 00:00 0
0046f000-00473000 ---p 0046f000 00:00 0
00473000-00474000 rw-p 00473000 00:00 0
00474000-0048a000 ---p 00474000 00:00 0
0048a000-0048c000 rw-p 0048a000 00:00 0
0048c000-0048e000 ---p 0048c000 00:00 0
0048e000-00494000 rw-p 0048e000 00:00 0
00494000-0049c000 ---p 00494000 00:00 0
0049c000-0049d000 rw-p 0049c000 00:00 0
0049d000-004a6000 ---p 0049d000 00:00 0
004a6000-004a7000 rw-p 004a6000 00:00 0
004a7000-004aa000 ---p 004a7000 00:00 0
004aa000-004ba000 rw-p 004aa000 00:00 0
004ba000-004bd000 ---p 004ba000 00:00 0
004bd000-004be000 rw-p 004bd000 00:00 0
004be000-004c0000 ---p 004be000 00:00 0
004c0000-004cc000 rw-p 004c0000 00:00 0
004cc000-004d2000 ---p 004cc000 00:00 0
004d2000-004d3000 rw-p 004d2000 00:00 0
004d3000-004d6000 ---p 004d3000 00:00 0
004d6000-004d7000 rw-p 004d6000 00:00 0
004d7000-004d9000 ---p 004d7000 00:00 0
004d9000-004e1000 rw-p 004d9000 00:00 0
004e1000-004e4000 ---p 004e1000 00:00 0
Stacktrace:
at (wrapper managed-to-native)
System.IO.Compression.DeflateStream.free_z_stream (intptr) <0x00004>
at (wrapper managed-to-native)
System.IO.Compression.DeflateStream.free_z_stream (intptr) <0xffffffff>
at System.IO.Compression.DeflateStream.DisposeCore () <0x0006a>
at System.IO.Compression.DeflateStream.Dispose (bool) <0x00034>
at System.IO.Stream.Close () <0x0000d>
at SaveRequest..ctor
(SharpDump.Pool.PoolClient,string,byte[],byte[],int,int) <0x0014f>
at BlobRequest.HaveAnswer () <0x0008c>
at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void ()
<0xffffffff>
at Listener.Run () <0x000b5>
at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void ()
<0xffffffff>
at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
/usr/bin/mono [0x8157c4b]
[0xb7fd8440]
/lib/libc.so.6(abort+0x109) [0xb7de5cd9]
/lib/libc.so.6 [0xb7e193cb]
/lib/libc.so.6 [0xb7e1edd0]
/lib/libc.so.6(__libc_free+0x84) [0xb7e20414]
/lib/libz.so.1 [0xb6ec609b]
[0xb6ef265d]
[0xb6ef25db]
[0xb6ef252d]
[0xb6ef24ee]
[0xb6ef1878]
[0xb6ef1535]
[0xb7003f00]
[0xb7002a16]
[0xb7002938]
[0xb70028a1]
/usr/bin/mono(mono_runtime_delegate_invoke+0x36) [0x808edc6]
/usr/bin/mono [0x80c35c0]
/usr/bin/mono [0x810a5e7]
/usr/bin/mono [0x811f883]
/lib/libpthread.so.0 [0xb7f04294]
/lib/libc.so.6(__clone+0x5e) [0xb7e77eae]
More information about the Mono-devel-list
mailing list