[Mono-dev] DeflateStream : bit length overflow

Jonathan Gagnon jonathan.gagnon at croesus.com
Tue Jul 10 09:17:11 EDT 2007


After further investigation, it turns out that the message does not come
from the libMonoPosixHelper.so file.  It comes from another .so file that I
load dynamically with DllImport.  This .so file contains zlib among other
things, and it is compiled with DEBUG set.

I tried removing the DllImport statement for this library and that fixes the
problem.  So it means that when I use DeflateStream, it uses this library
instead of loading its own.  Is this expected?  From my point of view, it
looks like a bug, because I wouldn't expect that using DllImport would
affect the behavior of DeflateStream.  It might not be easy to fix on your
side though.

Jonathan

-----Message d'origine-----
De : Wade Berrier [mailto:wberrier at novell.com] 
Envoyé : Monday, July 09, 2007 2:43 PM
À : Jonathan Gagnon
Cc : mono-devel-list at lists.ximian.com
Objet : RE: [Mono-dev] DeflateStream : bit length overflow

run the program with first setting:

MONO_LOG_LEVEL=debug

That should give sufficient output as to what file is being used.

Wade

On Mon, 2007-07-09 at 13:34 -0400, Jonathan Gagnon wrote:
> I have no results too when running the given command.  I found another 
> libMonoPosixHelper.so on the machine although they give no results too 
> when using the strings command.
> 
> I tried running the following command instead "grep overflow 
> /usr/lib/libMonoPosixHelper.so" and it returned no result too.  But 
> when I tried to grep the other libMonoPosixHelper.so file, it gave me 
> the following message :
> 
> Binary file /path/libMonoPosixHelper.so matches
> 
> So it seems that this is the file that is being used.  Is there a way 
> to know for sure which .so file is actually used when running mono?
> 
> Thanks,
> 
> Jonathan
> 
> -----Message d'origine-----
> De : Wade Berrier [mailto:wberrier at novell.com] Envoyé : Monday, July 
> 09, 2007 11:50 AM À : mono-devel-list at lists.ximian.com Cc : Jonathan 
> Gagnon Objet : Re: [Mono-dev] DeflateStream : bit length overflow
> 
> At the suggestion of Paolo, I ran:
> 
> "strings /usr/lib/libMonoPosixHelper.so |grep overflow"
> 
> against the file that shipped in the 1.2.3.1 rpm, with no results.
> 
> Jonathan, could you try running this?
> 
> Also, could there possibly be another libMonoPosixHelper.so that is 
> getting called?
> 
> Wade
> 
> On Wed, 2007-07-04 at 10:44 -0400, Jonathan Gagnon wrote:
> > I'm using mono 1.2.3.1.  I installed the followin rpms :
> > 
> > mono-data-1.2.3.1-0.novell
> > mono-core-1.2.3.1-0.novell
> > 
> > The output of 'ldd /usr/lib/libMonoPosixHelper.so' is :
> > 
> >         linux-gate.so.1 =>  (0xffffe000)
> >         libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x55587000)
> >         libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x5558b000)
> >         libdl.so.2 => /lib/libdl.so.2 (0x55606000)
> >         libpthread.so.0 => /lib/tls/i686/libpthread.so.0 (0x5560a000)
> >         libm.so.6 => /lib/tls/i686/libm.so.6 (0x5561b000)
> >         libc.so.6 => /lib/tls/i686/libc.so.6 (0x5563e000)
> >         /lib/ld-linux.so.2 (0x56555000)
> > 
> > Thanks,
> > 
> > Jonathan
> > 
> > -----Message d'origine-----
> > De : mono-devel-list-bounces at lists.ximian.com
> > [mailto:mono-devel-list-bounces at lists.ximian.com] De la part de 
> > Paolo Molaro Envoyé : Wednesday, July 04, 2007 9:56 AM À :
> > mono-devel-list at lists.ximian.com Objet : Re: [Mono-dev] 
> > DeflateStream
> > : bit length overflow
> > 
> > On 07/03/07 Jonathan Gagnon wrote:
> > > The following messages are sent to the console when using the 
> > > DeflateStream class in Mono :
> > >  
> > > bit length overflow
> > > code 4 bits 6->7
> > > 
> > > The compression is working correctly, so it seems like some kind 
> > > of debug trace.
> > >  
> > > I did a grep on the sources to see where it comes from, and I 
> > > found this line inside the mono/support/trees.c file :
> > >  
> > >     Trace((stderr,"\nbit length overflow\n"));
> > > 
> > > Is this something that shouldn't have been checked in?
> > 
> > What version of mono are you using? What is the output of:
> > 	ldd /path/to/libMonoPosixHelper.so
> > 
> > That message is some debug output that should happen only if you 
> > compile with the DEBUG #define enabled, which we don't.
> > 
> > lupus
> > 
> > --
> > -----------------------------------------------------------------
> > lupus at debian.org                                     debian/rules
> > lupus at ximian.com                             Monkeys do it better
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> > 
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> > 
> 




More information about the Mono-devel-list mailing list