Sat 08 Nov 2003 12:34:20 PM UTC, comment #5:
I used electric-fence. There is a bug in mark_slice() which is a function of ocaml. This bug looks like corrected in ocaml-3.07pl2 (mldonkey is compiled with ocaml-3.06)
I guess gcc-3.3 and the new libc6 are even more restrictives with programs that use freeed memories.
So the bug fix is:
download ocaml 3.07pl2:
http://caml.inria.fr/distrib/ocaml-3.07/ocaml-3.07pl2.tar.gz
install it on your system or in mldonkey-2.5-4/patches/local (using "./configure --prefix=/path-to/mldonkey-2.5-4/patches/local")
Go in mldonkey-2.5-4 and use this configure command line:
./configure --enable-ocamlver=3.07+2 --disable-gui
Edit src/utils/lib/autoconf.ml
And change the last line:
Before:
type ('a,'b,'c) ml_format = ('a,'b, 'c,'c) format type ('a,'b,'c) format = ('a,'b, 'c) ml_format
After:
type ('a,'b,'c) ml_format = ('a,'b, 'c) format type ('a,'b,'c) format = ('a,'b, 'c) ml_format
type make, and you'll have a good, fresh and descent mlnet
just copy it over the buggy one.
You'll have to use the old mlgui, but who cares if the gui crashes ?
|