bugmldonkey, a multi-networks file-sharing client - Bugs: bug #14996, mlnet in free(): error: junk...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14996: mlnet in free(): error: junk pointer, too high to make sense

Submitter:  B3r3n <b3r3n>
Submitted:  Thu 17 Nov 2005 08:32:09 AM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Segmentation Fault Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed
Release:  2.6.7 Release:  2.6.7
Operating System:  FreeBSD Binaries Origin:  CVS / Self compiled
CPU type:  None

Thu 24 Nov 2005 07:39:33 PM UTC, comment #4: 

Spiralvoice,

Until now, mlDonkey 2.6.7 was working perfectly under FreeBSD 4.11p9, compiled statically with gcc 2.95.
Problem appears only since I moved to FreeBSD 6.0.
Here is the script I use to build it:
#!/bin/ksh

cd /mlDonkey/src
if [ $? -ne 0 ]
then
  echo "Cant CD!"
fi

OCAMLRUNPARAM="l=256M"
export OCAMLRUNPARAM

./configure --enable-checks --enable-batch --enable-pthread \
  --disable-newgui --disable-gui

gmake depend

gmake

for i in `grep "\.static:" Makefile | egrep -v "(release|upload)\." | awk 'BEGIN
 { FS=":" } { print $1;}'`
do
  gmake $i
done

But even if I dont see the relationship between a buffer overflow (looks like it is the case with the error I got) and a static compilation that fails or compile and that's all to my poor knowledge, I accept your arguments, so I updated my script to build mldonkey shared.

The result is mlnet apparently works again.
That is just weird it is not working anymore compiled statically.
But my problem is solved for now, if I dont chroot ;-)

Thanks!

B3r3n <b3r3n>
Thu 24 Nov 2005 04:57:19 PM UTC, comment #3: 

As I said, static binaries have problems. As I don´t know much
about FreeBSD I can´t really help here. Try using gdb or something
similar. Another way is to copy the needed libs into the chroot
and use a shared core.

spiralvoice <spiralvoice>
Group administrator
Thu 24 Nov 2005 03:52:18 PM UTC, comment #2: 

Hi spiralvoice,

It is compiled as static, else I cant chroot.

It was working perfectly, compiled as static, under FreeBSD 4.11


B3r3n <b3r3n>
Sat 19 Nov 2005 03:39:36 PM UTC, comment #1: 

Did you link mlnet dynamic or static?
AFAIK statis binaries don´t work on FreeBSD.

spiralvoice <spiralvoice>
Group administrator
Thu 17 Nov 2005 08:32:09 AM UTC, original submission:  

Hi Guys,

Guess this summarizes the issue:

FreeBSD tirion 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Tue Nov 15 13:09:15 CET 2005     root@tirion:/usr/obj/usr/src/sys/TIRION  i386

ocaml-3.08.3_2      The Objective Caml compiler and programming environment

./mlnet
mlnet in free(): error: junk pointer, too high to make sense
Sometimes it exists with a SIGSEGV too.

On previous FreeBSD version, it was working perfectly, but with ocaml-3.08.2, not .3

Of course, I recompiled the whole thing as usual, but it changed nothing.

B3r3n <b3r3n>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-23 spiralvoice StatusNeed Info Wont Fix
    Open/ClosedOpen Closed
2005-11-19 spiralvoice StatusNone Need Info

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code