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

Submitted by:  B3r3n <b3r3n>
Submitted on:  Thu 17 Nov 2005 08:32:09 AM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: Segmentation FaultStatus: Wont Fix
Assigned to: NoneOpen/Closed: Closed
Release: 2.6.7Release: 2.6.7
Operating System: FreeBSDBinaries 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>
Project 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 23 Jan 2006 12:19:58 AM UTCspiralvoiceStatusNeed Info=>Wont Fix
  Open/ClosedOpen=>Closed
Sat 19 Nov 2005 03:39:36 PM UTCspiralvoiceStatusNone=>Need Info

Back to the top


Powered by Savane 3.1-cleanup1