mlnet crashes very often in hardy

Bug #176895 reported by Gustavo Carneiro
42
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCaml
Fix Released
Undecided
Unassigned
mldonkey (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Hardy by David Santamaría Rogado

Bug Description

mlnet is crashing every ten minutes since I upgraded to ubuntu hardy. I've attached the debugger, but since it is ocaml it does not give a lot of information, I'm afraid...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2aca69257490 (LWP 9523)]
0x00000000004e30dd in camlDonkeyProtoCom__fun_1250 ()
(gdb) bt
#0 0x00000000004e30dd in camlDonkeyProtoCom__fun_1250 ()
#1 0x544155539066c354 in ?? ()
#2 0x8348574156415541 in ?? ()
#3 0xcf830b258d4c08ec in ?? ()

So, all I can see is that the crash is related to the eDonkey protocol. Any idea how to debug this further? I already recompiled the package to keep debugging symbols, but apparently that's not enough...

Revision history for this message
spiralvoice (spiralvoice) wrote :

Do you use MLDonkey on a 64bit arch?
If yes, compile MLDonkey with Ocaml 3.09.3 or a Ocaml 3.10.1 CVS snapshot to fix this problem. Its an Ocaml 3.10.0 bug.
See this bug report for details: https://savannah.nongnu.org/bugs/?21172#comment32

Revision history for this message
Gustavo Carneiro (gjc) wrote :

Yes, amd64 here.

Revision history for this message
spiralvoice (spiralvoice) wrote :

Ocaml 3.10.1 has been released, as well as MLDonkey 2.9.3 which in turn
allows usage of Ocaml 3.10.1 To fix the crash use these versions.

Revision history for this message
David Santamaría Rogado (howl) wrote :

It should be marked as important, this bugs leaves an lts version without one of the best options for p2p available, and also it isn't a bug like if i do this and this the application hangs, is a bug that leaves the application in a broken state for 64 bits.

Revision history for this message
David Santamaría Rogado (howl) wrote :

A dirty and more simpler than compile mldonkey by hand is download the gutsy version, yes 2.9.0, http://packages.ubuntu.com/gutsy/amd64/mldonkey-server/download and then "sudo dpkg -i mldonkey-server_2.9.0-1_amd64.deb", apt will automatically replace the installation of 2.9.3, by now it's working perfect, the configuration files and all mldonkey related stuff have the same format.

But this is as I said, a dirty workaround, and also if the ocaml version of ubuntu hardy is not upgraded or patched againist 64 bit bug, it will make troubles in other pieces of software.

Revision history for this message
dpozsai (dpozsai) wrote :

Just updated to Hardy LTS and found mldonkey process (mlnet) crashing from time to time (several hours between crashes).
Error shown in kernel.log is:
 kernel: [48299.159187] mlnet[6023] general protection rip:4e2e4d rsp:6f817c error:0

Is there any plan to update package in hardy?

Revision history for this message
Julien Furgerot (julien-furgerot) wrote :

Same error for me on Ubuntu Hardy 8.04 amd64 updated this morning.

re-install from gutsy .deb with howl method seems to solve problem.

May 9 11:06:20 myserver kernel: [49065.192531] mlnet[21332] general protection rip:4e2e4d rsp:6f817c error:0
May 9 11:09:51 myserver kernel: [49275.520265] mlnet[2756] general protection rip:4e2e4d rsp:6f817c error:0
May 9 11:20:56 myserver -- MARK --
May 9 11:21:36 myserver kernel: [49978.900515] mlnet[2844] general protection rip:4e2e4d rsp:6f817c error:0

Revision history for this message
David Santamaría Rogado (howl) wrote :

It seems that nobody will fix this, then i purpose to backport the intrepid version of ocaml, the version 3.10.1 is 64 bit bug free but can't remember sure (this can be checked in the debian page of this package, as is expected from them they fix the package as soon as posible), and all the software developed with ocaml like mldonkey rebuilt againist this version.

This is important but don't know why people doesn't see it. Fix compiling is not suitable for users who want Just Work, and install the gutsy package is easy but if you don't override prefer version 2.9.0 of mldonkey over 2.9.2 update-manager will keep trying to install the buggy version, not suitable for newbies.

Revision history for this message
Ashley Yakeley (ashley-semantic) wrote :

Same problem.

mldonkey-server 2.9.2-2build1

$ uname -a
Linux glastonbury 2.6.24-17-generic #1 SMP Thu May 1 13:57:17 UTC 2008 x86_64 GNU/Linux

Revision history for this message
Sebastian Breier (tomcat42) wrote :

I've set it to "Confirmed" because many people seem to have this issue (me included).

In case somebody doesn't have the knowledge to fix this by himself and needs a (dirty) package, feel free to download and install mine (made with checkinstall, most current source):
https://content.no-ip.org/opensource/ubuntu/mldonkey-server_2.9.2-2build1_amd64.deb

Changed in mldonkey:
status: New → Confirmed
Revision history for this message
Sebastian Breier (tomcat42) wrote :

Short warning: Be sure to uninstall the hardy package before installing mine!

Revision history for this message
Sebastian Breier (tomcat42) wrote :

Gah... sorry for spamming. I made a mistake and put up the Ubuntu version, seems I already deleted my own created package.

If there's any need, contact me and I'll create a new one.

Revision history for this message
Stefan Pappalardo (sjuk) wrote :

Same Incident for me.

$ uname -a
Linux idefix 2.6.24-17-rt #1 SMP PREEMPT RT Thu May 1 15:21:57 UTC 2008 x86_64 GNU/Linux

grep mlnet /var/log/messages*
/var/log/messages:May 26 05:44:07 idefix kernel: [275400.734650] mlnet[5893] general protection rip:4e2e4d rsp:6f817c error:0
/var/log/messages:May 29 08:54:41 idefix kernel: [412119.485385] mlnet[1864] general protection rip:4e2e4d rsp:6f817c error:0

Revision history for this message
David Santamaría Rogado (howl) wrote :

There is a new intrepid version of mldonkey now, the 2.9.5 version, is possible to install using the same way i said with the gutsy package. Is very possible that this package is free of this bug because the version of ocaml in intrepid.

Download from: http://packages.ubuntu.com/intrepid/amd64/mldonkey-server/download
Install with: "sudo dpkg -i mldonkey-server_2.9.5-1_amd64.deb"

Remember, only for 64-bits

I suggest to include all mldonkey-server and other mldonkey packages yo be in the backports for hardy, also i could be added to the updates repository because it haven't got any new version of dependencies.

Revision history for this message
Slawomir Gajowniczek (imkebe) wrote :

I confirm that intrepid version work well on hardy.

Changed in ocaml:
status: New → Confirmed
Revision history for this message
Christian Betz (christian-betz) wrote :

I also confirm this issue on amd64 (crashed twice in the last two days):

[kern.log]
Jul 13 02:34:41 tower kernel: [ 4244.901770] mlnet[5966] general protection rip:4e2e4d rsp:6f817c error:0
Jul 13 09:12:13 tower kernel: [13843.340465] mlnet[14925] general protection rip:4e2e4d rsp:6f817c error:0

I will be installing the Intrepid Ibex version shortly. Thank you howl.

Changed in mldonkey:
status: Confirmed → Fix Released
Revision history for this message
Sebastian Breier (tomcat42) wrote :

Fixed in intrepid - see comments

Changed in ocaml:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.