[Mono-dev] DeflateStream : bit length overflow

Wade Berrier wberrier at novell.com
Mon Jul 9 11:31:55 EDT 2007


I looked at the build logs, and DEBUG is not defined anywhere.  (I also checked config.h)

Here's the exact make output for trees.c:

if /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I..  -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -D_FILE_OFFSET_BITS=64  -O2 -march=i586 -mcpu=i686 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT trees.lo -MD -MP -MF ".deps/trees.Tpo" -c -o trees.lo trees.c; \
then mv -f ".deps/trees.Tpo" ".deps/trees.Plo"; else rm -f ".deps/trees.Tpo"; exit 1; fi
 /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT trees.lo -MD -MP -MF .deps/trees.Tpo -c trees.c  -fPIC -DPIC -o .libs/trees.o
 /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT trees.lo -MD -MP -MF .deps/trees.Tpo -c trees.c -o trees.o >/dev/null 2>&1

Not sure what's going on.

Do you have a code snippet I could try out?

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